-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graphs get duplicate entries on code deploy #720
Comments
Same here |
Regarding the performance aspect, compared to which previous version--2021, 2020, 2019? What widgets are you using? What does the task manager show for CPU/GPU usage? Since you can install previous versions side-by-side, can you do a direct comparison (e.g. run 2021, then run 2022, and look at task manager for both cases)? The graph widget was changed starting in 2021 (#657) to try to get better performance, but it's possible it actually has worse performance in some scenarios. I would recommend using Glass instead for intensive plotting. |
I've had the same issue since last year, but I always thought it was a problem with my implementation of SmartDashboard.putNumber. Glad I've found someone else with this issue, not sure how I haven't seen a CD post about it. W.r.t. the performance issues, I've found that ShuffleBoard starts maxing my CPU usage after I've redeployed my code a lot and SB starts struggling to plot 15 lines of the same data simultaneously... |
I believe this problem may stem from the implementation of Suggested mitigations:
|
Describe the bug
When graphing network table values after redeploying code, the graph will have two copies of the same NT value with the same name. I first discovered this when graphing two values on one graph, but the bug is present even when values are in separate graphs.
In my code I publish two doubles with this code.
https://github.com/FRC-Sonic-Squirrels/swerve-template/blob/0c9cf83f6509f439c864c6501059f33c5e1afcee/src/main/java/frc/robot/commands/DriveWithSetRotationCommand.java#L119-L120
To Reproduce
Steps to reproduce the behavior:
Expected behavior
graph should only have one copy of the Network Table value in the graph
Screenshots
See screen shot
Desktop (please complete the following information):
Additional context
It feels like Shuffleboard is using more CPU and memory than prior to the 2022.1.1 release, I don't have a stats to back this up. Just the impression that on the same laptop with a far more complex Shuffleboard layout on the 2021 code base, Shuffleboard didn't cause my laptop to start "weezing" (i.e. run the fan nonstop and kill the battery).
The text was updated successfully, but these errors were encountered: