MSS icon indicating copy to clipboard operation
MSS copied to clipboard

handle closed views properly

Open ReimarBauer opened this issue 3 months ago • 2 comments

Crash prevention when views have been closed

  File "/Users/reimarbauer/PycharmProjects/2025/annapurna-gupta/MSS/mslib/msui/msui_mainwindow.py", line 640, in update_view_list_on_change
    valid_views = [(text, window) for text, window in self.viewListModel.views if window.isVisible()]
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/reimarbauer/PycharmProjects/2025/annapurna-gupta/MSS/mslib/msui/msui_mainwindow.py", line 640, in <listcomp>
    valid_views = [(text, window) for text, window in self.viewListModel.views if window.isVisible()]
                                                                                  ^^^^^^^^^^^^^^^^^^
RuntimeError: wrapped C/C++ object of type MSUITopViewWindow has been deleted

ReimarBauer avatar Oct 02 '25 08:10 ReimarBauer

@ReimarBauer How can i reproduce it?

annapurna-gupta avatar Oct 22 '25 14:10 annapurna-gupta

@annapurna-gupta it happens when I toggle between two operations, 1 with stored informations the other without

https://github.com/user-attachments/assets/24395b38-6b25-4f7e-bd4e-bed3e0af6882

ReimarBauer avatar Oct 31 '25 07:10 ReimarBauer