You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG: VTK/PyVista not freeing memory with multiple figures #8241
@GuillaumeFavelier I suspect it could be some recent-ish (within the last 2 months?) viz update. It was happening before the PyVista 0.26 release. Can you look to see if code from a month or two ago uses the same memory as it does now? Often it's plot_visualize_stc.py that breaks things, but in the example above it's plot_forward.py.
Turns out this seems to be related to bad garbage collection. See investigations in #8266 (comment) and report in pyvista/pyvistaqt#57. It would be good if we could figure out where this is coming from. In the meantime, plotting so many montages is not going to be safe :(
Activity
GuillaumeFavelier commentedon Sep 12, 2020
It's an item of #7162
larsoner commentedon Sep 18, 2020
Turns out this seems to be related to bad garbage collection. See investigations in #8266 (comment) and report in pyvista/pyvistaqt#57. It would be good if we could figure out where this is coming from. In the meantime, plotting so many montages is not going to be safe :(
larsoner commentedon Oct 20, 2020
@GuillaumeFavelier interestingly enough this does not seem to happen on https://github.com/mne-tools/mne-python/blob/master/examples/visualization/plot_meg_sensors.py#L40-L47, but it does in https://github.com/mne-tools/mne-python/blob/master/examples/visualization/montage.py#L46-L60. Maybe this can help us narrow down where the problem is.
On/after #8379 and sphinx-gallery/sphinx-gallery#759 we can iterate and test hopefully fairly easily using
PATTERN=... make html_dev-pattern-memory[-]BUG: CircleCI using too much memory (again)[/-][+]BUG: VTK/PyVista not freeing memory with multiple figures[/+]larsoner commentedon Oct 21, 2020
Never mind, it does happen on
plot_meg_sensors.py...larsoner commentedon Oct 1, 2023
This is an upstream issue so I'll close at our end