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

Error reading multiple ITK images #58

Closed
floryst opened this issue Apr 17, 2018 · 3 comments · Fixed by #65
Closed

Error reading multiple ITK images #58

floryst opened this issue Apr 17, 2018 · 3 comments · Fixed by #65
Milestone

Comments

@floryst
Copy link
Collaborator

floryst commented Apr 17, 2018

To reproduce:

  1. Have a large image file readable by itk.js. I generated a 100x100x100 wavelet using paraview and exported it to NRRD.
  2. Open image file in glance
  3. Delete the image dataset from the pipeline editor
  4. Open the image again

Console outputs an uncaught promise error object:

{
  "message":"parameter 0 has unknown type emsc",
  "stack":"BindingError: parameter 0 has unknown type emsc
               at BindingError.<anonymous> (http://localhost:9999/itk/ImageIOs/itkNrrdImageIOJSBindingWasm.js:1:107142)
               at new BindingError (eval at createNamedFunction (http://localhost:9999/itk/ImageIOs/itkNrrdImageIOJSBindingWasm.js:1:106848), <anonymous>:4:34)
               at throwBindingError (http://localhost:9999/itk/ImageIOs/itkNrrdImageIOJSBindingWasm.js:1:107587)
               at requireRegisteredType (http://localhost:9999/itk/ImageIOs/itkNrrdImageIOJSBindingWasm.js:1:134433)
               at emval_allocator_1 (eval at craftEmvalAllocator (http://localhost:9999/itk/ImageIOs/itkNrrdImageIOJSBindingWasm.js:1:143459), <anonymous>:4:16)
               at __emval_new (http://localhost:9999/itk/ImageIOs/itkNrrdImageIOJSBindingWasm.js:1:143803)
               at wasm-function[1550]:18\n    at invoke_iiiii (http://localhost:9999/itk/ImageIOs/itkNrrdImageIOJSBindingWasm.js:1:159365)
               at wasm-function[139]:4495\n    at wasm-function[175]:73"
}

@thewtex do you know anything about this error message?

@thewtex
Copy link
Member

thewtex commented Apr 18, 2018

@floryst I have not seen this before, but we can work around the issue with these changes:

InsightSoftwareConsortium/itk-wasm#121

i.e. call terminate() on the web worker, and force the generation of a new one on the second invocation.

@floryst floryst added this to the Beta Release milestone Apr 19, 2018
@floryst
Copy link
Collaborator Author

floryst commented Apr 20, 2018

Relevant fix: Kitware/vtk-js#711

@jourdain
Copy link
Collaborator

🎉 This issue has been resolved in version 1.1.36 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

3 participants