View Issue Details

IDProjectCategoryView StatusLast Update
0001573Slicer4Core: GUIpublic2012-08-21 11:30
Reporterkikinis Assigned Toalexy  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
PlatformMACOSOS XOS Version10.7.2
Product VersionSlicer 4.0.0 
Target VersionSlicer 4.0.1Fixed in VersionSlicer 4.0.1 
Summary0001573: closing a scene crashes slicer
Description

start slicer, load data, file/close scene, enjoy crash

Additional Information

Fixed the crash caused by erasing elements of vector while looping through
At revision: 18732

TagsNo tags attached.

Activities

finetjul

finetjul

2011-11-22 12:48

administrator   ~0003353

Crash happens in the for loop:

vtkMRMLModelSliceDisplayableManager::vtkInternal
::~vtkInternal()
{
PipelinesCacheType::iterator pipelinesIt;
for (pipelinesIt = this->DisplayPipelines.begin(); pipelinesIt != this->DisplayPipelines.end(); ++pipelinesIt)
{
pipelinesIt->first->RemoveObserver(this->External->GetMRMLNodesCallbackCommand());
this->RemoveDisplayNodePipeline(pipelinesIt->first);
}
}

finetjul

finetjul

2011-11-22 13:05

administrator   ~0003354

the following should happen instead
for (it = begin; it != end; it = begin)
{
remove(it);
}

instead of
for (it = begin; it != end; ++it)
{
remove(it);
}

Issue History

Date Modified Username Field Change
2011-11-22 11:38 kikinis New Issue
2011-11-22 11:38 kikinis Status new => assigned
2011-11-22 11:38 kikinis Assigned To => finetjul
2011-11-22 12:13 inorton Assigned To finetjul => inorton
2011-11-22 12:48 finetjul Note Added: 0003353
2011-11-22 13:01 alexy Assigned To inorton => alexy
2011-11-22 13:05 alexy Status assigned => resolved
2011-11-22 13:05 alexy Resolution open => fixed
2011-11-22 13:05 alexy Additional Information Updated
2011-11-22 13:05 finetjul Note Added: 0003354
2012-02-22 05:25 kikinis Status resolved => closed
2012-08-21 11:30 jcfr Fixed in Version => Slicer 4.0.1
2012-08-21 11:30 jcfr Target Version => Slicer 4.0.1