View Issue Details

IDProjectCategoryView StatusLast Update
0003413Slicer4Core: MRMLpublic2014-03-06 10:16
Reporterpinter Assigned Toalexy  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product VersionSlicer 4.3.0 
Target VersionSlicer 4.4.0Fixed in VersionSlicer 4.3.1 
Summary0003413: Saving a scene results in a crash if a node reference is added but its role is not
Description

If a reference is added to a node like this, then Slicer crashes when saving the scene:
node->AddNodeReferenceID("custom", referencedNode->GetID());

If it is added like this, then there is no crash:
node->AddNodeReferenceRole("custom", "customRef");
node->AddNodeReferenceID("custom", referencedNode->GetID());

Instead of crashing, Slicer should gracefully recover while logging an error.

TagsNo tags attached.

Relationships

related to 0003416 closedalexy Custom reference roles cannot be loaded with a scene 

Activities

pinter

pinter

2013-09-23 05:49

developer   ~0010045

The crash occurs in vtkMRMLNode::WriteXML (line 458) where GetMRMLAttributeNameFromReferenceRole is called in the NodeReferences for loop.

alexy

alexy

2013-09-27 10:43

developer   ~0010100

Fixed crash on writing a custom node reference.
At revision: 22524

Issue History

Date Modified Username Field Change
2013-09-23 05:39 pinter New Issue
2013-09-23 05:39 pinter Status new => assigned
2013-09-23 05:39 pinter Assigned To => alexy
2013-09-23 05:49 pinter Note Added: 0010045
2013-09-24 11:40 jcfr Target Version => Slicer 4.3.2
2013-09-24 12:30 pinter Relationship added related to 0003416
2013-09-27 10:43 alexy Note Added: 0010100
2013-09-27 10:43 alexy Status assigned => resolved
2013-09-27 10:43 alexy Resolution open => fixed
2013-09-27 11:39 pinter Status resolved => closed
2014-03-06 05:58 jcfr Fixed in Version => Slicer 4.3.1
2014-03-06 10:16 nicole Target Version Slicer 4.3.2 => Slicer 4.4.0