cornerstoneWADOImageLoader icon indicating copy to clipboard operation
cornerstoneWADOImageLoader copied to clipboard

Out of memory when loading J2K images on mobile Chrome

Open dougyau opened this issue 4 years ago • 2 comments

When trying to load images on android using Chrome, it errors out with the error

image

This seems to be caused by the commit https://github.com/cornerstonejs/cornerstoneWADOImageLoader/commit/e38c066a7b8c293e48b6e0ca7a21791400ce7d86 where the decoder was switched to wasm.

dougyau avatar Oct 27 '21 21:10 dougyau

@dougyau hello, I'm in the same trouble. Have you solved that?

guhyeon avatar Aug 28 '22 09:08 guhyeon

To make it work, I had to tweak the the amount of memory the codec requests. you can see the PR in https://github.com/cornerstonejs/codecs/pull/13

The built artifact from that PR can be found in https://github.com/dougyau/codec-openjpeg

dougyau avatar Aug 28 '22 18:08 dougyau