dials / dials

Diffraction Integration for Advanced Light Sources
https://dials.github.io
BSD 3-Clause "New" or "Revised" License
74 stars 52 forks source link

image_viewer prints exception when closing with ring tool open #1467

Open ndevenish opened 4 years ago

ndevenish commented 4 years ago
  1. Open Image viewer
  2. Open ring tool
  3. Close main window
Exception ignored in: <function RingSettingsPanel.__del__ at 0x1457395e0>
Traceback (most recent call last):
  File "/Users/nickd/dials/dist/modules/dials/util/image_viewer/slip_viewer/ring_frame.py", line 144, in __del__
    self._pyslip.DeleteLayer(self._ring_layer)
  File "/Users/nickd/dials/dist/modules/dials/util/image_viewer/slip_viewer/pyslip.py", line 1549, in DeleteLayer
    self.Update()
  File "/Users/nickd/dials/dist/modules/dials/util/image_viewer/slip_viewer/pyslip.py", line 167, in Update
    dc = wx.BufferedDC(wx.ClientDC(self), self.buffer)
RuntimeError: wrapped C/C++ object of type PySlip has been deleted
stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. The label will be removed automatically if any activity occurs. Thank you for your contributions.

biochem-fan commented 2 months ago

This happens with other overlays as well, e.g. circle and rectangles from the masking tool.