Skip to content
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 #155

Closed
GunnarFarneback opened this issue Sep 26, 2014 · 2 comments
Closed

Memory leak #155

GunnarFarneback opened this issue Sep 26, 2014 · 2 comments

Comments

@GunnarFarneback
Copy link

I'm seeing substantial memory leakage when using matread to read a 16 MB file saved from Matlab in v7.3 format. The sequence of matread() and gc() increases process size (as measured by top) by 10-50 MB per iteration.

I guess #136 is a possible suspect although I don't know whether it can explain the amount of lost memory. It could of course also be an issue with MAT.jl but it seems more likely to originate in the hdf5 library interaction, so I file it here.

The mat file in question has too sensitive content to share it but I have constructed a smaller file (232 kB) with randomized data that I can make available on request. For that file the leakage is on the order of 0.5-1 MB per iteration, so still quite noticeable.

@simonster
Copy link
Member

If you can send the file to simon@simonster.com I'll take a look.

simonster added a commit that referenced this issue Oct 1, 2014
- Free or manage memory for strings
- Ensure that datatypes are closed when necessary

Fixes #136, #155
@simonster
Copy link
Member

Fixed by 70cfcc1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants