[Bug] Error executing method 'convertLabelmapToSurface' on worker 'polySeg': 1134255856.
Describe the Bug
Error executing method 'convertLabelmapToSurface' on worker 'polySeg': 1134255856 Error: Failed to convert labelmap to surface
Steps to Reproduce
-
Download this anonymized study - https://drive.google.com/file/d/1Jb6GOPyWaOeFeJixqcxvYp-F3leQR8Wo/view?usp=sharing
-
open in segmentation mode
-
scroll the canvas to make sure every frame is loaded
-
make segmentation and open 3d
is this only happening on this dataset?
Maybe it is for local mode? did you try the dicomweb setup?
is this only happening on this dataset?
Maybe it is for local mode? did you try the dicomweb setup?
I use orthanc dicomweb. This error shows up only for this study. 3d itself works good. But i can't see the segmentation rendered in 3d
weird
it is getting rejected , i bet it is related to +1000 slices it has
For those who might stumble upon this issue: as a workaround, you can build @icr/polyseg-wasm following the documentation, but set MAXIMUM_MEMORY to 4294967296 (4 GB). By default, I think it’s around 2 GB.
To do that, add
"SHELL:-s ALLOW_MEMORY_GROWTH=1"
"SHELL:-s MAXIMUM_MEMORY=4294967296" <--- add this
in src/CMakeLists.txt and then build the project.
After that, you’ll need to find a way to distribute the dist folder instead of dist in @icr/polyseg-wasm from node_modules, which is a bit of a pain.
Hope this helps.