loadAndCacheImage throw more than one Error based on modlaity
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, }, }, });
hello, I'm in the same trouble. Have you solved that?