Page MenuHomePhabricator

VirtualTrackingDevice crashes when it is destroyed before the tracking thread is initialized
Closed, ResolvedPublic

Description

if you call StartTracking() and then immediately destroy the object, a crash happens when the destructor tries to terminate the tracking thread before it is started.

Event Timeline

neuhaus added a subscriber: neuhaus.

[SVN revision 22361]
FIX (#3726): prevent terminating the tracking thread before it has started.

Sone Linux dart clients failed to pass mitkTrackingDeviceSourceTest, Error is a segmentation fault.

On Windows some dart clients also failed the test, here all single tests seem to pass but at the end an "*** Exception executing: Access violation" is thrown.

Could this be related to your commit from yesterday?

Could be, but it is strange, that the test is succeeding on most other windows and linux dartclients. See http://mbits/cdash/testSummary.php?project=3&name=mitkTrackingDeviceSourceTest&date=2010-04-22
and http://cdash.mitk.org/testSummary.php?project=1&name=mitkTrackingDeviceSourceTest&date=2010-04-22

If you want to, you or I can revert my commit from yesterday and see what happens tonight...

[SVN revision 22427]
FIX (#3726): revert changes from commit 22361, to check if mitkTrackingDeviceSourceTest passes again

With reverted changes all dart clients passed the mitkTrackingDeviceSourceTest again.

It seems as if the test failure actually is related to commit from revision 22361...

Adding party flag for next Wednesday.

Ingmar, I won't have time for this. Do you want to look into it? (Otherwise, reassign or just close the bug)

As far as I can see, this bug can be closed.
The mitkTrackingDeviceSourceTest passed on all dart clients (for a long time now...)