Page MenuHomePhabricator

Crash at start if the volume visualisation plugin is on
Closed, ResolvedPublic

Description

The crash is in QmitkTransferFunctionCanvas.cpp:194.
Qt wants to draw the histogram (m_Histogram), but it has not been initialised yet. Although there is a null-check at the beginning of the function, the constructor does not initialises the data member to 0.

Event Timeline

Pull request sent:
https://github.com/MITK/MITK/pull/38

A few other members were not initialised, double members initialised with float literals, etc.

[e531b8]: Merge branch 'bug-16367-CrashAtStartIfTheVolumeVisualisationPluginIsOn

Merged commits:

2013-10-31 18:17:25 Miklos Espak [605e1e]
Data members initialised in QmitkTransferFunctionCanvas constructor