-
Notifications
You must be signed in to change notification settings - Fork 8
Uncaught TypeError: value is out of bounds #2
Comments
Hi @adam-clason, |
It happens every time I try the "Upload all cartridges" option. It spins for some time then throws that error. |
I still unable to reproduce this. :( |
@adam-clason The root cause is too many files. I wrapped index.js line 220 with a simple try/catch and logged the value of In my case, the value was 68468 > UInt16 65535. |
Folks, in this case you should try specify cartridges as described here. So this force uploading each directory/cartridge in other zip file. |
@adam-clason Do you have |
@SqrTT - I do |
@SqrTT I see you posted a bug on YAZL. FWIW, the ZIP spec limits the number of files to 2 bytes (65535 files) See the "End of Central Directory Record" table towards the end of the wikipage: https://en.wikipedia.org/wiki/Zip_(file_format). The "solution" would be to create separate zip files. |
@madzim It's sad I believed that this is limit of library. Thank you for clarification. |
@adam-clason Could you please get version v1.2.3 and check if you can unload now, please? |
yazl just released version 2.4.0 which adds ZIP64 support. ZIP64 allows up to 2^32-1 entries in a zipfile, so your 68468 case should not be a problem. No API usage changes are required; it should just work if you update your dependencies. According to my investigation, most popular zip file readers support the ZIP64 extension. The exception being Archive Utility for Mac. |
thanks for info, I'll check if ours platform also support ZIP64 |
@thejoshwolfe |
[Enter steps to reproduce below:]
Atom Version: 1.7.3
System: Mac OS X 10.10.3
Thrown From: Bart package, v1.1.0
Stack Trace
Uncaught TypeError: value is out of bounds
Commands
Config
Installed Packages
The text was updated successfully, but these errors were encountered: