Viewers icon indicating copy to clipboard operation
Viewers copied to clipboard

[Bug] DICOM never finishes loading

Open wmtdru8xip opened this issue 1 year ago • 1 comments

Describe the Bug

See below. Upon investigation, the following code seems to be responsible for this bug: https://github.com/OHIF/Viewers/blob/9c553fded431b22a0704e0b58375707f41608a8f/platform/core/src/utils/isDisplaySetReconstructable.js#L187 !iop2 === undefined will always evaluate to false.

Steps to Reproduce

  1. yarn run dev
  2. Load http://localhost:3000/local in browser
  3. Upload a DICOM dataset
  4. Open the developer tools
  5. Click the study information, then Basic Viewer

The current behavior

It never finished loading, and the following error could be seen in developer tools of the browser:

TypeError: iop2 is undefined
    _isSameOrientation app.js line 1 > srcScript:5941
    areAllImageOrientationsEqual areAllImageOrientationsEqual.ts:20
    checkSingleFrames checkSingleFrames.ts:26
    getDisplaySetMessages getDisplaySetMessages.ts:40
    makeDisplaySet getSopClassHandlerModule.js:22

The expected behavior

It loads the study without error.

OS

macOS 14.2.1

Node version

v21.3.0

Browser

Firefox 121.0.1

wmtdru8xip avatar Jan 17 '24 15:01 wmtdru8xip

can you provide us with ther data

sedghi avatar May 04 '24 17:05 sedghi