-
-
Notifications
You must be signed in to change notification settings - Fork 475
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
Client-side memory leak when re-creating Plotly elements #2640
Comments
I could not reproduce the issue on my Apple Silikon M3 Max. I added a title to the page to better find it in the chrome task manager |
@rodja On my Apple M1 Max it takes about 1-2 minutes to see a significant growth. Did you wait that long? Maybe it depends on how quickly the CPU can run the garbage collection. I did a longer test with an interval of 1 second, which uses more or less constant memory. |
Looks like it. Even when running the 10 ms delay demo for more than 30 min, there is no recognizable increase. |
in Brave Browser on Windows 10 the plotly test HTML page above starts out using about 91 MB, but then drops to 86 MB after a minute, then after 2 minutes was using about 81 MB, so no leak here. |
Description
As noticed by @eddie3ruff in #2597, there's a memory leak when re-creating many Plotly elements. The memory consumption of the browser tab (tested with Chrome) will grow until it crashes eventually:
We already found a reproduction without NiceGUI:
Is this a bug in plotly.js? How can we update or re-create plots without causing this issue?
The text was updated successfully, but these errors were encountered: