GuckLab / impose

Align microscopy images using custom-defined structural patterns and superimpose those on data from other imaging modalities.
GNU General Public License v3.0
1 stars 0 forks source link

Unhandled exception in Collect tab when changing slice viewed #51

Closed raimund-schluessler closed 2 years ago

raimund-schluessler commented 2 years ago

Opening this file (exported by BrillouinEvaluation, same happens when coming from bmlab) Brillouin_rep1.zip by Add Image Data in the Collect tab and then changing the slice viewed with the View slice slider leads to this error:

Unhandled exception in Impose version 0.3.1:
Traceback (most recent call last):
  File "C:\Users\rschl\AppData\Local\Impose Developers\Impose\impose\gui\collect.py", line 167, in on_image_changed
    self.update_ui_from_scheme()
  File "C:\Users\rschl\AppData\Local\Impose Developers\Impose\impose\gui\collect.py", line 293, in update_ui_from_scheme
    self.update_table_paths()
  File "C:\Users\rschl\AppData\Local\Impose Developers\Impose\impose\gui\collect.py", line 285, in update_table_paths
    f_metrics = item.fontMetrics()
RuntimeError: wrapped C/C++ object of type QLabel has been deleted

Impose version 0.3.1.

raimund-schluessler commented 2 years ago

Weird enough it only happens when dragging the slider with the mouse, but not when clicking onto it or using the keyboard.

paulmueller commented 2 years ago

Thanks! This was due to a confusion with QWidget vs QTableWidgetItem.