You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am seeing issues since upgrading to Cornerstone 2.1.5 and trying to follow the migration guide. I am running using Angular 18 for the front-end framework.
When initializing the Cornerstone DICOM Image Loader, it cannot find the decodeImageFrameWorker.js file. I have the following code for initialization.
if (cornerstone.init()) {
cornerstoneDICOMImageLoader.init({});
}
For every webworker, I then get the following message in the console: The file does not exist at "C:/cornerstone-test/.angular/cache/18.2.11/cornerstone-test/vite/deps/decodeImageFrameWorker.js?worker_file&type=module" which is in the optimize deps directory. The dependency might be incompatible with the dep optimizer. Try adding it to `optimizeDeps.exclude\`.
When my code later reaches the volume loader and tries to load a volume, it hangs forever. The promise returned from the loadVolume function never resolves nor errors out.
I am registering the volume loader and then trying to load my volume like this
cornerstone.volumeLoader.registerVolumeLoader(
'myvolumescheme',
cornerstone.cornerstoneStreamingImageVolumeLoader as any
// cornerstone.CornerstoneStreamingImageVolumeLoader does not exactly match the
// cornerstone.Types.VolumeLoaderFn definition and must be cast to avoid typescript
// compiler errors
);
const imageUrls = [
... wadouri image urls ...
];
cornerstone.volumeLoader.loadVolume('myvolumescheme: myvolume', { imageIds: imageUrls })
.then((value) => { console.log(value); debugger; }) // neither (then) nor (catch) are ever reached
.catch((error) => { console.error(error); debugger; });
I suspect that the issues are related - the volume loader likely can't load the volume because the Cornerstone DICOM image loader didn't initialize correctly. When I revert back to Cornerstone 1.86, neither of these issues occur.
Steps to Reproduce
Initialize cornerstone
Initialize cornerstoneDICOMImageLoader
Register volume loader
Load volume
The current behavior
Initializing the cornerstoneDICOMImageLoader is resulting in console messages saying that it cannot find the decodeImageFrameWorker.js file. The file does not exist at "C:/cornerstone-test/.angular/cache/18.2.11/cornerstone-test/vite/deps/decodeImageFrameWorker.js?worker_file&type=module" which is in the optimize deps directory. The dependency might be incompatible with the dep optimizer. Try adding it to `optimizeDeps.exclude`.
Trying to then load a volume with the volume loader returns a promise object that never resolves and never errors out.
The expected behavior
The decodeImageFrameWorker.js file should be found and the volume loader's promise should either resolve or throw an error.
OS
Windows 11
Node version
20.15.1
Browser
Chrome 130.0.6723.70
The text was updated successfully, but these errors were encountered:
Describe the Bug
I am seeing issues since upgrading to Cornerstone 2.1.5 and trying to follow the migration guide. I am running using Angular 18 for the front-end framework.
When initializing the Cornerstone DICOM Image Loader, it cannot find the decodeImageFrameWorker.js file. I have the following code for initialization.
For every webworker, I then get the following message in the console:
The file does not exist at "C:/cornerstone-test/.angular/cache/18.2.11/cornerstone-test/vite/deps/decodeImageFrameWorker.js?worker_file&type=module" which is in the optimize deps directory. The dependency might be incompatible with the dep optimizer. Try adding it to `optimizeDeps.exclude\`.
When my code later reaches the volume loader and tries to load a volume, it hangs forever. The promise returned from the
loadVolume
function never resolves nor errors out.I am registering the volume loader and then trying to load my volume like this
I suspect that the issues are related - the volume loader likely can't load the volume because the Cornerstone DICOM image loader didn't initialize correctly. When I revert back to Cornerstone 1.86, neither of these issues occur.
Steps to Reproduce
The current behavior
Initializing the cornerstoneDICOMImageLoader is resulting in console messages saying that it cannot find the decodeImageFrameWorker.js file.
The file does not exist at "C:/cornerstone-test/.angular/cache/18.2.11/cornerstone-test/vite/deps/decodeImageFrameWorker.js?worker_file&type=module" which is in the optimize deps directory. The dependency might be incompatible with the dep optimizer. Try adding it to `optimizeDeps.exclude`.
Trying to then load a volume with the volume loader returns a promise object that never resolves and never errors out.
The expected behavior
The decodeImageFrameWorker.js file should be found and the volume loader's promise should either resolve or throw an error.
OS
Windows 11
Node version
20.15.1
Browser
Chrome 130.0.6723.70
The text was updated successfully, but these errors were encountered: