You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Possible solution: It seems that the tracker connection is not closed before closing invesalius, which may cause the ReceiveCoordinates to expect coordinates. Fixing the closing of tracker might fix the problem.
The following error message appears:
Successfully deleted state file.
Exception in thread ReceiveCoordinates:
Traceback (most recent call last):
File "/Users/***/anaconda3/envs/invesalius/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
File "/Users/***/repository/invesalius3/invesalius/data/coordinates.py", line 628, in run
success = self.TrackerCoordinates.SetCoordinates(coord_raw, marker_visibilities)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/***/repository/invesalius3/invesalius/data/coordinates.py", line 72, in SetCoordinates
wx.CallAfter(Publisher.sendMessage, 'From Neuronavigation: Update tracker poses',
File "/Users/***/anaconda3/envs/invesalius/lib/python3.11/site-packages/wx/core.py", line 3422, in CallAfter
assert app is not None, 'No wx.App created yet'
^^^^^^^^^^^^^^^
AssertionError: No wx.App created yet
The text was updated successfully, but these errors were encountered:
Error is caused by attempting to call wx.CallAfter during the exiting process after the GUI has been destroyed.
Error appears whether one saves the state or not.
Error appeared recently, since previously invesalius crashed on exit due to memory leakage during GUI destruction, but this error could have been introduced to the codebase a while ago.
Here's the result of git bisect, showing the offending commit:
db8b255ccd0b8981b9400ea5269b9cfa4e73321f is the first bad commit
commit db8b255ccd0b8981b9400ea5269b9cfa4e73321f
Author: Rakhesis <[email protected]>
Date: Mon May 6 20:31:28 2024 +0300
FIX: Crash on turning off navigation mode
Same wx.ToolTip object was connected to multiple wx.TextCtrl objects in two places. This seems to cause a double free memory leak, as the program tries to free the wx.ToolTip alongside both of the wx.TextCtrl objects.
invesalius/gui/task_efield.py | 12 ++++++------
invesalius/gui/task_navigator.py | 6 +++---
2 files changed, 9 insertions(+), 9 deletions(-)
Never mind about my previous comment; it turns out that that change uncovered some previously existing problems, so that commit is not the original source of the issue - it might indeed be one of my previous commits. We decided that @Rakhesis will look into it with some priority. Thanks, @Rakhesis!
The following error is raised when closing invesalius after Debug tracker approach is selected. To reproduce, follow the steps:
Possible solution: It seems that the tracker connection is not closed before closing invesalius, which may cause the ReceiveCoordinates to expect coordinates. Fixing the closing of tracker might fix the problem.
The following error message appears:
The text was updated successfully, but these errors were encountered: