Bug report #4963

Calculation of polygon's centroids leads to QGIS crashes

Added by dr - almost 13 years ago. Updated over 7 years ago.

Status:Closed
Priority:High
Assignee:-
Category:Processing/QGIS
Affected QGIS version:master Regression?:
Operating System: Easy fix?:
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:Yes Copied to github as #:14755

Description

If try to calculate centroids of polygon against attached layer then QGIS crashes. It is known this layer contains topological errors, but if test it against check geometry tool in Linux: 0 topological errors, but progress bar stay on 66%, in Windows: QGIS crashes or freezes sometimes.

cnt_bug.zip (16.6 KB) dr -, 2012-02-07 06:24 PM

Associated revisions

Revision d7510368
Added by Jürgen Fischer over 12 years ago

validation/geometry/threading fixes:
- fTools/polygon centroids: catch missing centroid with invalid geometry
(fixes #4963)
- fTools/validate geometry: * fix final position of progress bar * don't use isGeosValid() * zoom to feature on locationless errors (including OTFR support) * store/restore dialog position
- QgsGeometry(Validator): * log GEOS exceptions * (closed) rings need at least 4 points not 3 * log error when geometry can't be exported to GEOS * don't produce "geometry is valid" error
- improve logging from threads * keep message output from main thread as popup * log message from threads to message log (fixes crash on python error
in thread)

History

#1 Updated by Maxim Dubinin almost 13 years ago

same on windows

QGIS version
1.9.90-Alpha
QGIS code revision
aaddc4f

#2 Updated by Giovanni Manghi almost 13 years ago

confirmed, error message is

[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
qgis.bin: ../../src/xcb_io.c:178: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
Aborted

#3 Updated by Giovanni Manghi almost 13 years ago

  • Priority changed from High to 6

#4 Updated by Giovanni Manghi over 12 years ago

  • Priority changed from 6 to High

#5 Updated by Giovanni Manghi over 12 years ago

  • Priority changed from High to Severe/Regression

#6 Updated by Giovanni Manghi over 12 years ago

  • Priority changed from Severe/Regression to High

#7 Updated by Jürgen Fischer over 12 years ago

  • Status changed from Open to Closed

#8 Updated by Giovanni Manghi over 7 years ago

The "ftools" category is being removed from the tracker, changing the category of this ticket to "Processing/QGIS" to not leave the category orphaned.

Also available in: Atom PDF