Page MenuHomePhabricator

ExtApp crashes if odf visualization is activated in release mode
Closed, ResolvedPublic

Description

Steps to reproduce:

  • Build MITK in release mode
  • Load tensor/qball image
  • Activate odf/tensor visualisation

-> Crash

This crash does not occur in the debug build.

Event Timeline

It seems to occur only on the Ubuntu 11.04 platform. Thomas wasn't able to reproduce the bug on Ubuntu 10.10.

The cause of the bug is in

Modules/DiffusionImaging/Rendering/mitkOdfVtkMapper2D.txx,
in ::MeasureDisplayedGeometry method, lines 470 - 550

simply returning the retval = new OdfDisplayGeometry() after having enhanced the constructor of OdfDisplayGeometry does not lead to the crash [ all member are initialized to 0.0 ]

[422a89]: Merge branch 'bug-8351-QBall-Visualisation-Crash'

Merged commits:

2011-08-10 15:05:23 Jan Hering [c9213b]
Fixing runtime 'stack smash' error

  • removed illegal access on the third component of Point2D in ::MeasureDisplayGeometry()