Bug report #21709

DB Manager python error on layer preview

Added by Man Andman 10 months ago. Updated 8 months ago.

Category:DB Manager
Affected QGIS version:3.6.2 Regression?:Yes
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:29525


There is a python error when I try to see layer preview in DB Manager. (see attached gif)

Python error is below ▼
WARNING Traceback (most recent call last):
File "C:/PROGRA~1/QGIS3~1.6/apps/qgis/./python/plugins\db_manager\db_manager.py", line 119, in tabChanged
File "C:/PROGRA~1/QGIS3~1.6/apps/qgis/./python/plugins\db_manager\db_manager.py", line 142, in refreshTabs
File "C:/PROGRA~1/QGIS3~1.6/apps/qgis/./python/plugins\db_manager\layer_preview.py", line 62, in loadPreview
File "C:/PROGRA~1/QGIS3~1.6/apps/qgis/./python/plugins\db_manager\layer_preview.py", line 89, in _clear
File "C:/PROGRA~1/QGIS3~1.6/apps/qgis/./python/plugins\db_manager\layer_preview.py", line 132, in _loadTablePreview
self.currentLayerId = vl.id()
AttributeError: 'NoneType' object has no attribute 'id'

123.gif (1.88 MB) Man Andman, 2019-03-29 08:23 PM


#1 Updated by Giovanni Manghi 10 months ago

  • Easy fix? changed from Yes to No
  • Regression? changed from No to Yes
  • Operating System deleted (Windows 10)
  • Subject changed from QGIS 3.6 DB Manager doesn't show layer preview to DB Manager python error on layer preview

Confirmed on Linux too.

#2 Updated by Giovanni Manghi 8 months ago

  • Affected QGIS version changed from 3.6.1 to 3.6.2

works on 3.4.7

Also available in: Atom PDF