Opened 17 years ago

Closed 17 years ago

Last modified 15 years ago

#445 closed bug (fixed)

qgis crash deleting point in postgis table

Reported by: venturato@… Owned by: mhugent
Priority: critical: causes crash or data corruption Milestone:
Component: Digitising Version: 0.8
Keywords: Cc: cavallini@…
Must Fix for Release: Yes Platform: Debian
Platform Version: etch Awaiting user input: no

Description

When we try to delete a point in postgis table qgis crash:

Warning: QPainter::begin: Painter already active Segmentation fault

This happens every time we allow editing, select a point, and click on the "cut" icon. It doesn't happen with linestring or polygon.

The problem is similar to http://svn.qgis.org/trac/ticket/132

I don't know if it's could be correlate, but connection to db seems lower than before.

Change History (6)

comment:1 by anonymous, 17 years ago

Works for me.

Can you provide a backtrace from the crash?

comment:2 by gsherman, 17 years ago

Must Fix for Release: NoYes

comment:3 by mhugent, 17 years ago

Resolution: fixed
Status: newclosed

Made QgsVectorLayer and QgsFeature more robust against 0 geometry objects.

comment:4 by venturato@…, 17 years ago

Cc: cavallini@… added
Resolution: fixed
Status: closedreopened

The bug fixing caused a side effect: If I try to select from query builder on a table (I tried also as db superuser with full grants) I get an error message: 'Connection to database failed: FATAL: password authentication failed for user "username"'. Furthermore, if I select all records from a table with missing geoms, then zoom to selection, qgis crashes. If I exclude the records with missing geoms, the zoom works well (no crash). So missing geoms appear to be a problem not only for digitizing, but also for selecting. The query builder might be a side effect?

comment:5 by venturato@…, 17 years ago

Resolution: fixed
Status: reopenedclosed

fixed now

comment:6 by (none), 15 years ago

Milestone: Version 0.8

Milestone Version 0.8 deleted

Note: See TracTickets for help on using tickets.