Skip to content

Slicer crash after automatic segmentation and importing resulting label into segmentation node #318

@che85

Description

@che85

I know where this happens, so I will comment the code out, where the automatic segmentation result is made available for modifications by using the SegmentEditor.

For now if the user wants to 'modify' the automatic segmentation, the user will need to recreate the segmentation by using Quick Mode segmentation

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libMRMLCore.dylib             	0x0000000106537b94 vtkMRMLScene::GetStates() const + 4
1   libqSlicerSegmentationsSubjectHierarchyPlugins.dylib	0x00000001278a135b qSlicerSubjectHierarchySegmentationsPlugin::onSegmentAdded(vtkObject*, void*) + 59
2   libqSlicerSegmentationsSubjectHierarchyPlugins.dylib	0x00000001278af738 qSlicerSubjectHierarchySegmentationsPlugin::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 72
3   QtCore                        	0x000000010426e6ec QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 2348
4   libCTKVisualizationVTKCore.0.1.dylib	0x00000001012fd7a6 ctkVTKConnection::emitExecute(vtkObject*, void*, unsigned long, void*) + 102
5   libCTKVisualizationVTKCore.0.1.dylib	0x00000001012f5906 ctkVTKConnectionPrivate::execute(vtkObject*, unsigned long, void*, void*) + 134
6   libvtkCommon-7.1.1.dylib      	0x000000010f0480f1 vtkCallbackCommand::Execute(vtkObject*, unsigned long, void*) + 33
7   libMRMLCore.dylib             	0x0000000106451636 vtkEventBroker::InvokeObservation(vtkObservation*, unsigned long, void*) + 166
8   libMRMLCore.dylib             	0x000000010645120f vtkEventBroker::ProcessEvent(vtkObservation*, vtkObject*, unsigned long, void*) + 111
9   libvtkCommon-7.1.1.dylib      	0x000000010f0480f1 vtkCallbackCommand::Execute(vtkObject*, unsigned long, void*) + 33
10  libvtkCommon-7.1.1.dylib      	0x000000010f0ec05b vtkSubjectHelper::InvokeEvent(unsigned long, void*, vtkObject*) + 1115
11  libMRMLCLI.dylib              	0x0000000105e4cc76 vtkMRMLNode::InvokePendingModifiedEvent() + 278
12  libvtkSlicerSegmentationsModuleLogic.dylib	0x0000000127a98b9b vtkSlicerSegmentationsModuleLogic::ImportLabelmapToSegmentationNode(vtkMRMLLabelMapVolumeNode*, vtkMRMLSegmentationNode*, std::string) + 2603
13  libvtkSlicerSegmentationsModuleLogicPythonD.dylib	0x000000013ac4bfbf PyvtkSlicerSegmentationsModuleLogic_ImportLabelmapToSegmentationNode_s1(_object*, _object*) + 223
14  libvtkWrappingPython27Core-7.1.1.dylib	0x000000010b6d7afa vtkPythonOverload::CallMethod(PyMethodDef*, _object*, _object*) + 1450
15  libpython2.7.dylib            	0x000000010b7a3bcc PyEval_EvalFrameEx + 11340
16  libpython2.7.dylib            	0x000000010b7a0e14 PyEval_EvalCodeEx + 1764
17  libpython2.7.dylib            	0x000000010b74f379 function_call + 345
18  libpython2.7.dylib            	0x000000010b728501 PyObject_Call + 97
19  libpython2.7.dylib            	0x000000010b733506 instancemethod_call + 182
20  libpython2.7.dylib            	0x000000010b728501 PyObject_Call + 97
21  libpython2.7.dylib            	0x000000010b7a7f6d PyEval_CallObjectWithKeywords + 93
22  libvtkWrappingPython27Core-7.1.1.dylib	0x000000010b6d65e8 vtkPythonCommand::Execute(vtkObject*, unsigned long, void*) + 1128
23  libvtkCommon-7.1.1.dylib      	0x000000010f0ec05b vtkSubjectHelper::InvokeEvent(unsigned long, void*, vtkObject*) + 1115
24  libvtkCommonKitPython27D-7.1.1.dylib	0x000000011f5c6908 PyvtkObject_InvokeEvent_LV(_object*, _object*) + 152
25  libvtkWrappingPython27Core-7.1.1.dylib	0x000000010b6d7afa vtkPythonOverload::CallMethod(PyMethodDef*, _object*, _object*) + 1450
26  libpython2.7.dylib            	0x000000010b7a3bcc PyEval_EvalFrameEx + 11340
27  libpython2.7.dylib            	0x000000010b7a0e14 PyEval_EvalCodeEx + 1764
28  libpython2.7.dylib            	0x000000010b7a8803 fast_function + 291
29  libpython2.7.dylib            	0x000000010b7a52e8 PyEval_EvalFrameEx + 17256
30  libpython2.7.dylib            	0x000000010b7a878f fast_function + 175
31  libpython2.7.dylib            	0x000000010b7a52e8 PyEval_EvalFrameEx + 17256
32  libpython2.7.dylib            	0x000000010b7a0e14 PyEval_EvalCodeEx + 1764
33  libpython2.7.dylib            	0x000000010b74f379 function_call + 345
34  libpython2.7.dylib            	0x000000010b728501 PyObject_Call + 97
35  libpython2.7.dylib            	0x000000010b733506 instancemethod_call + 182
36  libpython2.7.dylib            	0x000000010b728501 PyObject_Call + 97
37  libpython2.7.dylib            	0x000000010b7a7f6d PyEval_CallObjectWithKeywords + 93
38  libvtkWrappingPython27Core-7.1.1.dylib	0x000000010b6d65e8 vtkPythonCommand::Execute(vtkObject*, unsigned long, void*) + 1128
39  libvtkCommon-7.1.1.dylib      	0x000000010f0ec05b vtkSubjectHelper::InvokeEvent(unsigned long, void*, vtkObject*) + 1115
40  libvtkCommonKitPython27D-7.1.1.dylib	0x000000011f5c6908 PyvtkObject_InvokeEvent_LV(_object*, _object*) + 152
41  libvtkWrappingPython27Core-7.1.1.dylib	0x000000010b6d7afa vtkPythonOverload::CallMethod(PyMethodDef*, _object*, _object*) + 1450

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions