Viewers icon indicating copy to clipboard operation
Viewers copied to clipboard

Error on measurement start

Open shlomgad opened this issue 5 years ago • 5 comments

  1. Build as usual (yarn run build).
  2. Deploy build results on webserver.
  3. Load a dicom instance using /viewer?url=

Image is rendered correctly.

  1. Click the Length measurement tool and start measuring.
  2. Following console output and TypeError is thrown:
MeasurementService.js:305 Measurement ID not found. Generating UID: d175244c-91a9-ad1c-40f5-cdce004d2df5
value @ MeasurementService.js:305
addOrUpdate @ MeasurementService.js:133
(anonymous) @ init.js:247
(anonymous) @ init.js:270
r @ cornerstoneTools.js:37882
u @ cornerstoneTools.js:11524
t.default @ cornerstoneTools.js:3717
t.default @ cornerstoneTools.js:3969
r @ cornerstoneTools.js:37882
h @ cornerstoneTools.js:5768
MeasurementService.js:326 Measurement added. {id: "d175244c-91a9-ad1c-40f5-cdce004d2df5", SOPInstanceUID: "1.3.12.2.1107.5.1.4.78305.30000021012105263971600029940", FrameOfReferenceUID: "1.3.12.2.1107.5.1.4.78305.30000021012104511285400009745", referenceSeriesUID: "1.3.12.2.1107.5.1.4.78305.30000021012105263971600029627", label: undefined, …}
handleSingleMeasurementAdded.js:25 CornerstoneToolsMeasurementAdded

**TimepointApi.js:515 Uncaught TypeError: Cannot read property 'includes' of undefined
    at TimepointApi.js:515**
    at Array.filter (<anonymous>)
    at e.value (TimepointApi.js:514)
    at e.value (MeasurementApi.js:696)
    at at (handleSingleMeasurementAdded.js:34)
    at Object.onAdded [as added] (index.js:46)
    at i (init.js:39)
    at r (cornerstoneTools.js:37882)
    at u (cornerstoneTools.js:11524)
    at t.default (cornerstoneTools.js:3717)

The measurement appears on the image, but not saved to the measurements list.

shlomgad avatar Jan 30 '21 07:01 shlomgad

@shlomgad I am also facing the same issue. while applying the new measurement tools on image in the standalone viewer. any update on this?

I am using latest viewer which is available on npm. I am loading json file in the viewer

image

return timepoint.studyInstanceUIDs is undefined image

@dannyrb @Zaid-Safadi

https://user-images.githubusercontent.com/2580866/130438619-75a94dad-c663-4501-95ba-d9e608911232.mp4

pmd23 avatar Aug 23 '21 09:08 pmd23

any update on this I am stuck here. @all-contributors

pmd23 avatar Aug 25 '21 06:08 pmd23

Unfortunately no update.

shlomgad avatar Aug 30 '21 17:08 shlomgad

Any update on this yet?

ericmil87 avatar Feb 15 '23 21:02 ericmil87

Please review the latest code in the master branch. I am confident that this issue has been resolved. If it persists, kindly reopen the issue with updated details.

Try viewer-dev.ohif.org instead of viewer.ohif.org Our viewer.ohif.org is deployed from release branch while viewer-dev.ohif.org is our master branch Read more about branch explanations here https://docs.ohif.org/development/getting-started#developing

sedghi avatar Oct 13 '23 02:10 sedghi