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

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

Open
pps83 opened this issue Jan 11, 2025 · 1 comment
Open

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

pps83 opened this issue Jan 11, 2025 · 1 comment

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".

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