Bug report #15660

Validate geometries QGIS crash with node tool selection

Added by Elia De Marchi almost 4 years ago. Updated about 3 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:Nyall Dawson
Category:Unknown
Affected QGIS version:2.14.3 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:Yes Copied to github as #:23583

Description

With some complex (and maybe a bit uncorrect geometries) like the one I attached here below, if the geometries validator is set on QGIS, when I select it with the nodetool, Qgis crashes.
The fact is that it happen with all the realeses of the 2.14, both for windows and mac, while the same geometry had no problem at all with the releases of the version 2.8.
Setting the validator on GEOS or Off (obviously) the are no problems.

This is the report of the crash:

Crashed Thread:        15  QgsGeometryValidator

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called
terminating with uncaught exception of type QgsException

Thread 0:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib            0x0000000111aa9f72 mach_msg_trap + 10
1   libsystem_kernel.dylib            0x0000000111aa93b3 mach_msg + 55
2   com.apple.CoreGraphics            0x0000000111e4bfb6 CGSWindowSynchronizeBacking + 151
3   com.apple.CoreGraphics            0x0000000111e569c2 CGSDeviceLock + 39
4   com.apple.AppKit                  0x000000010f67b09b lock_device + 64
5   com.apple.AppKit                  0x000000010f643fde __NSCGSWindowBackingStoreMark__block_invoke + 960
6   com.apple.AppKit                  0x000000010f6052b6 NSCGSTransactionRunPreCommitActionsForOrder_ + 298
7   com.apple.AppKit                  0x000000010f605179 NSCGSTransactionRunPreCommitActions_ + 31
8   com.apple.AppKit                  0x000000010f60514e __39+[_NSCGSTransaction currentTransaction]_block_invoke + 34
9   com.apple.QuartzCore              0x0000000117a10f71 CA::Transaction::run_commit_handlers(CATransactionPhase) + 85
10  com.apple.QuartzCore              0x0000000117a10d28 CA::Context::commit_transaction(CA::Transaction*) + 2460
11  com.apple.QuartzCore              0x0000000117a100ec CA::Transaction::commit() + 508
12  com.apple.QuartzCore              0x0000000117a1b977 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 71
13  com.apple.CoreFoundation          0x0000000109937067 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
14  com.apple.CoreFoundation          0x0000000109936fd7 __CFRunLoopDoObservers + 391
15  com.apple.CoreFoundation          0x0000000109915ef8 CFRunLoopRunSpecific + 328
16  com.apple.HIToolbox               0x00000001171f5935 RunCurrentEventLoopInMode + 235
17  com.apple.HIToolbox               0x00000001171f576f ReceiveNextEventCommon + 432
18  com.apple.HIToolbox               0x00000001171f55af _BlockUntilNextEventMatchingListInModeWithFilter + 71
19  com.apple.AppKit                  0x000000010f4b9efa _DPSNextEvent + 1067
20  com.apple.AppKit                  0x000000010f4b932a -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
21  com.apple.AppKit                  0x000000010f4ade84 -[NSApplication run] + 682
22  QtGui                             0x000000010a45a640 QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1824
23  QtCore                            0x000000010a1d95a4 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 68
24  QtCore                            0x000000010a1d9954 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 324
25  QtCore                            0x000000010a1dc1cc QCoreApplication::exec() + 188
26  org.qgis.qgis2                    0x000000010778153d main + 21409
27  libdyld.dylib                     0x00000001118cb5ad start + 1

poli_problemi.dbf (2.55 KB) Elia De Marchi, 2016-10-04 02:53 AM

poli_problemi.prj (398 Bytes) Elia De Marchi, 2016-10-04 02:53 AM

poli_problemi.qpj (652 Bytes) Elia De Marchi, 2016-10-04 02:53 AM

poli_problemi.shp (1.09 KB) Elia De Marchi, 2016-10-04 02:53 AM

poli_problemi.shx (108 Bytes) Elia De Marchi, 2016-10-04 02:53 AM

Associated revisions

Revision bc32b1fe
Added by Nyall Dawson almost 4 years ago

Fix crash when validating geometry (fix #15660)

Also fix python bindings for QgsGeometryValidator

Revision d000833f
Added by Nyall Dawson almost 4 years ago

Fix crash when validating geometry (fix #15660)

Also fix python bindings for QgsGeometryValidator

(cherry-picked from bc32b1fe5a9ac05f1763f45268eab833cc46e546)

Revision 767b88d5
Added by Nyall Dawson almost 4 years ago

Fix crash when validating geometry (fix #15660)

Also fix python bindings for QgsGeometryValidator

(cherry-picked from bc32b1fe5a9ac05f1763f45268eab833cc46e546)

Revision 35ba4b39
Added by Nyall Dawson almost 4 years ago

Fix crash when validating geometry (fix #15660)

Also fix python bindings for QgsGeometryValidator

(cherry-picked from bc32b1fe5a9ac05f1763f45268eab833cc46e546)

History

#1 Updated by Nyall Dawson almost 4 years ago

  • Priority changed from Normal to Severe/Regression
  • Assignee set to Nyall Dawson

#2 Updated by Nyall Dawson almost 4 years ago

  • Status changed from Open to Closed

#3 Updated by Jürgen Fischer about 3 years ago

  • Category set to Unknown

Also available in: Atom PDF