Bug report #14740

DB Manager: Previews do not work and python error

Added by Giovanni Manghi over 8 years ago. Updated over 8 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:Salvatore Larosa
Category:DB Manager
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:22698

Description

More issue in DB manager on master (testing on linux, installed from the nightly repo on ubuntu).

The preview of tables and geometries does not seems to work (it shows always the preview of the same layer), and at some point it starts to throw a python error

TypeError: pyqtSignal must be bound to a QObject, not 'PGVectorTable'

Traceback (most recent call last):
File "/usr/share/qgis/python/plugins/db_manager/db_manager.py", line 116, in tabChanged
self.refreshTabs()
File "/usr/share/qgis/python/plugins/db_manager/db_manager.py", line 142, in refreshTabs
self.preview.loadPreview(item)
File "/usr/share/qgis/python/plugins/db_manager/layer_preview.py", line 62, in loadPreview
self._clear()
File "/usr/share/qgis/python/plugins/db_manager/layer_preview.py", line 83, in _clear
self.item.aboutToChange.disconnect(self.setDirty)
TypeError: pyqtSignal must be bound to a QObject, not 'PGVectorTable'

Associated revisions

Revision b9d1544c
Added by Salvatore Larosa over 8 years ago

[dbmanager] Fixes #14740 - Previews do not work and python error for PG layers

History

#1 Updated by Giovanni Manghi over 8 years ago

got also this while doing operations with table structure

Traceback (most recent call last):
File "/usr/share/qgis/python/plugins/db_manager/dlg_table_properties.py", line 210, in addConstraint
dlg = DlgCreateConstraint(self, self.table)
File "/usr/share/qgis/python/plugins/db_manager/dlg_create_constraint.py", line 40, in init
self.db = self.table.database() if self.table and self.table.database() else db
File "/usr/share/qgis/python/plugins/db_manager/db_plugins/plugin.py", line 618, in database
return self.parent()
RuntimeError: wrapped C/C++ object of type PGVectorTable has been deleted

#2 Updated by Salvatore Larosa over 8 years ago

  • Assignee set to Salvatore Larosa

#3 Updated by Salvatore Larosa over 8 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF