Page MenuHomePhabricator

Measurement bundle crashes while drawing figures
Closed, ResolvedPublic

Description

Steps to reproduce:

  1. Load 3D-Image
  2. Select Measurement Tool
  3. Select image for the Measurement Tool
  4. Draw figure into the image

Event Timeline

The crash is reproducible for this configuration:

  1. Load an image
  2. Activate the measurement bundle with this image
  3. Generate a new planar figure
  4. Close the measurement bundle
  5. Remove the planar figure from the data storage
  6. re-open the measurement bundle and draw new planar figure

-> Crashes

The crash occurs in mitkVtkLayerController::UpdateLayers():l.309 and is caused by a corrrupted vtkRenderer.

[8169be]: Merge branch 'bug-11162-MeasurementBundleCrash'

Merged commits:

2012-03-07 19:10:07 Sven Mersmann [a240fe]
The CornerAnnotation is not cleaned and therefore the m_MeasurementInfoRenderer remains in an invalid state. The text gets removed now and the renderer is cleaned correctly.

[cd3a93]: Merge branch 'bug-11162-MeasurementBundleCrash'

Merged commits:

2012-03-07 19:22:13 Sven Mersmann [7a0d01]
COMP: corrected misspelling!

After fixing the bug, another bug occurs during closing the Measurementtool-tab.

[6d4b8f]: Merge branch 'bug-11162-MeasurementBundleCrash'

Merged commits:

2012-03-08 16:56:43 Sven Mersmann [5fba3f]
added NULL pointer query