cornerstoneWADOImageLoader icon indicating copy to clipboard operation
cornerstoneWADOImageLoader copied to clipboard

TypeError: Cannot read properties of undefined (reading 'length')

Open muhammedmokbel opened this issue 4 years ago • 3 comments

Hi Everyone, I have this issue when make WADO-RS request with accept headers : multipart/related; type="application/octet-stream"; transfer-syntax=*

when dealing with jpeg type this error doesn't happen but when dealing with octet-stream data I got this issue

I investigate the error as I can and found, the part of code that make this problem in file index.worker.bundle.min.worker.js.map is : if (A.pixelDataLength = A.pixelData.length, I.targetBuffer)

A.pixelData.length pixelData is undefined so we can't access length from it

I use react-cornerstone-viewport and send my imageIds to render the images

any solution ?

thanks

muhammedmokbel avatar Nov 09 '21 10:11 muhammedmokbel

I have same problem. Any solution?

keyhooon avatar Jan 23 '23 08:01 keyhooon

how can I debug index.worker.bundle.min.worker.js file in OHIF project? its script which is added to web worker after creating, and I cant put break point on it. I think, mentioned problem occur because, data is not correct in DecodeTask.

keyhooon avatar Jan 28 '23 15:01 keyhooon

Faced the same issue. Ended up using a custom image loader like in https://github.com/GoogleCloudPlatform/healthcare-api-dicom-viewer

deveshm avatar Aug 23 '23 03:08 deveshm