Bug report #1935

Crash when setting edit widget in layer properties dialogue/attribute tab to immutable

Added by Andreas Neumann about 12 years ago. Updated about 12 years ago.

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

Description

If one opens the layer properties dialogue --> Attribute Tab --> Edit Widget --> Separate Dialogue --> choose "immutable"

then QGIS crashes.

It happened with a Postgis data source - seems to work fine with shapefile through OGR.

Crash could be reproduced on Windows XP (OSGeo) and Linux Ubuntu 9.04 64bit.

Associated revisions

Revision 103d036a
Added by Jürgen Fischer about 12 years ago

fix #1935

git-svn-id: http://svn.osgeo.org/qgis/trunk/[email protected] c8812cc2-4d05-0410-92ff-de0c093fc19c

Revision 7ecdb1db
Added by Jürgen Fischer about 12 years ago

fix #1935

git-svn-id: http://svn.osgeo.org/qgis/[email protected] c8812cc2-4d05-0410-92ff-de0c093fc19c

History

#1 Updated by Andreas Neumann about 12 years ago

Further investigation shows that it has to do with the Postgis provider and the_geom column. Attributes/columns before the_geom work fine, but attributes that come after the geometry column in the table definition are offset by one. This results in an invalid index at the end of the attributes list and thus in the crash.

#2 Updated by Jürgen Fischer about 12 years ago

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

Replying to [comment:2 neumann]:

Further investigation shows that it has to do with the Postgis provider and the_geom column.

Attributes/columns before the_geom work fine, but attributes that come after the geometry column in the table definition are offset by one. This results in an invalid index at the end of the attributes list and thus in the crash.

right, fixed in 7ecdb1db (SVN r11705).

Also available in: Atom PDF