3D slicer hangs or taking longer time to perform single operation

Operating system: windows 10
Slicer version: 4.8.1
Expected behavior:
Actual behavior:

I am using 3D slicer for segmentation and modelling. The slicer file takes longer time to open and to perform any operation. My file is not big and not sure if the issue caused.
I have tried in latest version as well with my file but still getting this hanging issue.

I have updated my graphics card and Bios. Below is the log file extracted from the bug
May I know if anyone can help to assit with this issue.
[DEBUG][Qt] 02.01.2020 07:55:05 [] (unknown:0) - Session start time …: 2020-01-02 07:55:05
[DEBUG][Qt] 02.01.2020 07:55:05 [] (unknown:0) - Slicer version …: 4.8.1 (revision 26813) win-amd64 - installed
[DEBUG][Qt] 02.01.2020 07:55:05 [] (unknown:0) - Operating system …: Windows / Professional / (Build 9200) - 64-bit
[DEBUG][Qt] 02.01.2020 07:55:05 [] (unknown:0) - Memory …: 16226 MB physical, 45922 MB virtual
[DEBUG][Qt] 02.01.2020 07:55:05 [] (unknown:0) - CPU …: GenuineIntel , 12 cores, 16 logical processors
[DEBUG][Qt] 02.01.2020 07:55:05 [] (unknown:0) - Developer mode enabled …: no
[DEBUG][Qt] 02.01.2020 07:55:05 [] (unknown:0) - Prefer executable CLI …: yes
[DEBUG][Qt] 02.01.2020 07:55:05 [] (unknown:0) - Additional module paths …: (none)
[DEBUG][Python] 02.01.2020 07:55:06 [Python] (C:\Program Files\Slicer 4.8.1\lib\Python\Lib\site-packages\git\cmd.py:719) - Popen(%s, cwd=%s, universal_newlines=%s, shell=%s)
[DEBUG][Python] 02.01.2020 07:55:07 [Python] (C:\Program Files\Slicer 4.8.1\lib\Python\Lib\site-packages\git\cmd.py:719) - Popen(%s, cwd=%s, universal_newlines=%s, shell=%s)
[DEBUG][Python] 02.01.2020 07:55:08 [Python] (C:\Program Files\Slicer 4.8.1\lib\Slicer-4.8\qt-scripted-modules\SubjectHierarchyPlugins\AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: Annotations
[DEBUG][Python] 02.01.2020 07:55:09 [Python] (C:\Program Files\Slicer 4.8.1\lib\Slicer-4.8\qt-scripted-modules\SubjectHierarchyPlugins\AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: SegmentEditor
[DEBUG][Python] 02.01.2020 07:55:09 [Python] (C:\Program Files\Slicer 4.8.1\lib\Slicer-4.8\qt-scripted-modules\SubjectHierarchyPlugins\AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: SegmentStatistics
[DEBUG][Qt] 02.01.2020 07:55:05 [] (unknown:0) - Number of registered modules: 135
[DEBUG][Qt] 02.01.2020 07:55:07 [] (unknown:0) - Number of instantiated modules: 135
[DEBUG][Qt] 02.01.2020 07:55:09 [] (unknown:0) - Number of loaded modules: 135
[DEBUG][Qt] 02.01.2020 07:55:09 [] (unknown:0) - Switch to module: “Welcome”
[INFO][VTK] 02.01.2020 07:55:11 [vtkMRMLVolumeArchetypeStorageNode (000001D6923A3800)] (D:\D\P\Slicer-481\Libs\MRML\Core\vtkMRMLVolumeArchetypeStorageNode.cxx:465) - Loaded volume from file: C:/Users/ramya.c/Desktop/models/1st Jan 2020/v2/3 HEAD SAG 1 1.0 B31s…nrrd. Dimensions: 512x512x427. Number of components: 1. Pixel type: short.
[WARNING][VTK] 02.01.2020 08:00:54 [vtkObserverManager (000001D69270C3D0)] (D:\D\P\Slicer-481\Libs\MRML\Core\vtkObserverManager.cxx:131) - The same object is already observed with the same priority. The observation is kept as is.
[WARNING][VTK] 02.01.2020 08:00:54 [vtkObserverManager (000001D69270CA30)] (D:\D\P\Slicer-481\Libs\MRML\Core\vtkObserverManager.cxx:131) - The same object is already observed with the same priority. The observation is kept as is.
[DEBUG][Qt] 02.01.2020 08:00:55 [] (unknown:0) - “MRML Scene” Reader has successfully read the file “C:/Users/ramya.c/Desktop/models/1st Jan 2020/v2/2019-11-22-Scene.mrml” “[345.79s]”
[DEBUG][Qt] 02.01.2020 08:03:03 [] (unknown:0) - Switch to module: “VolumeRendering”
[WARNING][VTK] 02.01.2020 08:03:04 [vtkObserverManager (000001D69270CA30)] (D:\D\P\Slicer-481\Libs\MRML\Core\vtkObserverManager.cxx:131) - The same object is already observed with the same priority. The observation is kept as is.
[DEBUG][Qt] 02.01.2020 08:03:55 [] (unknown:0) - Switch to module: “SegmentEditor”
[WARNING][Qt] 02.01.2020 08:13:49 [] (unknown:0) - libpng warning: iCCP: known incorrect sRGB profile

Slicer-4.8.1 is more than two years old! We have fixed many issues and implemented huge performance improvements since then, so please do not use this ancient version anymore.

If possible, create a new scene from scratch using latest Slicer Preview release. If you still experience any performance issues then let us know.

Is it possible to use the file created in slicer 4.8.1 in the preview release and do the necessary work from there ?

You may not benefit from all the performance improvements if you load a scene that was created with a very old Slicer version.

The best is if you can re-create the scene from scratch - at least for testing, to see if indeed you get much better performance. Loading data files into the scene (rather than opening an old scene file) may help, too.

Hi Andras,
I am accessing all voxels based on value > 0 and then adding fiducial at that point. Slicer is not responding for longer arrays like I am iterating over 58000. Its haults and i need to shut it down.

How to make this fast and get the results.

i m using 4.11 version of 3d slicer
thank you

Regards,
Saima Safdar

Fiducials points are interactive widgets. You can expect performance issues if want to interact with 58000 of interactive widgets in a view.

If you want to just visualize points then don’t create markups. Instead, you can create a point set and generate a displayable polydata using VTK glyph filter. But of course if you really just want to visualize each voxel of an image then you can do that directly, using volume rendering module.

But there are issues with the approach at other levels, too. You should not iterate through more than a few hundred (or maybe a few thousand) points in Python. If you have a lot of points then you need to use vector operations: keep all coordinates in numpy array and do everything using array operations.

1 Like