PerkLab / SlicerSandbox

Collection of utilities that are not polished implementations but can be useful to users
BSD 2-Clause "Simplified" License
70 stars 24 forks source link

The **CombineModels** only works the first time it is run, why? #10

Open jumbojing opened 3 years ago

jumbojing commented 3 years ago

The CombineModels only works the first time it is run, why?

In 3dSlicer(4.11.20210226 r29738 / 7a593c8), when I run this module, I can see the results only when I run it for the first time, but I can't see anything when I run it again. Why?

lassoan commented 3 years ago

Please provide your input data sets (upload somewhere and post the link here) and any error or warning messages that you see in the application log (menu: Help / Report a bug).

jumbojing commented 3 years ago

https://drive.google.com/file/d/10VYPypmvmXU9uTt1dINNIDLDESeG3jdH/view?usp=sharing I want to intersection the boneTempt and sec0, and get model 29...

jumbojing commented 3 years ago

[DEBUG][Python] 29.06.2021 00:34:12 [Python] (/Applications/Slicer.app/Contents/lib/Python/lib/python3.6/site-packages/pydicom/datadict.py:432) - Reversing DICOM dictionary so can look up tag from a keyword... [DEBUG][Python] 29.06.2021 00:34:14 [Python] (/Applications/Slicer.app/Contents/lib/Slicer-4.11/qt-scripted-modules/SubjectHierarchyPlugins/AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: Annotations [DEBUG][Python] 29.06.2021 00:34:16 [Python] (/Applications/Slicer.app/Contents/lib/Slicer-4.11/qt-scripted-modules/SubjectHierarchyPlugins/AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: SegmentEditor [DEBUG][Python] 29.06.2021 00:34:16 [Python] (/Applications/Slicer.app/Contents/lib/Slicer-4.11/qt-scripted-modules/SubjectHierarchyPlugins/AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: SegmentStatistics [DEBUG][Qt] 29.06.2021 00:34:09 [] (unknown:0) - Session start time .......: 2021-06-29 00:34:09 [DEBUG][Qt] 29.06.2021 00:34:09 [] (unknown:0) - Slicer version ...........: 4.11.20210226 (revision 29738 / 7a593c8) macosx-amd64 - installed release [DEBUG][Qt] 29.06.2021 00:34:09 [] (unknown:0) - Operating system .........: Mac OS X / 10.15.7 / 19H2 / UTF-8 - 64-bit [DEBUG][Qt] 29.06.2021 00:34:09 [] (unknown:0) - Memory ...................: 8192 MB physical, 3072 MB virtual [DEBUG][Qt] 29.06.2021 00:34:09 [] (unknown:0) - CPU ......................: GenuineIntel Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz, 4 cores, 8 logical processors [DEBUG][Qt] 29.06.2021 00:34:09 [] (unknown:0) - VTK configuration ........: OpenGL2 rendering, Sequential threading [DEBUG][Qt] 29.06.2021 00:34:09 [] (unknown:0) - Qt configuration .........: version 5.15.1, with SSL, requested OpenGL 3.2 (core profile) [DEBUG][Qt] 29.06.2021 00:34:09 [] (unknown:0) - Developer mode enabled ...: yes [DEBUG][Qt] 29.06.2021 00:34:09 [] (unknown:0) - Prefer executable CLI ....: yes [DEBUG][Qt] 29.06.2021 00:34:09 [] (unknown:0) - Application path .........: /Applications/Slicer.app/Contents/MacOS [DEBUG][Qt] 29.06.2021 00:34:09 [] (unknown:0) - Additional module paths ..: Extensions-29738/ResectionPlanner/lib/Slicer-4.11/qt-scripted-modules, Extensions-29738/SlicerRT/lib/Slicer-4.11/cli-modules, Extensions-29738/SlicerRT/lib/Slicer-4.11/qt-loadable-modules, Extensions-29738/SlicerRT/lib/Slicer-4.11/qt-scripted-modules, Extensions-29738/ModelClip/lib/Slicer-4.11/qt-loadable-modules, Extensions-29738/SlicerJupyter/lib/Slicer-4.11/qt-loadable-modules, Extensions-29738/SlicerJupyter/lib/Slicer-4.11/qt-scripted-modules, Extensions-29738/SegmentEditorExtraEffects/lib/Slicer-4.11/qt-scripted-modules, Extensions-29738/MarkupsToModel/lib/Slicer-4.11/qt-loadable-modules, Extensions-29738/SurfaceWrapSolidify/lib/Slicer-4.11/qt-scripted-modules, Extensions-29738/DebuggingTools/lib/Slicer-4.11/qt-scripted-modules, Extensions-29738/LesionSimulator/lib/Slicer-4.11/cli-modules, Extensions-29738/LesionSimulator/lib/Slicer-4.11/qt-scripted-modules, Extensions-29738/SlicerIGT/lib/Slicer-4.11/qt-loadable-modules, Extensions-29738/SlicerIGT/lib/Slicer-4.11/qt-scripted-modules, Extensions-29738/PathReconstruction/lib/Slicer-4.11/qt-loadable-modules, Extensions-29738/PathReconstruction/lib/Slicer-4.11/qt-scripted-modules, Extensions-29738/Sandbox/lib/Slicer-4.11/qt-loadable-modules, Extensions-29738/Sandbox/lib/Slicer-4.11/qt-scripted-modules, Extensions-29738/BoneTextureExtension/lib/Slicer-4.11/cli-modules, Extensions-29738/BoneTextureExtension/lib/Slicer-4.11/qt-scripted-modules, /Users/liguimei/Documents/GitHub/PedicleScrewSimulator-1, Extensions-29738/AnglePlanesExtension/lib/Slicer-4.11/qt-scripted-modules [DEBUG][Qt] 29.06.2021 00:34:16 [] (unknown:0) - Switch to module: "Welcome" [INFO][Stream] 29.06.2021 00:34:26 [] (unknown:0) - Loading Slicer RC file [/Users/liguimei/.slicerrc.py] [INFO][Stream] 29.06.2021 00:34:26 [] (unknown:0) - Jupyter connection file: [/Users/liguimei/Library/Jupyter/runtime/kernel-d2749c15-07df-46a7-84ed-af1858a3c880.json] [CRITICAL][Stream] 29.06.2021 00:34:26 [] (unknown:0) - Traceback (most recent call last): [CRITICAL][Stream] 29.06.2021 00:34:26 [] (unknown:0) - File "", line 1, in [CRITICAL][Stream] 29.06.2021 00:34:26 [] (unknown:0) - RuntimeError: std::exception: Address already in use [CRITICAL][FD] 29.06.2021 00:34:49 [] (unknown:0) - 2021-06-29 00:34:49.946 Slicer[24858:1714596] Path given to -[NSWorkspace iconForFile:] is not a full path. [CRITICAL][FD] 29.06.2021 00:34:49 [] (unknown:0) - 2021-06-29 00:34:49.955 Slicer[24858:1714596] Path given to -[NSWorkspace iconForFile:] is not a full path. [CRITICAL][FD] 29.06.2021 00:34:49 [] (unknown:0) - 2021-06-29 00:34:49.957 Slicer[24858:1714596] Path given to -[NSWorkspace iconForFile:] is not a full path. [CRITICAL][FD] 29.06.2021 00:34:49 [] (unknown:0) - 2021-06-29 00:34:49.962 Slicer[24858:1714596] Path given to -[NSWorkspace iconForFile:] is not a full path. [CRITICAL][FD] 29.06.2021 00:34:49 [] (unknown:0) - 2021-06-29 00:34:49.964 Slicer[24858:1714596] Path given to -[NSWorkspace iconForFile:] is not a full path. [CRITICAL][FD] 29.06.2021 00:34:49 [] (unknown:0) - 2021-06-29 00:34:49.966 Slicer[24858:1714596] Path given to -[NSWorkspace iconForFile:] is not a full path. [CRITICAL][FD] 29.06.2021 00:34:49 [] (unknown:0) - 2021-06-29 00:34:49.980 Slicer[24858:1714596] Path given to -[NSWorkspace iconForFile:] is not a full path. [CRITICAL][FD] 29.06.2021 00:34:52 [] (unknown:0) - 2021-06-29 00:34:52.519 Slicer[24858:1714596] Path given to -[NSWorkspace iconForFile:] is not a full path. [INFO][VTK] 29.06.2021 00:34:55 [vtkMRMLVolumeArchetypeStorageNode (0x7feeeb0400a0)] (/Volumes/D/S/S-1/Libs/MRML/Core/vtkMRMLVolumeArchetypeStorageNode.cxx:509) - Loaded volume from file: /var/folders/9b/mhf79phj3ss95qk4p1_vw6gh0000gn/T/Slicer-liguimei/RemoteIO/__BundleLoadTemp-2021-06-29_003453_497/2021-06-28/Data/Lumbar103.nrrd. Dimensions: 464x352x229. Number of components: 1. Pixel type: short. [ERROR][VTK] 29.06.2021 00:34:55 [vtkMRMLMarkupsFiducialNode (0x7feee9ae57e0)] (/Volumes/D/S/S-1/Libs/MRML/Core/vtkMRMLStorableNode.cxx:324) - UpdateScene: error getting 0th storage node, id = vtkMRMLMarkupsJsonStorageNode1 [ERROR][VTK] 29.06.2021 00:34:55 [vtkMRMLMarkupsFiducialNode (0x7feee9acaf80)] (/Volumes/D/S/S-1/Libs/MRML/Core/vtkMRMLStorableNode.cxx:324) - UpdateScene: error getting 0th storage node, id = vtkMRMLMarkupsJsonStorageNode2 [ERROR][VTK] 29.06.2021 00:34:55 [vtkMRMLMarkupsFiducialNode (0x7feee9ad1ec0)] (/Volumes/D/S/S-1/Libs/MRML/Core/vtkMRMLStorableNode.cxx:324) - UpdateScene: error getting 0th storage node, id = vtkMRMLMarkupsJsonStorageNode3 [ERROR][VTK] 29.06.2021 00:34:55 [vtkMRMLMarkupsFiducialNode (0x7feee9ae1260)] (/Volumes/D/S/S-1/Libs/MRML/Core/vtkMRMLStorableNode.cxx:324) - UpdateScene: error getting 0th storage node, id = vtkMRMLMarkupsJsonStorageNode4 [ERROR][VTK] 29.06.2021 00:34:55 [vtkMRMLMarkupsFiducialNode (0x7feee9af4900)] (/Volumes/D/S/S-1/Libs/MRML/Core/vtkMRMLStorableNode.cxx:324) - UpdateScene: error getting 0th storage node, id = vtkMRMLMarkupsJsonStorageNode5 [ERROR][VTK] 29.06.2021 00:34:55 [vtkMRMLMarkupsFiducialNode (0x7feee9af92f0)] (/Volumes/D/S/S-1/Libs/MRML/Core/vtkMRMLStorableNode.cxx:324) - UpdateScene: error getting 0th storage node, id = vtkMRMLMarkupsJsonStorageNode6 [ERROR][VTK] 29.06.2021 00:34:55 [vtkMRMLMarkupsFiducialNode (0x7feeeb05d3c0)] (/Volumes/D/S/S-1/Libs/MRML/Core/vtkMRMLStorableNode.cxx:324) - UpdateScene: error getting 0th storage node, id = vtkMRMLMarkupsJsonStorageNode7 [ERROR][VTK] 29.06.2021 00:34:55 [vtkMRMLMarkupsFiducialNode (0x7feeeb017540)] (/Volumes/D/S/S-1/Libs/MRML/Core/vtkMRMLStorableNode.cxx:324) - UpdateScene: error getting 0th storage node, id = vtkMRMLMarkupsJsonStorageNode8 [ERROR][VTK] 29.06.2021 00:34:55 [vtkMRMLMarkupsFiducialNode (0x7feeeb0381e0)] (/Volumes/D/S/S-1/Libs/MRML/Core/vtkMRMLStorableNode.cxx:324) - UpdateScene: error getting 0th storage node, id = vtkMRMLMarkupsJsonStorageNode9 [DEBUG][Qt] 29.06.2021 00:34:55 [] (unknown:0) - "MRB Slicer Data Bundle" Reader has successfully read the file "/Users/liguimei/Google Drive/我的云端硬盘/2021-06-28.mrb" "[1.91s]" [DEBUG][Qt] 29.06.2021 00:35:13 [] (unknown:0) - Switch to module: "CombineModels" [INFO][Python] 29.06.2021 00:35:25 [Python] (/Applications/Slicer.app/Contents/Extensions-29738/Sandbox/lib/Slicer-4.11/qt-scripted-modules/CombineModels.py:304) - Processing started [INFO][Python] 29.06.2021 00:35:32 [Python] (/Applications/Slicer.app/Contents/Extensions-29738/Sandbox/lib/Slicer-4.11/qt-scripted-modules/CombineModels.py:352) - Processing completed in 7.35 seconds [INFO][Stream] 29.06.2021 00:35:25 [] (unknown:0) - Processing started [ERROR][VTK] 29.06.2021 00:35:32 [vtkPolyDataBooleanFilter (0x7feee7846cc0)] (/Volumes/D/S/S-1-E-b/Sandbox/CombineModels/Logic/vtkPolyDataBooleanFilter.cxx:216) - Contact ends suddenly at point 0. [INFO][Stream] 29.06.2021 00:35:32 [] (unknown:0) - Processing completed in 7.35 seconds [DEBUG][Qt] 29.06.2021 00:36:09 [] (unknown:0) - Switch to module: "Data" [DEBUG][Qt] 29.06.2021 00:37:09 [] (unknown:0) - Switch to module: "CombineModels" [INFO][Python] 29.06.2021 00:37:24 [Python] (/Applications/Slicer.app/Contents/Extensions-29738/Sandbox/lib/Slicer-4.11/qt-scripted-modules/CombineModels.py:304) - Processing started [INFO][Python] 29.06.2021 00:37:31 [Python] (/Applications/Slicer.app/Contents/Extensions-29738/Sandbox/lib/Slicer-4.11/qt-scripted-modules/CombineModels.py:352) - Processing completed in 7.27 seconds [INFO][Stream] 29.06.2021 00:37:24 [] (unknown:0) - Processing started [ERROR][VTK] 29.06.2021 00:37:31 [vtkPolyDataBooleanFilter (0x7feeeaed2f30)] (/Volumes/D/S/S-1-E-b/Sandbox/CombineModels/Logic/vtkPolyDataBooleanFilter.cxx:216) - Contact ends suddenly at point 0. [INFO][Stream] 29.06.2021 00:37:31 [] (unknown:0) - Processing completed in 7.27 seconds [INFO][Python] 29.06.2021 00:38:02 [Python] (/Applications/Slicer.app/Contents/Extensions-29738/Sandbox/lib/Slicer-4.11/qt-scripted-modules/CombineModels.py:304) - Processing started [INFO][Python] 29.06.2021 00:38:10 [Python] (/Applications/Slicer.app/Contents/Extensions-29738/Sandbox/lib/Slicer-4.11/qt-scripted-modules/CombineModels.py:352) - Processing completed in 7.73 seconds [INFO][Stream] 29.06.2021 00:38:02 [] (unknown:0) - Processing started [ERROR][VTK] 29.06.2021 00:38:10 [vtkPolyDataBooleanFilter (0x7feec750af30)] (/Volumes/D/S/S-1-E-b/Sandbox/CombineModels/Logic/vtkPolyDataBooleanFilter.cxx:216) - Contact ends suddenly at point 0. [INFO][Stream] 29.06.2021 00:38:10 [] (unknown:0) - Processing completed in 7.73 seconds [INFO][Python] 29.06.2021 00:38:10 [Python] (/Applications/Slicer.app/Contents/Extensions-29738/Sandbox/lib/Slicer-4.11/qt-scripted-modules/CombineModels.py:304) - Processing started [INFO][Python] 29.06.2021 00:38:17 [Python] (/Applications/Slicer.app/Contents/Extensions-29738/Sandbox/lib/Slicer-4.11/qt-scripted-modules/CombineModels.py:352) - Processing completed in 7.24 seconds [INFO][Stream] 29.06.2021 00:38:10 [] (unknown:0) - Processing started [ERROR][VTK] 29.06.2021 00:38:17 [vtkPolyDataBooleanFilter (0x7feeeb0628e0)] (/Volumes/D/S/S-1-E-b/Sandbox/CombineModels/Logic/vtkPolyDataBooleanFilter.cxx:216) - Contact ends suddenly at point 0. [INFO][Stream] 29.06.2021 00:38:17 [] (unknown:0) - Processing completed in 7.24 seconds [DEBUG][Qt] 29.06.2021 00:38:35 [] (unknown:0) - Switch to module: "Data"

lassoan commented 3 years ago

Contact ends suddenly at point 0

This means that one of the inputs had non-manifold edges. How did you create the input meshes?