titusjan / argos

Argos: a data viewer that can read HDF5, NetCDF4, and other file formats.
GNU General Public License v3.0
176 stars 26 forks source link

Failed to disconnect signal when closing main window with PySide2 #12

Open titusjan opened 5 years ago

titusjan commented 5 years ago

When using the PySide2 binding the following errror occurs when you close a/the main window.

Traceback (most recent call last):
  File "/Users/kenter/prog/py/argos/argos/widgets/mainwindow.py", line 826, in closeEvent
    self.finalize()
  File "/Users/kenter/prog/py/argos/argos/widgets/mainwindow.py", line 127, in finalize
    self.collector.sigContentsChanged.disconnect(self.collectorContentsChanged)
RuntimeError: Failed to disconnect signal sigContentsChanged(QString).

My suspicion is that it occurs because the disconnect is called in the closeEvent. More investigation is needed.

titusjan commented 4 years ago

By the way this is on OS-X 10.14.6

Python         : 3.6.7 |Anaconda, Inc.| (default, Oct 23 2018, 14:01:38) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]
pyside2        : 5.12.4 (Qt: 5.12.1)
numpy          : 1.17.0
scipy          : 1.3.1
pandas         : 0.25.0
pyqtgraph      : 0.11.0.dev0
exdir          : 
pgcolorbar     : 1.0.0
cmlib          : 1.0.1
h5py           : 2.9.0 (libhdf5: 1.10.5)
netCDF4        : 1.5.1.2 (libncdf4: 4.6.2, libhdf5: 1.10.5)
pillow (PIL)   : 6.1.0
argos          : 0.3.0.rc2 (debugging-mode)