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

Crash on SQL queries - virtual layers #27099

Closed
qgib opened this issue Jun 26, 2018 · 5 comments
Closed

Crash on SQL queries - virtual layers #27099

qgib opened this issue Jun 26, 2018 · 5 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

Comments

@qgib
Copy link
Contributor

qgib commented Jun 26, 2018

Author Name: Bugmi Gnott (Bugmi Gnott)
Original Redmine Issue: 19271
Affected QGIS version: 3.2
Redmine category:db_manager


Steps to reproduce:

  • New project

  • New temporary vector (name "asd", geometry: LineString)

  • Draw a line

  • Menu Database -> DB Manager, click on Virtual Layers -> QGIS layer -> asd, open the SQL window

  • Run query: "SELECT * FROM asd;", query should run OK

  • Run query: "SELECT geometry FROM asd;", query should run OK

  • Run query: "SELECT GLength(geometry) FROM asd;", query should run OK

  • Run query: "SELECT *", crash occurs

  • Run query: "SELECT geometry_n FROM asd;", crash occurs

  • Run query: "SELECT NoSuchFunction(geometry) FROM asd;", crash occurs

See attached file for stack trace


@qgib
Copy link
Contributor Author

qgib commented Jun 27, 2018

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


  • subject was changed from QGIS 3.2.0 - Crash on SQL queries to Crash on SQL queries

@qgib
Copy link
Contributor Author

qgib commented Oct 1, 2018

Author Name: Stephen Knox (Stephen Knox)


I can't reproduce a crash on the queries flagged, although they don't work, but that isn't surprising since they don't seem to be valid SQL. Perhaps a close candidate as time has moved on?

@qgib
Copy link
Contributor Author

qgib commented Oct 2, 2018

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Oct 23, 2018

Author Name: Regis Haubourg (@haubourg)


Tested here with latest nightlies.

I get "database error" messages in a popup but no QGIS crash.

For sure the error message are not really informative but this would be more a feature request to improve that part of DBmanager (would be really nice to have verbose messages from spatialite / SQLITE)

Please reopen if the crash still occurs


  • status_id was changed from Feedback to Closed
  • resolution was changed from to not reproducable
  • priority_id was changed from High to Normal

@qgib qgib closed this as completed Oct 23, 2018
@qgib
Copy link
Contributor Author

qgib commented Oct 23, 2018

Author Name: Regis Haubourg (@haubourg)


  • subject was changed from Crash on SQL queries to Crash on SQL queries - virtual layers

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! 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
Projects
None yet
Development

No branches or pull requests

1 participant