Page MenuHomePhabricator

MITK crashes when saving and opening a project with a measurement
Closed, ResolvedPublic

Description

To reproduce load Pic3D, do a measurement, "safe project", "close project" and load it again => crash. Could be reproduced under Mac and Linux.

Event Timeline

Bug is introduced with 2013.09 Release.

Here a new event has been introduced:

m_DataStorage->ChangedNodeEvent.AddListener(
is replaced by:
m_DataStorage->InteractorChangedNodeEvent.AddListener(

Intention was to reduce the number of calls that come from modifying DataNodes.

Occurs directly after Measurement Plugin sets the Interactor to the loaded DataNode-

New remote branch pushed: bug-16417-FixCrashInDispatcher

In mitk::BindDispactherInteractor InteractorChangedNodeEvent replaced
NodeChangedEvent in the function RegisterDataStorageEvents , in order to avoid unnecassary messaging, but UnRegisterDataStorageEvents still removed the old ListenerType -> crash!

Fix: Remove the correct ListenerType.

[2d410b]: Merge branch 'bug-16417-FixCrashInDispatcher'

Merged commits:

2013-11-27 13:26:54 Christian Weber [b4c24e]
Wrong Listener was removed, which led to crash.
Now InteractorChangedNodeEvent is removed.

Updated Measurement checklist, to be more precise about testing, closing and re-opening measurement project.