Page MenuHomePhabricator

Application crashes on executing image filter (LaPlace, 2nd derivative)
Closed, ResolvedPublic

Description

The MITK application crashes on executing the LaPlacian image filter (plugin "basic image processing") on the Pic3D.nrrd file.

Error message: unhandled exception, access violation reading location ...

Occured in MITK debug mode, windows x64, visual studio 2008

Event Timeline

Changed Target Milestone to upcoming release and priority/severity

Basic image processing is not part of the of the release installer. So is this bug relevant for this release anyway?

There are more urgent bug to fix I think like b rendering or measurement bugs. However a crash shouldn't happen so this bug should be fixed asap.

The cause of the crash is the dead-lock in ImageAccessorBase. The type of the input image in the BasicImageProcessingView was changed to the floating type by calling a ( nested ) CastToItk. This leads directly to a lock.

Solution:

  • use explicitely a itk::ImageCastFilter< InputType, FloatType > for all filters that require a floating point pixel type ( Laplace, Sobel )

New remote branch pushed: bug-13705-Crash-on-image-filtering

[c3b7b2]: Merge branch 'bug-13705-Crash-on-image-filtering'

Merged commits:

2012-12-05 14:02:27 Jan Hering [adc29f]
Removing a dead-lock in BasicImgProc

  • nested usage of Cast-Macros leads to a dead-lock. Replaced calls by
  • regular CastImageFilter< oldType, newType > executed before the
  • Laplace and Sobel filters