-
Notifications
You must be signed in to change notification settings - Fork 5
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
ZIPMAT BUG: "zmat" used up all system memory #11
Comments
|
@xingchenli1996, are you using the precompiled version (directly download and addpath) or the github CI build? https://mcx.space/nightly/github/zmat-allinone-github-latest.zip if you did not use the CI build, can you give it a try and see if this memory leakage problem still appear? |
Yes,I am currently using one of the precompiled version inside Git master's [Private] folder, but memory overload failure occurs. However, because of a Github limit, I could not upload the video directly to Github. I could only upload the video to netdisk in my country, China 链接: https://pan.baidu.com/s/1Tt0sInQkK4XZ2Owj5jvfOA?pwd=1234 提取码: 1234 |
@xingchenli1996, thanks for reporting this issue. I was able to reproduce it. the problem was caused by known memory leakage for eazylzma -- a library I used for the lzma compression/decompression. This memory leakage was reported in lloyd/easylzma#4 and lloyd/easylzma#7, but the upstream code was no longer maintained. After merging the changes from the above pull requests, I was able to see that the memory leakage has disappeared. by the way, matlab has a built-in function let me know if this issue is also fixed on your side. |
The Memory failure disappeared now. Thanks very much for your work. Now my project that automatically examine whether a complex array contains a block that can be compressed, could run as expected. Thank you again and you are a genius. |
% test code:
The usage is to test whether a big and complex data contained some lines that can be compressed to a smaller size than its original size.
And, after the subfunction run succesfully, the temporary variable cleared, but the system memory occupied by ZMAT mex does not free automatically, and to my surprise, continue growing. except a quit and restart of MATLAB Application (which is absolutely impossible during script running)
When this code is running, system will use up at once.
The text was updated successfully, but these errors were encountered: