Page MenuHomePhabricator

ExtApp crash by undoing a segmentation if the segmentation image was deleted previously
Closed, ResolvedPublic

Description

If you try to undo a segmentation and delete/removed the datanode previously the app crashes. I found the line where it crashes - line 485 in ExtractSliceFilter

const BoundingBox *boundingBox = boundingGeometry->GetBoundingBox();

the boundingGeometry is stored within the undo-operation and was cloned. The pointer is not null, but it crashes for some strange reason.

Event Timeline

Is related to T12337. See comment Alexander Seitel 2012-08-08 16:53:56 CEST

Changing severity since a crash is always critical

The issue is related to the clone method of mitk::PlaneGeometry. The referenceGeometry is not cloned, the Pointer is just set to the Geometry of 'other'.
Thus to secure the that the reference geometry will not be deleted, a SmartPointer was added. Note that this is just a quick fix and needs to be changed after T13392 will be fixed.

[20f6d6]: Merge branch 'bug-12338-crash-after-undo-segmentation'

Merged commits:

2012-10-10 17:27:31 Tobias Schroeder [8274c9]
commented changed lines


2012-10-10 15:51:15 Tobias Schroeder [0c716f]
added a guard pointer to secure object

Crash was fixed. The problem described in previous
comment is still there. See T13392.