Viewers icon indicating copy to clipboard operation
Viewers copied to clipboard

Limitation on loading files size in local mode

Open vicOnGit75 opened this issue 7 years ago • 9 comments

While trying to upload files greater than ~10MB in server/Local

get exception: Uncaught (in promise) RangeError: Source is too large at Uint8Array.set () at ReadBufferStream.concat (webpack:.../node_modules/dcmjs/build/dcmjs.es.js?:855) Problematic files is XA cine.
Files ~0.5 MB/single frames are loaded successfully.

vicOnGit75 avatar Sep 03 '19 15:09 vicOnGit75

I just tried this with a 28mb mammogram and everything worked fine. Could you de-identify your dataset and share it? Does it work if it is uploaded to a PACS first?

Thanks for the report!

swederik avatar Sep 03 '19 15:09 swederik

Just before anonimaization: -files was multiframe XA and it was applied directly from local disk.

vicOnGit75 avatar Sep 03 '19 16:09 vicOnGit75

Thanks for the fast response!

vicOnGit75 avatar Sep 03 '19 16:09 vicOnGit75

It worked while provided by WADO-RS

vicOnGit75 avatar Sep 03 '19 16:09 vicOnGit75

Good to know. It might be an issue with multiframe images on the local viewer. I notice that the multiframe images I am testing are not working either (the ?frame=N is probably not being added to the imageId). They aren't crashing, though.

swederik avatar Sep 04 '19 06:09 swederik

Please see uploaded problematic file at https://github.com/vicOnGit75/TmpStorage; Anyway I guess this behavior you watched- not crashing, but not exiting from uploading state with error :Uncaught (in promise) RangeError: Source is too large at Uint8Array.set () ... in console.

vicOnGit75 avatar Sep 05 '19 08:09 vicOnGit75

@vicOnGit75 what browser are you using? I think the max array size may be lower depending on your browser vendor.

dannyrb avatar Sep 06 '19 17:09 dannyrb

on my chrome 76 i get

window.performance.memory.jsHeapSizeLimit 2197815296 Should I check smth else?

vicOnGit75 avatar Sep 07 '19 13:09 vicOnGit75

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 28 '19 14:09 stale[bot]