Opened 14 years ago

Closed 14 years ago

#2056 closed bug (fixed)

fTools polygon centroids crash qgis in case of errors in shapefile

Reported by: pcav Owned by: cfarmer
Priority: critical: causes crash or data corruption Milestone: Version 1.4.0
Component: Python plugins and bindings Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description (last modified by pcav)

When trying to calculate centroids from a large and dirty shapefile, qgis throws some errors on the console and crashes:

ERROR 1: Corrupted .shp file : shape 5305 : panPartStart[1] = 970662609, nVertices = 93
ERROR 1: Corrupted .shp file : shape 9559, nPoints=6, nParts=1, nEntitySize=136.
ERROR 1: Corrupted .shp file : shape 51001, nPoints=22, nParts=1, nEntitySize=168.
ERROR 1: Corrupted .shp file : shape 57986, nPoints=16, nParts=1, nEntitySize=200.
ERROR 1: Corrupted .shp file : shape 74444, nPoints=36, nParts=1, nEntitySize=408.
Warning: QPixmap: It is not safe to use pixmaps outside the GUI thread
Warning: qgis.bin: Fatal IO error: client killed
Segmentation fault

Change History (4)

comment:1 by pcav, 14 years ago

Description: modified (diff)

comment:2 by borysiasty, 14 years ago

Owner: changed from borysiasty to cfarmer

in reply to:  description comment:3 by jef, 14 years ago

Replying to pcav:

When trying to calculate centroids from a large and dirty shapefile, qgis throws some errors on the console and crashes:

can you provide an example to reproduce the problem?

comment:4 by jef, 14 years ago

Resolution: fixed
Status: newclosed

fixed in r12283.

Note: See TracTickets for help on using tickets.