-
Notifications
You must be signed in to change notification settings - Fork 190
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
[pythreejs.BufferGeometry] Memory continues to grow #387
Comments
Take this code, memory will keep going up. Is there a way to clear the memory of BufferAttribute or LineSegmentsGeometry. |
Were you running this in Jupyter? Could this have to do with the fact that ipython by default holds on to references of the cell outputs, and thus the memory does not get freed? (see https://ipython.readthedocs.io/en/stable/interactive/reference.html?highlight=previous#output-caching-system) Although your code doesn't seem to be producing any output... |
Thank you for your reply. I have been running on jupyter lab and can see that memory is growing gradually. |
Can you try running the same code in a python script to see if the memory also grows there? |
This is probably related to this general ipywidgets issue: jupyter-widgets/ipywidgets#1345 |
i.e. you probably need to call |
Does the memory of this part of BufferGeometry automatically reclaim? Or do I need a manual recycling method? I called this in a function, but left the function to show that memory kept growing. like that:
The text was updated successfully, but these errors were encountered: