cornerstoneWADOImageLoader icon indicating copy to clipboard operation
cornerstoneWADOImageLoader copied to clipboard

loadAndCacheImage throw more than one Error based on modlaity

Open ali-hashem-hamed opened this issue 3 years ago • 1 comments

it may be throw

[ERROR] Malformed JP2 file format: first box must be JPEG 2000 signature box -decompress: failed to read the header -decoding failed!

  • decodeTask failed - undefined

or Cannot read properties of undefined (reading 'sx')

or

ERROR Error: Uncaught (in promise): Object: {"dataSet":{"byteArrayParser":{},"byteArray":

my code cornerstone .loadAndCacheImage(this.viewer.stacks[this.stackIndex].imageIds[0]) .then((image) => {}).catch(err=>{}

my config for image loader

``cornerstoneWADOImageLoader.webWorkerManager.initialize({ maxWebWorkers: navigator.hardwareConcurrency || 1, startWebWorkersOnDemand: true, codecsPath: 'cornerstoneWADOImageLoaderCodecs.min.js', taskConfiguration: { decodeTask: { initializeCodecsOnStartup: true, usePDFJS: false, strict: false, }, }, });

ali-hashem-hamed avatar Jul 04 '22 15:07 ali-hashem-hamed

hello, I'm in the same trouble. Have you solved that?

newPeter7 avatar Jun 05 '24 04:06 newPeter7