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

2GB file limit? #1

Closed
rlewkowicz opened this issue Dec 31, 2024 · 2 comments
Closed

2GB file limit? #1

rlewkowicz opened this issue Dec 31, 2024 · 2 comments

Comments

@rlewkowicz
Copy link

I'm getting an error

Cannot read data.  Did you drop a folder? - NotReadableError: The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.

I did not drop a folder but your docs speak of a 2gb limit. The 7z I'm trying is 3gb. Is this the issue? On windows is there a bypass?

@GMH-Code
Copy link
Owner

GMH-Code commented Jan 7, 2025

Hi @rlewkowicz,

I was able to open a 3GiB .7z file and successfully extract files from it, so your problem could be related to any of the following, or something else:

  • Your operating system is not giving your browser sufficient permission to access the file's contents.
  • The browser may be out of memory, or you might be trying to open a 3GiB file on a 32-bit browser. 32-bit browsers are likely limited to 2GiB objects (amongst other things). If this is the case, there won’t be enough memory for the file to be temporarily placed in the in-memory filesystem.
  • Some other program or handle is stopping the file being loaded.

The documentation did speak of a 2GiB limit, but this has now been updated because it appears a change may have been made to Emscripten to lift restrictions on filesystem object sizes. The limit only affects the (usually small) in-memory processing part of the compression/decompression process (the WebAssembly Heap), and, like the desktop version of 7-Zip, should not actually limit the size of the file you can work on.

@GMH-Code
Copy link
Owner

GMH-Code commented Jan 8, 2025

Closing this as I don't think it's a bug with JS7z, but please feel free to comment if you have any updates.

@GMH-Code GMH-Code closed this as completed Jan 8, 2025
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