Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB manager virtual layers: wrong list, layers removed from project #24440

Closed
qgib opened this issue May 9, 2017 · 6 comments
Closed

DB manager virtual layers: wrong list, layers removed from project #24440

qgib opened this issue May 9, 2017 · 6 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption DB Manager Relating to the DB Manager core plugin High Priority

Comments

@qgib
Copy link
Contributor

qgib commented May 9, 2017

Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 16534
Affected QGIS version: master
Redmine category:db_manager


This has been seen on 2.18.7 and master (QGIS 3) as well. Steps to replicate the issues:

  • Load a shapefile
  • Open DB Manager > look into the "virtual layers/QGIS layers group", the shapefile loaded in the project is listed
  • Browse a PostGIS connection, select a table and preview its geometries
  • Select again "virtual layers/QGIS layers group" and click on the refresh button > the previewed layer in now in the virtual layers group(?). This only happens if in the above steps you preview the geometries, does not happen if you preview the table or see the table infos
  • Now preview the geometries of the (Postgis) table as visible in the virtual layers group > mouse pointer hourglass pointer starts and never ends
  • Click on the (shapefile) layer as visible in the "virtual layers" group
  • Click on the (PostGIS) layer as visible in the "virtual layers" group > the shapefile is REMOVED from the project

Related issue(s): #24385 (duplicates)
Redmine related issue(s): 16476


@qgib
Copy link
Contributor Author

qgib commented May 9, 2017

Author Name: Giovanni Manghi (@gioman)


also while doing the above steps I have also seen this (not always):

Traceback (most recent call last):
  File "C:/OSGEO4~1/apps/qgis/./python/plugins\db_manager\layer_preview.py", line 67, in runPrev
    return self._loadTablePreview(item)
  File "C:/OSGEO4~1/apps/qgis/./python/plugins\db_manager\layer_preview.py", line 116, in _loadTablePreview
    if not vl.isValid():
AttributeError: 'NoneType' object has no attribute 'isValid'

@qgib
Copy link
Contributor Author

qgib commented May 9, 2017

Author Name: Luigi Pirelli (@luipir)


seems that db_manager qgis layer list in Virtual Layer gets layers form shown layers in the QgsMapCanvas instance of the preview table

@qgib
Copy link
Contributor Author

qgib commented May 10, 2017

Author Name: Harrissou Santanna (@DelazJ)


Is this a duplicate of #24385?

@qgib
Copy link
Contributor Author

qgib commented May 10, 2017

Author Name: Luigi Pirelli (@luipir)


right Harrissou

@qgib
Copy link
Contributor Author

qgib commented May 10, 2017

Author Name: Giovanni Manghi (@gioman)


  • resolution was changed from to duplicate
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed May 10, 2017
@qgib
Copy link
Contributor Author

qgib commented May 19, 2017

Author Name: Jürgen Fischer (@jef-n)


@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority DB Manager Relating to the DB Manager core plugin Crash/Data Corruption labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption DB Manager Relating to the DB Manager core plugin High Priority
Projects
None yet
Development

No branches or pull requests

1 participant