cornerstonejs / cornerstoneWADOImageLoader

[DEPRECATED] DICOM WADO Image Loader for the cornerstone library
MIT License
285 stars 264 forks source link

`TypeError: e.elements.x00281201 is undefined` when loading local file #318

Open leweohlsen opened 4 years ago

leweohlsen commented 4 years ago

Hi everyone,

when trying to load a DICOM that was processed with the GDCM library, cornerstone.loadImage throws the following TypeError:

TypeError: e.elements.x00281201 is undefined

The problem is that this error is not handled within the promise that loadImage returns. If this error occurs, the promise never seems to resolve or reject.

Here's some more information about the file that causes the error. It can be found among the example files for the pydicom library.

gdcm-US-ALOKA-16.dcm (from GDCM) Little endian implicit Segmented 16-bit Palette Color LUT Data Modified to remove original patient name and ID from Pixel Data

Steps to reproduce

1) Obtain gdcm-US-ALOKA-16.dcm 2) Upload the file to the hosted WADOImageLoader reference implementation 3) Check your browser console.

Cheers, Lewe

leweohlsen commented 4 years ago

I just realized this is probably related to #305