-
Notifications
You must be signed in to change notification settings - Fork 84
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
Shuffleboard wasting resources #652
Comments
Are you using graphs of any kind? |
We are using a combo box for path choosing, for everything else we use text views which are for displaying and retrieving data. No graphs. |
What about cameras? Can you post your save file? |
We don't save files nor cameras, for now we solved the problem, we accidentally used enableActuatorWidgets in an inappropriate place. Shuffleboard is still showing very high memory usage, using JProfiler I have discovered that it creates a lot of weakreferences,the number of which is growing abnormally. they all on WeakReferenceQueues(part of javafx) which is used in the Classes DataFormat, ConstraintBase, PathElement and Transform(and their child classes). |
Hm. I can't seem to reproduce, do you have any test case? |
Yes, we added you as a collaborator to our repo. OnyxTronix2020 |
Please use branch develop as test case |
Contrary to what @shaked113021 said, it didn't solved our problem, the shuffleboard seams to freeze after we enable our robot. |
I can't seem to find anything obvious, but I ran your code on my desktop using the WPILib Sim and my CPU usage never rose over 5% and RAM over 550MB. There have been issues with LiveWindow and performance in the past, could you try disabling any LiveWindow related functions and seeing the performance then? Specs: |
@Daltz333 I don't think it's possible to reproduce the problem while simming. How can we disable the LiveWondow completely? |
We managed to fix the issue using Thank you all for your help, we will keep this issue open... |
So LiveWindow was the cause? Thanks. |
Shuffleboard memory leaks could also be happening due to multiple ObservableValue objects being created but not garbage collected everytime a listener is triggered.
|
Our team uses shuffleboard to display values to the drivers. In the last couple of days, shuffleboard suddenly started taking crazy amounts of memory and processing power. Almost 90% cpu power and 8 gb of RAM and it also started lagging like crazy (even though by looking in outline viewer we can clearly see that they are updating normally)
The text was updated successfully, but these errors were encountered: