-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[BUG] Memory Leak for read_raw_edf
with TAL data (~20 GB)
#10644
Comments
Could it be that I just solved this with #10638? |
Uh oh, I still got the memory spike with the latest code... |
Does this mean you see absolutely no difference in the memory profile? Or did it at least drop significantly? If it's just because of a very large EDF file, you can adapt the example code in #10634 (#10634 (comment)) to generate a larger file. |
It's still too large of a spike for my 16 GB of RAM but I'm having a bit of a difficult time memory profiling because I have to kill the process before the spike overloads the RAM and crashes the computer... |
It's a bit hard to say without the file or a reprex. Can you try to generate a large EDF file to see if this has the same problem? Then at least other people can reproduce the issue. |
Nevermind, I think the Ubuntu trash collector just works more on-demand and when I saw the memory trending up toward maxing out the RAM, I killed the process but I let it go a bit longer the next time and it got cleared. Thanks for solving this @cbrnr! |
Unfortunately, I can't share a minimally reproducible example because the problem stems from having a very large file. Interestingly, this was not a problem on a MacOS system, the file loaded with
preload=False
just fine. The issue is that when I go to read the file, I get > 16 GB of RAM usage. Here is the output of mne sys_info on the system:One of the things I'm curious about is what's going on here: https://github.com/mne-tools/mne-python/blob/main/mne/io/edf/edf.py#L310-L337, it looks like the only thing being returned is the
tal_data
but yet there are these other computations with the channel data. These don't seem to get returned and I'm not sure if they are supposed to modify something in place or what. Maybe @sappelhoff or @cbrnr knows?The text was updated successfully, but these errors were encountered: