Page MenuHomePhabricator

MITK crash when click outside 3D image, when 4D image is also loaded.
Closed, ResolvedPublic

Description

Load 3D image (e.g. Pic3D)
Load 4D image (e.g. DataSet_Lung4D)

Zoom out a little in a renderwindow view.
Click somewhere in the renderwindow , a little outside the images.

Crash.

Problem is apparently caused by
QmitkStdMultiWidget::HandleCrosshairPositionEventDelayed() Line 1651

The function
itk::Image::GetPixelValueByIndex(const itk::Index<3> & position={...}, unsigned int timestep)

is called with a timestep != 0 for a 3D image, which crashes.

Here should be check if the image contains data for this timestep, and if not, a message like "No Pixel information available" should be displayed in the status bar.

Event Timeline

graser added a subscriber: graser.

Forgot something:

to reproduce the crash please use the image navigator to select a timestep != 0

[ea74ca]: Merge branch 'bug-13150-crash-when-click-outside-image-releasefix'

Merged commits:

2012-09-19 16:11:05 Tobias Schroeder [05e70c]
fix access of invalid timestep


2012-09-18 23:21:17 Sascha Zelzer [e41434]
Use CTK with updated CLI support and fixed ctkPathLineEdit size hint.