-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Regression: loadImage is failing for a particular slice #908
Comments
The issue seems to be gone when I set |
The Which, based on proximity, seems to be a minimized version of this call to cornerstone3D/packages/dicomImageLoader/src/shared/decodeImageFrame.ts Lines 373 to 387 in bb58632
|
So |
So it looks like an issue with minification. If I run
|
It looks like if I minify that
And this properly returns
|
Copy-pasting that
|
Actually, if I disable minification I still get a function that doesn't output properly, so it might not be the whole story --
This implementation also returns undefined on my values of |
Oh I finally see now that my |
I see 85fd193 was released in v1.29.0+, but unfortunately when I try to use that I get other errors which might boil down to the known circular dependency issue in Vite:
|
Indeed, if I apply this patch to the
Then do a rebuild
And then replace the
Now, both the working.dcm and broken.dcm load properly. |
Closing this, since the actual issue is already resolved in v1.29.0, and the most likely reason that version doesn't work in Vite is known and being addressed for v2. |
Describe the Bug
This slice loaded normally in cornerstone legacy, but no longer in cornerstone 3d. Another slice of the same volume works normally.
Steps to Reproduce
broken-slice.zip
The current behavior
The following messages & error is displayed:
The expected behavior
Both images load normally, and
loadImage
does not throw.OS
macOS 14.0
Node version
20.8.1
Browser
Chrome 119.0.6045.159
The text was updated successfully, but these errors were encountered: