Go to Post If mentors don't respect the students' desire to learn and take an active role in the construction, they're missing the point of FIRST. If students refuse to accept the knowledge and experience of the mentors, that's not independence - it's arrogance. - DB213parent [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-01-2016, 15:17
origamitaco origamitaco is offline
Registered User
FRC #4328
 
Join Date: Nov 2015
Location: Richmond, TX
Posts: 35
origamitaco is an unknown quantity at this point
SmartDashboard Crash

SmartDashboard crashes immediately when running Driver Station or when starting from Eclipse. Deleted default save, didn't fix anything. Don't know where to find logfile for crash. Running new 2016 FRC update and WPIlib.
Reply With Quote
  #2   Spotlight this post!  
Unread 09-01-2016, 15:43
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: SmartDashboard Crash

Run SmartDashboard from the command-line and post the output.
Code:
java -jar C:\users\<user>\wpilib\tools\smartdashboard.jar
What version of java are you using? Post the output of
Code:
java -version
Reply With Quote
  #3   Spotlight this post!  
Unread 09-01-2016, 23:58
origamitaco origamitaco is offline
Registered User
FRC #4328
 
Join Date: Nov 2015
Location: Richmond, TX
Posts: 35
origamitaco is an unknown quantity at this point
Sorry I should have checked this sooner. I ended up deleting wpilib folder containing smartdashboard.jar and redownloaded the plugins in eclipse. Worked like a charm but I did have to rearrange the dashboard layout. I'll remember this for future reference though, thanks.
Reply With Quote
  #4   Spotlight this post!  
Unread 10-01-2016, 14:54
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 203
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
Re: SmartDashboard Crash

Hello, I am having the same issue where as soon as you launch the driver station and the smartdashboard loads, it crashes. I have tried reinstalling the c++ toolchain, and the deleting the eclipse plugins and reinstalling them.

Here are the logs from running Joe's suggestions

Java version:
Code:
C:\Users\tigertronics>java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b18)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
running smartdashboard from cmd:
Code:
C:\Users\tigertronics>java -jar C:\users\tigertronics\wpilib\tools\smartdashboar
d.jar
No Extension Folder
platform: /Windows/amd64/
Jan 10, 2016 2:55:27 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0
x80000002. Windows RegCreateKeyEx(...) returned error code 5.
NT: connect() to  port 1735 timed out
Host: roboRIO-2053-frc.local
NT: connect() to  port 1735 timed out

Loading from    C:\Users\tigertronics\SmartDashboard\save.xml











Loading SmartDashboard widgets....
Loading SmartDashboard widgets....
Loading SmartDashboard widgets....
Loading SmartDashboard widgets....
Loading SmartDashboard widgets....
Loading SmartDashboard widgets....
Loading SmartDashboard widgets....
Loading SmartDashboard widgets....
Loading SmartDashboard widgets....
java.lang.reflect.InvocationTargetException
        at java.awt.EventQueue.invokeAndWait(Unknown Source)
        at java.awt.EventQueue.invokeAndWait(Unknown Source)
        at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
        at edu.wpi.first.smartdashboard.main.main(main.java:111)
Caused by: java.lang.NoSuchMethodError: org.jfree.ui.RectangleInsets.<init>(DDDD
)V
        at org.jfree.chart.axis.Axis.<clinit>(Axis.java:136)
        at org.jfree.chart.ChartFactory.createXYLineChart(ChartFactory.java:1525
)
        at edu.wpi.first.smartdashboard.gui.elements.LinePlot.init(LinePlot.java
:36)
        at edu.wpi.first.smartdashboard.gui.DashboardPanel.addElement(DashboardP
anel.java:268)
        at edu.wpi.first.smartdashboard.gui.DashboardPanel.setField(DashboardPan
el.java:327)
        at edu.wpi.first.smartdashboard.gui.DashboardFrame.load(DashboardFrame.j
ava:304)
        at edu.wpi.first.smartdashboard.main$3.run(main.java:124)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$400(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Any suggestions?

Thanks
Reply With Quote
  #5   Spotlight this post!  
Unread 10-01-2016, 15:12
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 203
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
Re: SmartDashboard Crash

Alright, I figured it out. The reason the smartdashboard crashes is because you are using an old dashboard save from last year. To fix this just navigate to:

Code:
C:\Users\"user"\SmartDashboard
and delete save.xml.

Then it should work,. However, I ran into another issue when formatting different values on the smartdashboard. Whenever I try to change a simple text box to a line plot or simple dial, the value disappears and does not show up again until you reboot the dashboard. When it does reappear, it is just in a text box again.

If anyone can reproduce this issue or has suggestions, please respond.
Reply With Quote
  #6   Spotlight this post!  
Unread 11-01-2016, 01:34
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: SmartDashboard Crash

Quote:
Originally Posted by jreneew2 View Post
However, I ran into another issue when formatting different values on the smartdashboard. Whenever I try to change a simple text box to a line plot or simple dial, the value disappears and does not show up again until you reboot the dashboard. When it does reappear, it is just in a text box again.

If anyone can reproduce this issue or has suggestions, please respond.
I duplicated the problem and submitted a patch for review.
Reply With Quote
  #7   Spotlight this post!  
Unread 16-01-2016, 14:41
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 332
fovea1959 will become famous soon enough
Re: SmartDashboard Crash

any idea when the patch will come out as part of an update?
Reply With Quote
  #8   Spotlight this post!  
Unread 16-01-2016, 16:29
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Quote:
Originally Posted by fovea1959 View Post
any idea when the patch will come out as part of an update?

It is in yesterday's update.
Reply With Quote
  #9   Spotlight this post!  
Unread 09-02-2016, 01:48
nhchen nhchen is offline
Registered User
FRC #3799
 
Join Date: Mar 2015
Location: Corning, NY
Posts: 1
nhchen is an unknown quantity at this point
Re: SmartDashboard Crash

This may be a silly question, but how do I get the latest update of smart dashboard? I came across this discussion as our team also ran into line plot issue. And firstforge website doesn't seem to be available anymore. I tried teamforge, but couldn't find the installation files. Thanks
Reply With Quote
  #10   Spotlight this post!  
Unread 16-02-2016, 20:05
borgerdingj borgerdingj is offline
Registered User
FRC #5216
 
Join Date: Feb 2016
Location: Michigan
Posts: 1
borgerdingj is an unknown quantity at this point
Re: SmartDashboard Crash

Ditto on that nhchen. We're running into the same issue with the lineplot and compass widgets disappearing. And we haven't necessarily found the latest update of smart dashboard.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:05.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi