View Issue Details

IDProjectCategoryView StatusLast Update
0003904Slicer4Core: GUIpublic2018-03-02 11:06
Reporternicole Assigned Tolassoan  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product VersionSlicer 4.4.0 
Target VersionSlicer 4.5.0-1Fixed in VersionSlicer 4.5.0-1 
Summary0003904: Changing slice controller widget compositing triggers a crash
Description

On the Slicer users mailing list, Michelle Farley reported a crash when using the Add or Subtract compositing modes.

Steps To Reproduce

Load Sample Data set MRHead (reproducible with reporter's .nii files).
Place it in both the foreground and background in the slice views.
Click on the slice compositing icon in the slice controller widget and select Add

Additional Information

Stack trace of the crash:
Program received signal SIGABRT, Aborted.
0x00007fff88d82212 in __pthread_kill ()
(gdb) bt
#0 0x00007fff88d82212 in pthread_kill ()
0000001 0x00007fff8a230b54 in pthread_kill ()
0000002 0x00007fff8a274dce in abort ()
0000003 0x00007fff8a275e2a in
assert_rtn ()
0000004 0x000000011bc097e3 in vtkGarbageCollectorImpl::SubtractReference (this=0x7fff5b024b18, e=0x7fd4416f3540) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/Core/vtkGarbageCollector.cxx:784
0000005 0x000000011bc090eb in vtkGarbageCollectorImpl::SubtractInternalReferences (this=0x7fff5b024b18, c=0x7fd4416f37e0) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/Core/vtkGarbageCollector.cxx:750
0000006 0x000000011bc08ea4 in vtkGarbageCollectorImpl::VisitTarjan (this=0x7fff5b024b18, obj=0x7fd4416ea950) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/Core/vtkGarbageCollector.cxx:583
0000007 0x000000011bc08911 in vtkGarbageCollectorImpl::MaybeVisit (this=0x7fff5b024b18, obj=0x7fd4416ea950) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/Core/vtkGarbageCollector.cxx:522
0000008 0x000000011bc07d63 in vtkGarbageCollectorImpl::FindComponents (this=0x7fff5b024b18, root=0x7fd4416ea950) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/Core/vtkGarbageCollector.cxx:507
0000009 0x000000011bc07b32 in vtkGarbageCollectorImpl::CollectInternal (this=0x7fff5b024b18, root=0x7fd4416ea950) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/Core/vtkGarbageCollector.cxx:459
0000010 0x000000011bc0a3bb in vtkGarbageCollector::Collect (root=0x7fd4416ea950) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/Core/vtkGarbageCollector.cxx:904
0000011 0x000000011bc82427 in vtkObjectBase::UnRegisterInternal (this=0x7fd4416ea950, check=1) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/Core/vtkObjectBase.cxx:240
0000012 0x000000011bc8576b in vtkObject::UnRegisterInternal (this=0x7fd4416ea950, o=0x7fd4416e9b70, check=1) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/Core/vtkObject.cxx:900
0000013 0x000000011b04d474 in vtkExecutive::UnRegister (this=0x7fd4416ea950, o=0x7fd4416e9b70) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/ExecutionModel/vtkExecutive.cxx:163
0000014 0x000000011b02ab26 in vtkAlgorithm::~vtkAlgorithm (this=0x7fd4416e9b70) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/ExecutionModel/vtkAlgorithm.cxx:107
0000015 0x000000011b0621e5 in vtkImageAlgorithm::~vtkImageAlgorithm (this=0x7fd4416e9b70) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/ExecutionModel/vtkImageAlgorithm.cxx:42
0000016 0x000000011b0923fe in vtkThreadedImageAlgorithm::~vtkThreadedImageAlgorithm (this=0x7fd4416e9b70) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/ExecutionModel/vtkThreadedImageAlgorithm.cxx:40
0000017 0x0000000115d82fb5 in vtkImageMathematics::~vtkImageMathematics (this=0x7fd4416e9b70) at vtkImageMathematics.h:186
0000018 0x0000000115d80d05 in vtkImageMathematics::~vtkImageMathematics (this=0x7fd4416e9b70) at vtkImageMathematics.h:186
0000019 0x0000000115d80d28 in vtkImageMathematics::~vtkImageMathematics (this=0x7fd4416e9b70) at vtkImageMathematics.h:186
0000020 0x000000011bc8240c in vtkObjectBase::UnRegisterInternal (this=0x7fd4416e9b70, check=1) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/Core/vtkObjectBase.cxx:232
0000021 0x000000011bc8576b in vtkObject::UnRegisterInternal (this=0x7fd4416e9b70, o=0x0, check=1) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/Core/vtkObject.cxx:900
0000022 0x000000011b02fb14 in vtkAlgorithm::UnRegister (this=0x7fd4416e9b70, o=0x0) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/ExecutionModel/vtkAlgorithm.cxx:951
0000023 0x000000011bc82060 in vtkObjectBase::Delete (this=0x7fd4416e9b70) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/Core/vtkObjectBase.cxx:134
0000024 0x00000001087da574 in vtkNew<vtkImageMathematics>::~vtkNew (this=0x7fff5b025508) at vtkNew.h:79
0000025 0x00000001087d5795 in vtkNew<vtkImageMathematics>::~vtkNew (this=0x7fff5b025508) at vtkNew.h:74
0000026 0x00000001087cf6c1 in vtkMRMLSliceLogic::UpdatePipeline (this=0x7fd43eadc2f0) at /Users/nicole/Slicer4-svn/Slicer/Libs/MRML/Logic/vtkMRMLSliceLogic.cxx:1225
0000027 0x00000001087d035f in vtkMRMLSliceLogic::OnMRMLNodeModified (this=0x7fd43eadc2f0, node=0x7fd440734a40) at /Users/nicole/Slicer4-svn/Slicer/Libs/MRML/Logic/vtkMRMLSliceLogic.cxx:487
0000028 0x00000001087910dd in vtkMRMLAbstractLogic::ProcessMRMLNodesEvents (this=0x7fd43eadc2f0, caller=0x7fd440734a40, event=33) at /Users/nicole/Slicer4-svn/Slicer/Libs/MRML/Logic/vtkMRMLAbstractLogic.cxx:518
0000029 0x0000000108790118 in vtkMRMLAbstractLogic::MRMLNodesCallback (caller=0x7fd440734a40, eid=33, clientData=0x7fd43eadc2f0, callData=0x0) at /Users/nicole/Slicer4-svn/Slicer/Libs/MRML/Logic/vtkMRMLAbstractLogic.cxx:198
0000030 0x000000011bacb644 in vtkCallbackCommand::Execute (this=0x7fd43eadcbf0, caller=0x7fd440734a40, event=33, callData=0x0) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/Core/vtkCallbackCommand.cxx:42
0000031 0x000000010b5824cf in vtkEventBroker::InvokeObservation (this=0x7fd43a847000, observation=0x7fd4407489e0, eid=33, callData=0x0) at /Users/nicole/Slicer4-svn/Slicer/Libs/MRML/Core/vtkEventBroker.cxx:836
0000032 0x000000010b581d3c in vtkEventBroker::ProcessEvent (this=0x7fd43a847000, observation=0x7fd4407489e0, caller=0x7fd440734a40, eid=33, callData=0x0) at /Users/nicole/Slicer4-svn/Slicer/Libs/MRML/Core/vtkEventBroker.cxx:687
0000033 0x000000010b582e2b in vtkEventBroker::Callback (caller=0x7fd440734a40, eid=33, clientData=0x7fd4407489e0, callData=0x0) at /Users/nicole/Slicer4-svn/Slicer/Libs/MRML/Core/vtkEventBroker.cxx:913
0000034 0x000000011bacb644 in vtkCallbackCommand::Execute (this=0x7fd440748ce0, caller=0x7fd440734a40, event=33, callData=0x0) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/Core/vtkCallbackCommand.cxx:42
0000035 0x000000011bc8457c in vtkSubjectHelper::InvokeEvent (this=0x7fd440748660, event=33, callData=0x0, self=0x7fd440734a40) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/Core/vtkObject.cxx:616
0000036 0x000000011bc84b22 in vtkObject::InvokeEvent (this=0x7fd440734a40, event=33, callData=0x0) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/Core/vtkObject.cxx:785
0000037 0x000000011bc84d02 in vtkObject::Modified (this=0x7fd440734a40) at /Users/nicole/Slicer4-svn/Slicer-build-debug/VTKv6/Common/Core/vtkObject.cxx:851
0000038 0x000000010b487194 in vtkMRMLNode::Modified (this=0x7fd440734a40) at vtkMRMLNode.h:364
0000039 0x000000010b7c5955 in vtkMRMLSliceCompositeNode::SetCompositing (this=0x7fd440734a40, _arg=2) at vtkMRMLSliceCompositeNode.h:85
0000040 0x000000010546eff5 in qMRMLSliceControllerWidget::setCompositing (this=0x7fd43ea84510, mode=2) at /Users/nicole/Slicer4-svn/Slicer/Libs/MRML/Widgets/qMRMLSliceControllerWidget.cxx:1950
0000041 0x000000010546f0aa in qMRMLSliceControllerWidget::setCompositingToAdd (this=0x7fd43ea84510) at /Users/nicole/Slicer4-svn/Slicer/Libs/MRML/Widgets/qMRMLSliceControllerWidget.cxx:1970

TagsNo tags attached.

Activities

nicole

nicole

2014-11-26 10:31

administrator   ~0012734

Alex: can you take a look at this and see if it's related to the pipeline changes you made?

lassoan

lassoan

2014-11-26 10:46

developer   ~0012735

Seems to be a double-delete (Delete() called on an object allocated with vtkNew).
See fix here:
https://github.com/Slicer/Slicer/pull/202

lassoan

lassoan

2014-11-26 11:21

developer   ~0012737

Fix committed to SVN revision: 23804

nicole

nicole

2014-11-28 07:14

administrator   ~0012739

Thanks for spotting and making the fix Andras!

Issue History

Date Modified Username Field Change
2014-11-26 09:03 nicole New Issue
2014-11-26 10:31 nicole Status new => assigned
2014-11-26 10:31 nicole Assigned To => alexy
2014-11-26 10:31 nicole Note Added: 0012734
2014-11-26 10:46 lassoan Note Added: 0012735
2014-11-26 11:08 jcfr Target Version => Slicer 4.4.1
2014-11-26 11:21 lassoan Note Added: 0012737
2014-11-26 11:21 lassoan Status assigned => resolved
2014-11-26 11:21 lassoan Resolution open => fixed
2014-11-26 12:27 jcfr Fixed in Version => Slicer 4.4.1
2014-11-28 07:14 nicole Note Added: 0012739
2014-11-28 07:14 nicole Status resolved => closed
2014-11-28 07:14 nicole Status closed => assigned
2014-11-28 07:14 nicole Assigned To alexy => lassoan
2014-12-01 04:36 jcfr Status assigned => resolved
2015-09-09 08:29 jcfr Fixed in Version Slicer 4.4.1 => Slicer 4.5.0-1
2015-09-09 08:29 jcfr Target Version Slicer 4.4.1 => Slicer 4.5.0-1
2018-03-02 11:06 jcfr Status resolved => closed