Page MenuHomePhabricator

ExtApp crashes at the end when ImageCropper has been used
Closed, ResolvedPublic

Description

The ExtApp crashes at the end when the ImageCropper module has been used, i.e., actually cropped something. The crash is in the destructor of an OperationEvent.

Event Timeline

Sorry for the late reaction. Thiago, Ingmar, you have been working on ImageCropper. Could you please look into this?

The ImageCropper registers itself as actor with its mitkOperationEvent. The latter listens for an itkDeleteEvent to determine whether its actor pointer is invalid.

As the ImageCropper is no itkObject but a QObject said event is never thrown an the undoController tries to delete the Event in the assumption, that the actor still exists. This can, but needs not be the case due to synchronity issues.

A possible solution is to change the image cropper by introducing a ITKObject, which is QT independet and provides the cropping functionality and can be called by the QT dependent part.

[SVN revision 28988]
FIX (#4752): introduced itk Interface for compatibility with Undo Controller.

[SVN revision 29001]
COMP (#4752): changed include order