Page MenuHomePhabricator

Crash when Start Tracking with different Device after former tracking
Closed, ResolvedPublic

Description

e.g. if you track using an aurora, stop tracking, disconnect, then switch to polaris, connect, start tracking -> crash:

core.io.loggingadapter ERROR: ERROR: In D:\2\bin\MITK-superbuild\MITK-build\VTK-src\Rendering\OpenGL\vtkWin32OpenGLRenderWindow.cxx, line 275
vtkWin32OpenGLRenderWindow (0000000004F68C10): wglMakeCurrent failed in MakeCurrent(), error: Die angeforderte Ressource wird bereits verwendet.

Event Timeline

Same error message, when trying to track with da Vinci.

Errors are still there, also with other tracking devices.
However, the application does not crash any more, and a (manual) global reinit resets the view to normal behaviour.

Error also happens with Polhemus, when tracking->disconnect->AutoDetection of tools ->Tracking.

Maybe it's caused by the ToolVisualization filters? Maybe they are not properly resetted when tools are changing? Just a guess...

seitela moved this task from Wishlist to In Progress on the IGT board.