You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Shuffleboard displays the initial value of an integer array, but does not update on subsequent .set() calls. This is occurring with 2023.3.2; untested on earlier versions.
To Reproduce
Steps to reproduce the behavior:
Deploy a Java robot project with the attached Main.java and Robot.java. robot.zip
Start Shuffleboard from the command line so you can see it's logs in real time. Open the left pane so you can see data. Note that Shuffleboard logged several of these.
WARNING: Uncaught exception on JavaFX Application Thread
java.lang.NullPointerException: Cannot invoke "Object.getClass()" because the return value of "edu.wpi.first.networktables.NetworkTableValue.getValue()" is null
at edu.wpi.first.shuffleboard.plugin.networktables.util.NetworkTableUtils.dataTypeForEntry(NetworkTableUtils.java:55)
...
Enable teleop on the robot. Shuffleboard shows the correct values for SmartDashboard/tick and datatable/iat.
Disable and reenable teleop on the robot (thus incrementing tick). Shuffleboard shows the incremented value in SmartDashboard/tick, but not datatable/iat. Shuffleboard additionally throws this log message:
Feb 06, 2023 12:03:59 PM edu.wpi.first.shuffleboard.app.Shuffleboard uncaughtException
WARNING: Uncaught exception on JavaFX Application Thread
java.lang.UnsupportedOperationException: Cannot compare primitive arrays of type long
at edu.wpi.first.shuffleboard.api.util.EqualityUtils.isEqual(EqualityUtils.java:78)
at edu.wpi.first.shuffleboard.api.util.EqualityUtils.isDifferent(EqualityUtils.java:21)
at edu.wpi.first.shuffleboard.api.components.SourceTreeTable.makeBranches(SourceTreeTable.java:147)
at edu.wpi.first.shuffleboard.api.components.SourceTreeTable.updateEntry(SourceTreeTable.java:72)
at edu.wpi.first.shuffleboard.app.components.InteractiveSourceTree.lambda$new$5(InteractiveSourceTree.java:92)
at com.sun.javafx.collections.MapListenerHelper$SingleChange.fireValueChangedEvent(MapListenerHelper.java:163)
at com.sun.javafx.collections.MapListenerHelper.fireValueChangedEvent(MapListenerHelper.java:72)
at com.sun.javafx.collections.ObservableMapWrapper.callObservers(ObservableMapWrapper.java:115)
at com.sun.javafx.collections.ObservableMapWrapper.put(ObservableMapWrapper.java:169)
at edu.wpi.first.shuffleboard.plugin.networktables.sources.NetworkTableSourceType.lambda$new$5(NetworkTableSourceType.java:87)
at edu.wpi.first.shuffleboard.api.util.FxUtils.lambda$runOnFxThread$0(FxUtils.java:64)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:457)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:456)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:184)
at java.base/java.lang.Thread.run(Thread.java:833)
Get into OutlineViewer and note that the networktable entries have indeed been udpated.
Expected behavior
I expect Shuffleboard to show the updates to the integer array.
Screenshots
Desktop (please complete the following information):
OS: Windows 10
Java version:
openjdk version "17.0.6" 2023-01-17
OpenJDK Runtime Environment Temurin-17.0.6+10 (build 17.0.6+10)
OpenJDK 64-Bit Server VM Temurin-17.0.6+10 (build 17.0.6+10, mixed mode, sharing)
Version 2023.3.2
Additional context
none -
The text was updated successfully, but these errors were encountered:
fovea1959
added a commit
to fovea1959/shuffleboard_fovea1959_widgets
that referenced
this issue
Feb 6, 2023
Describe the bug
Shuffleboard displays the initial value of an integer array, but does not update on subsequent .set() calls. This is occurring with 2023.3.2; untested on earlier versions.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect Shuffleboard to show the updates to the integer array.
Screenshots
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: