Bug report #136

Qgis crashes when accessing a postgres view of a view

Added by Gavin Macaulay - over 18 years ago. Updated over 15 years ago.

Status:Closed
Priority:Low
Assignee:Gavin Macaulay -
Category:Data Provider
Affected QGIS version: Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied: Resolution:worksforme
Crashes QGIS or corrupts data: Copied to github as #:10195

Description

Qgis crashes when accessing a postgres view of a view. An assertion asserts itself thus:

qgis: qgspostgresprovider.cpp:1362: void QgsPostgresProvider::findColumns(std::map<QString, QgsPostgresProvider::SRC, std::less<QString>, std::allocator<std::pair<const QString, QgsPostgresProvider::SRC> > >&): Assertion @ii != columnRelations.end()' failed.

The line number applies to SVN r5500.

History

#1 Updated by Gavin Macaulay - over 18 years ago

  • Resolution set to worksforme
  • Status changed from Open to Closed

The problem seems to have fixed itself in SVN bca2e9c3 (SVN r5572). The assert that was causing the crash has been replaced with an informative error message (in SVN 1d4d6377 (SVN r5573)) so that if the problem occurs in the future there'll be something concrete to go on.

#2 Updated by Anonymous over 15 years ago

Milestone Version 0.8 deleted

Also available in: Atom PDF