Skip to content
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

RAW NRRD cannot be displayed #227

Closed
RhinoBlindado opened this issue Mar 15, 2022 · 1 comment
Closed

RAW NRRD cannot be displayed #227

RhinoBlindado opened this issue Mar 15, 2022 · 1 comment

Comments

@RhinoBlindado
Copy link

I think I've found a bug in the NRRD parser or maybe is it the files I'm using?,

I've been trying to load NRRDs with a RAW encoding, when it's time to render it gives me this error:
Uncaught RangeError: buffer length for Int16Array should be a multiple of 2 in the library at xtk_edge.js:270.

However if I try to open this file in 3DSlicer it works perfectly, in fact, the NRRD was created by 3DSlicer itself; if I instead compress the same NRRD file within 3DSlicer, it loads and displays correctly.

From what I've been seeing, the array buffer is indeed an even number.

If this is a problem with the file, how could it be fixed? Since the NRRD is quite big (300MB), I'll provide it if needed.

@RhinoBlindado
Copy link
Author

I've fixed it myself, it's on this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant