-
-
Notifications
You must be signed in to change notification settings - Fork 119
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]: .rar file decompression failed. Error code is E_OUTOFMEMORY. #262
Comments
Hi! |
Thank you! |
I tested it with version 23.01, and it works fine. |
Ok good, at least there's a possible workaround for the time being. I did some tests myself and I could not entirely replicate the issue. reader.useFormatProperty( L"memx", L"1g" ); // Setting the memory limit to 1 GB
reader.extractTo( BIT7Z_STRING( "test_rar" ) ); // Extracting an archive with a 2 GB dictionary. In this case, I can replicate your issue. Is this also your case? |
I did not modify any parameters during the extraction process. This issue occurs occasionally, and the compressed file is in RAR format with an encrypted filename. |
It seems that the reason for insufficient memory resources could be due to memory fragmentation, which causes the failure to allocate 1GB of virtual memory. Are there any good solutions to address this issue? |
The 7-zip x86 runs normally, and it should be the LARGEADDRESSAWARE parameter causing the issue. After I added the LARGEADDRESSAWARE parameter, it worked fine. |
This is interesting: I tested using LARGEADDRESSAWARE, but it didn't work in my case, so I didn't suggest it as a solution. I guess its effectiveness depends on the specific characteristics of the archive being extracted, although I used a similar RAR archive. |
bit7z version
4.0.x
Compilation options
BIT7Z_AUTO_PREFIX_LONG_PATHS, BIT7Z_REGEX_MATCHING, BIT7Z_USE_NATIVE_STRING
7-zip version
v23.01
7-zip shared library used
7z.dll / 7z.so
Compilers
MSVC
Compiler versions
No response
Architecture
x86
Operating system
Windows
Operating system versions
windows 11
Bug description
When decompressing a large(about 2GB), password-protected RAR file, an "insufficient memory resources" error occurs, returning the error code E_OUTOFMEMORY. However, 7-Zip is able to decompress the same file without any issues.
Steps to reproduce
No response
Expected behavior
No response
Relevant compilation output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: