Paraview-glance cannot load .dcm files. Error Could not read file: /work/X.dcm

I’m trying to load .dcm files using paraview-glance using URL param
http://localhost:9999/?name=CT000000.dcm&url=http://localhost:9999/dicom/CT000000.dcm

Fails with the below error

{
  "message": "Could not read file: /work/CT000000.dcm",
  "stack": "Error: Could not read file: /work/CT000000.dcm\n    at readImageEmscriptenFSDICOMFileSeries (http://localhost:9999/itk/WebWorkers/ImageIO.worker.js:59:356)\n    at readDICOMImageSeries (http://localhost:9999/itk/WebWorkers/ImageIO.worker.js:32:3478)\n    at http://localhost:9999/itk/WebWorkers/ImageIO.worker.js:32:3827\n    at o (http://localhost:9999/itk/WebWorkers/ImageIO.worker.js:2:2754)\n    at http://localhost:9999/itk/WebWorkers/ImageIO.worker.js:2:3342\n    at http://localhost:9999/itk/WebWorkers/ImageIO.worker.js:2:3404"
}

Interestingly the same file when loaded using the open file dialog (local) is loading fine

This should be fixed in Glance master branch shortly. The issue stemmed from incorrect parsing of downloaded data. PR link: https://github.com/Kitware/paraview-glance/pull/291

1 Like