Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Out of memory error compressing to zip using zstd with level 20+ #388

Open
pps83 opened this issue Jan 11, 2025 · 2 comments
Open

Out of memory error compressing to zip using zstd with level 20+ #388

pps83 opened this issue Jan 11, 2025 · 2 comments

Comments

@pps83
Copy link

pps83 commented Jan 11, 2025

I use 7-Zip ZS 22.01 - v1.5.5 - Release 3 that seem to be very outdated compared to the src code. I wanted to do some tests with .zip + zstd and simply wanted to compress src code of the latest lzma sdk. If I use .zip+zstd with compression levels above 19 I get "The system cannot allocate the required amount of memory" error:

image

these are the compression settings:

image

7z+zstd with 20+ compression level has no issues, so it's some sort of bug in the code. Total uncompressed size of the code is less than 10MB.

@sebres
Copy link
Collaborator

sebres commented Jan 13, 2025

Can confirm it with current master too, however only with level 22 (seems to be depending on max memory).

Attempts to reduce Memory usage for Compressing (no matter to which value), in order to workaround it, cause another error - "The parameter is incorrect".

@inschrift-spruch-raum
Copy link

Attempts to reduce Memory usage for Compressing (no matter to which value), in order to workaround it, cause another error - "The parameter is incorrect".

I have also noticed this issue. On my computer, no matter how 7z is set up, this error occurs, while other formats do not have this problem

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

No branches or pull requests

3 participants