-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Memory leak with surface plots #957
Comments
Thanks for the report. Memory management for WebGL trace type has been long-standing issue for us. Referencing plotly/plotly.py#487 and #718. Can I ask what version of plotly.py are you using? If you're using plotly.py < That said, even after updating, I suspect that some memory issues will remain (especially on pages with 4-5 WebGL graphs) . Unfortunately, fixing those issues will require a major changes in our WebGL code base which we planned in #949 but probably won't be ready for primetime before early 2017. |
I'm using the plotly.py version 1.12.9. Glad to hear that this is an issue on the radar and that there are potential fixes in the pipeline! IPython/Jupyter notebooks are highly popular with many plotly users, so I submit that this issue deserves a decent amount of prioritization. |
Reproduced it in
On an initial look, |
After a chat with @mikolalysenko , he thinks that perhaps the memory leaks are related to our |
It's been a few years since we heard reports of memory leaks in I'll close this, but if someone subscribed to this ticket is still experiencing leakage in the latest plotly.js version please open a new issue! |
I'm working in a Jupyter notebook with a number of plotly surface plots. I've noticed that after 4-5 plots are generated, my computer slows down considerably. Upon review, I realized that Chrome was consuming all of my 16gb of memory. Closing the Chrome tab with the plots freed up 12gb of memory.
Here's some simple code that attempts to reproduce the error. Apologies in advance if it crashes your machine.
Running it once is fine. A chunk of memory is used. No problem. But then if the same cell is reevaluated, removing the previous plots and replacing them with new ones, the memory only continues to climb. (You may need to rerun a few times to get the full effect.) We should expect totally memory usage to remain constant more or less. But things just keep climbing.
I'm running Chrome 53.0.2785.116 on Mac OS X 10.11.6.
The text was updated successfully, but these errors were encountered: