Destructor of QmitkAbstractTrackingDeviceWidget tries to destroy invalid member
Open, HighPublic

Description

I encountered this issue when using MITK-MBI *in debug mode*, however, the error appears in MITK code.

An unhandled exception occurs in the first line of the destructor,

QmitkAbstractTrackingDeviceWidget::~QmitkAbstractTrackingDeviceWidget(){

if (m_TestConnectionWorker) delete m_TestConnectionWorker;

when m_TestConnectionWorker should be deleted. The unhandled exception appears if I run a plugin which has a dependency to IGT (e.g. heartmeasurement, the plugin view does not necessarily be opened to produce the bug!). Also, the bug seems to be related to a persistency issue, since it happens only if the AppData-Folder is empty.

Call Stack:

MitkIGTUI.dll!QmitkAbstractTrackingDeviceWidget::~QmitkAbstractTrackingDeviceWidget() Line 37 C++

	MitkIGTUI.dll!QmitkNDIAbstractDeviceWidget::~QmitkNDIAbstractDeviceWidget() Line 40	C++
	MitkIGTUI.dll!QmitkNDIAuroraWidget::~QmitkNDIAuroraWidget() Line 43	C++
	[External Code]	
	MitkIGTUI.dll!mitk::TrackingDeviceWidgetCollection::~TrackingDeviceWidgetCollection() Line 33	C++
	MitkIGTUIConfigurationWidgetRegistry.dll!mitk::IGTUIActivator::~IGTUIActivator() Line 43	C++
	[External Code]	
	MitkIGTUIConfigurationWidgetRegistry.dll!`_us_module_activator_instance_MitkIGTUIConfigurationWidgetRegistry'::`2'::ScopedPointer::~ScopedPointer() Line 70	C++
	[External Code]
engelhsa added a subscriber: engelhsa.

Supplement:

The exception occurs if I try to close the application.

goch triaged this task as High priority.Aug 9 2016, 11:20 AM