msgpack-lite icon indicating copy to clipboard operation
msgpack-lite copied to clipboard

Out of memory issue when decoding files

Open thatcort opened this issue 6 years ago • 0 comments

I'm running into out of memory issues when I attempt to decode files. Are there any known issues around types of files or ways of interacting with the library that affect this?

In the application I'm calling msgpack.decode(new Uint8Array(<ArrayBuffer of data>))

When run, the browser tab crashes (Chrome shows an 'Awww Snap!' error page). If I run the app with the developer tools open and set some breakpoints, it stops occasionally with a warning of a potential out of memory error. I can then continue execution and the decoding completes successfully. This leads me to believe the garbage collector needs time to run.

One of the files I'm having problems with is available here: https://file.io/5MRCJL

Any help with this is greatly appreciated!

thatcort avatar May 17 '18 16:05 thatcort