Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   SmartDashboard Crash (http://www.chiefdelphi.com/forums/showthread.php?t=141174)

origamitaco 01-09-2016 03:17 PM

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.

Joe Ross 01-09-2016 03:43 PM

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

origamitaco 01-09-2016 11:58 PM

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.

jreneew2 01-10-2016 02:54 PM

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

jreneew2 01-10-2016 03:12 PM

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.

Joe Ross 01-11-2016 01:34 AM

Re: SmartDashboard Crash
 
Quote:

Originally Posted by jreneew2 (Post 1520282)
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.

fovea1959 01-16-2016 02:41 PM

Re: SmartDashboard Crash
 
any idea when the patch will come out as part of an update?

Joe Ross 01-16-2016 04:29 PM

Quote:

Originally Posted by fovea1959 (Post 1524883)
any idea when the patch will come out as part of an update?


It is in yesterday's update.

nhchen 02-09-2016 01:48 AM

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

borgerdingj 02-16-2016 08:05 PM

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.


All times are GMT -5. The time now is 08:06 AM.

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