Viewers icon indicating copy to clipboard operation
Viewers copied to clipboard

[Bug] Error executing method 'convertLabelmapToSurface' on worker 'polySeg': 1134255856.

Open narbek-abd opened this issue 2 months ago • 5 comments

Describe the Bug

Error executing method 'convertLabelmapToSurface' on worker 'polySeg': 1134255856 Error: Failed to convert labelmap to surface

Steps to Reproduce

  1. Download this anonymized study - https://drive.google.com/file/d/1Jb6GOPyWaOeFeJixqcxvYp-F3leQR8Wo/view?usp=sharing

  2. open in segmentation mode

  3. scroll the canvas to make sure every frame is loaded

  4. make segmentation and open 3d

narbek-abd avatar Oct 08 '25 06:10 narbek-abd

is this only happening on this dataset?

Maybe it is for local mode? did you try the dicomweb setup?

sedghi avatar Oct 08 '25 13:10 sedghi

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

narbek-abd avatar Oct 08 '25 13:10 narbek-abd

weird

sedghi avatar Oct 08 '25 14:10 sedghi

it is getting rejected , i bet it is related to +1000 slices it has

CleanShot 2025-10-08 at 10.06.49@2x.png

sedghi avatar Oct 08 '25 14:10 sedghi

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.

NurbekGithub avatar Oct 23 '25 14:10 NurbekGithub