-
Notifications
You must be signed in to change notification settings - Fork 22
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
Fails to decode on large files (500 kb) #19
Comments
You need to set the heap size for large values for decoding manually. The default value is
|
@dignifiedquire still fails
|
maybe its being encoded wrong |
nope, the encoding looks to be correct accouding to http://cbor.me/?bytes= . The error is buried some in decoder.asm.js. Is the c souce for that? |
that's written by hand, no source |
ok so i noticed even though i have |
@wanderer did you make any progress or swap from CBOR to something else? |
Okay I checked out the source and it turns out the reason is that decoding of byte_string_32 and byte_string_64 are simply not implemented yet. I pushed a branch with some failing test cases and a start of working on this, but fixing this will require a good deal of reshuffeling in |
Turns out for 32bit sized ones I could do with the same structure. Fix is here and can handle now the sizes you were mentioning |
After playing around - it started all working for me - and I was no longer getting the issue. fs.readFileSync(jsonFile, 'utf8'); |
Encoding works fine. But decode fails with
To repodece
Where
rootContainer.bundle.js
is attachedrootContainer.bundle.js.zip
The text was updated successfully, but these errors were encountered: