Shuffleboard crashing on launch

We recently updated one of our programming laptops to windows 10, and as such, had to reinstall everything related to FRC/WPI. Everything seemed to install correctly, except whenever we attempt to launch Shuffleboard or Smartdashboard, they crash on startup. The Driver Station, VsCode and the WpiLib extension seem to be working (eg Can build and deploy code, control the robot, ect).

We have reinstalled the VS Code extension multiple times, are using JDK 11.0.6, and have also reinstalled the NI FRC Game Tools, but we continue to get the same error.

Log file:

shuffleboard.2020-02-14-17.06.21
Feb 14, 2020 5:06:22 PM edu.wpi.first.shuffleboard.app.Shuffleboard init
INFO: Build time: 2020-01-17T04:20:13.840853Z
Feb 14, 2020 5:06:22 PM edu.wpi.first.shuffleboard.app.plugin.PluginLoader load
INFO: Loading plugin edu.wpi.first.shuffleboard:Base:1.1.8
Feb 14, 2020 5:06:22 PM edu.wpi.first.shuffleboard.app.plugin.PluginLoader load
INFO: Loaded plugin edu.wpi.first.shuffleboard:Base in 137ms
Feb 14, 2020 5:06:22 PM edu.wpi.first.shuffleboard.app.Main lambda$main$0
SEVERE: Uncaught exception on thread 'main'.
java.lang.RuntimeException: Exception in Application init method
	at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:895)
	at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.UnsatisfiedLinkError: C:\Users\Robot\.wpilib\nativecache\windows\x86-64\ntcorejni.dll.3a2a6785d3344c15bef2ecdbfaac0c13: Can't find dependent libraries
	at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
	at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2430)
	at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2487)
	at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2684)
	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2617)
	at java.base/java.lang.Runtime.load0(Runtime.java:765)
	at java.base/java.lang.System.load(System.java:1834)
	at edu.wpi.first.wpiutil.RuntimeLoader.loadLibrary(RuntimeLoader.java:100)
	at edu.wpi.first.networktables.NetworkTablesJNI.<clinit>(NetworkTablesJNI.java:36)
	at edu.wpi.first.networktables.NetworkTableInstance.getDefault(NetworkTableInstance.java:93)
	at edu.wpi.first.shuffleboard.plugin.networktables.NetworkTablesPlugin.<init>(NetworkTablesPlugin.java:46)
	at edu.wpi.first.shuffleboard.app.Shuffleboard.init(Shuffleboard.java:82)
	at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:824)
	... 2 more

We have checked the file location it complains about in the above log stack trace, but it does in fact exist, and it is the only file in the folder. (As a side note, we are not sure “who” installed this file, the NI Tools Suite or the VsCode Wpi Extension)

At this point, we are running out of ideas, and were wondering if anyone else had experienced this problem, or had any other suggestions. We have not had this issue on other laptops, both windows 7 and 10.

Did you install WPILib using the WPILib offline installer?

No, we used the online installer, through the extension marketplace on VsCode

The WPILib installer makes sure everything you need, including Java, is installed and set up correctly. We recommend you use it, especially when setting up things on a new machine. One of the things it installs is the VS2019 redistributable, the lack of which is what’s causing the issue you’re seeing.

There are two threads with basically the exact same topic with the same solution:

2 Likes

Thanks, we will try to do a better job searching next time.

No worries. My recommendation when using CD search is to sort by “most recent”. It’s unfortunate the default is “Most relevant” because often the useful results are the most recent ones in the case of FRC.

2 Likes