Opened 15 years ago
Closed 15 years ago
#1935 closed bug (fixed)
Crash when setting edit widget in layer properties dialogue/attribute tab to immutable
Reported by: | neumann | Owned by: | nobody |
---|---|---|---|
Priority: | critical: causes crash or data corruption | Milestone: | |
Component: | Data Provider | Version: | Trunk |
Keywords: | Cc: | ||
Must Fix for Release: | No | Platform: | All |
Platform Version: | Awaiting user input: | no |
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.
Change History (3)
comment:1 by , 15 years ago
Component: | Build/Install → Data Provider |
---|
follow-up: 3 comment:2 by , 15 years ago
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Replying to 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 r11704.
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.