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
If the Graph Update Rate is set too high in the Base Plugin, Shuffleboard hangs and the preferences tab cannot be accessed again. The resulting error is persistent because the Graph Update Rate ends up stored in the Java Preferences API backing store.
To Reproduce
Run Shuffleboard
Open Preferences (ctrl-,)
Select Plugins -> Base
Change Graph Update Rate to 10000
Hit OK
Expected behavior
Graph updates with a period of 10,000
Observed behavior
Application hangs. Upon restarting application, it continues to hang.
Desktop (please complete the following information):
OS: Linux 5.4.0-107-generic amd64 (Ubuntu 20.04.2 LTS)
Java version 11.0.13+8 -- Eclipse Adoptium
Version 2022.1.1
Workaround
Delete the stored preference file. On my system, it is at ~/.java/userPrefs/edu/api/first/shuffleboard/plugin/base/prefs.xml
The text was updated successfully, but these errors were encountered:
This appears to be due to the garbage collector thrashing and not able to keep up with the addition of new data. Since network tables limits data to 100 hz, that seems like a reasonable limit for the graph update rate. At 200hz, I could watch the memory grow, and the GC kick into effect during which shuffleboard got choppy, but after a few seconds it recovered, memory dropped, and then started to grow again.
It also seemed to be slightly better with JDK 17 which is used for 2023, but not enough to keep it from being an issue at 10k.
Describe the bug
If the Graph Update Rate is set too high in the Base Plugin, Shuffleboard hangs and the preferences tab cannot be accessed again. The resulting error is persistent because the Graph Update Rate ends up stored in the Java Preferences API backing store.
To Reproduce
Plugins -> Base
Expected behavior
Graph updates with a period of 10,000
Observed behavior
Application hangs. Upon restarting application, it continues to hang.
Desktop (please complete the following information):
Workaround
Delete the stored preference file. On my system, it is at
~/.java/userPrefs/edu/api/first/shuffleboard/plugin/base/prefs.xml
The text was updated successfully, but these errors were encountered: