On 4/14/20 1:04 PM, uclaros wrote: > QgsGeometry.fromWkt('Polygon ((0 0, 1 1, 1 0, 0 > 0))').intersection(QgsGeometry.fromWkt('Point (42 0)'))
Ok, THIS is a good test!! I can confirm/crash with this one :-( BUT on 3.10, 3.12 AND current master!! I also tested on current Windows nightly, there QGIS does not crash but QgsGeometry.fromWkt('Polygon ((0 0, 1 1, 1 0, 0 0))').intersection(QgsGeometry.fromWkt('Point (42 0)')) shows me: QgsGeometry: PointZ (0 0 nan) which also is a little strange...? should this be valid anyway? I also ran this on Debian in gdb: (Note that I recompiled all yesterday because bullseye had now python 3.8) If I run QGIS in gdb (it stops in a thread, but 'continue'-ing for a couple of times QGIS just starts. Then copying your python script above in the python console, QGIS crashes. 'bt' in gdb then shows: Thread 1 "qgis" received signal SIGABRT, Aborted. __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) bt #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 0x00007ffff2e5355b in __GI_abort () at abort.c:79 #2 0x0000555555564305 in qgisCrash(int) (signal=11) at ../src/app/main.cpp:360 #3 0x00007ffff2e697e0 in <signal handler called> () at /lib/x86_64-linux-gnu/libc.so.6 #4 0x00007fffed8ebcbd in GEOSCoordSeq_getXYZ_r () at /usr/lib/x86_64-linux-gnu/libgeos_c.so.1 #5 0x00007ffff5553241 in QgsGeos::coordSeqPoint(GEOSCoordSeq_t const*, int, bool, bool) (cs=0x7fffe8b51200, i=0, hasZ=true, hasM=false) at ../src/core/geometry/qgsgeos.cpp:1276 #6 0x00007ffff5552366 in QgsGeos::fromGeos(GEOSGeom_t const*) (geos=0x7fffc800e710) at ../src/core/geometry/qgsgeos.cpp:1098 #7 0x00007ffff5553980 in QgsGeos::overlay(QgsAbstractGeometry const*, QgsGeos::Overlay, QString*) const (this=0x7fffffffa070, geom=0x55555ec6fdf0, op=QgsGeos::OverlayIntersection, errorMsg=0x55555ec6f370) at ../src/core/geometry/qgsgeos.cpp:1434 #8 0x00007ffff554e3cb in QgsGeos::intersection(QgsAbstractGeometry const*, QString*) const (this=0x7fffffffa070, geom=0x55555ec6fdf0, errorMsg=0x55555ec6f370) at ../src/core/geometry/qgsgeos.cpp:219 #9 0x00007ffff552717c in QgsGeometry::intersection(QgsGeometry const&) const (this=0x55555ec6f360, geometry=...) at ../src/core/geometry/qgsgeometry.cpp:2384 #10 0x00007fff493ed43d in meth_QgsGeometry_intersection(PyObject*, PyObject*, PyObject*) (sipSelf=0x7fffd94d28b0, sipArgs=0x7fffd97bf1c0, sipKwds=0x0) at python/core/sip_corepart2.cpp:94879 #11 0x00007fffa9d531b8 in () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #12 0x00007fffa9d53577 in _PyObject_MakeTpCall () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #13 0x00007fffa9b25083 in () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #14 0x00007fffa9b2d467 in _PyEval_EvalFrameDefault () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #15 0x00007fffa9c7779b in _PyEval_EvalCodeWithName () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #16 0x00007fffa9c77b1e in PyEval_EvalCodeEx () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #17 0x00007fffa9c77ecb in PyEval_EvalCode () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #18 0x00007fffa9c7c351 in () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #19 0x00007fffa9d0adf3 in () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #20 0x00007fffa9b24ffd in () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #21 0x00007fffa9b2906b in _PyEval_EvalFrameDefault () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #22 0x00007fffa9b300db in () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #23 0x00007fffa9d5380a in () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #24 0x00007fffa9b24ffd in () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #25 0x00007fffa9b2d467 in _PyEval_EvalFrameDefault () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #26 0x00007fffa9c7779b in _PyEval_EvalCodeWithName () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #27 0x00007fffa9d52bb0 in _PyFunction_Vectorcall () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #28 0x00007fffa9d5380a in () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #29 0x00007fffa9b24ffd in () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #30 0x00007fffa9b2d467 in _PyEval_EvalFrameDefault () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #31 0x00007fffa9c7779b in _PyEval_EvalCodeWithName () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #32 0x00007fffa9d52bb0 in _PyFunction_Vectorcall () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #33 0x00007fffa9d5380a in () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #34 0x00007fffa9b24ffd in () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #35 0x00007fffa9b2d467 in _PyEval_EvalFrameDefault () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #36 0x00007fffa9b300db in () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #37 0x00007fffa9d5380a in () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #38 0x00007fffa9b24ffd in () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #39 0x00007fffa9b2d467 in _PyEval_EvalFrameDefault () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #40 0x00007fffa9b300db in () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #41 0x00007fffa9d5380a in () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #42 0x00007fffa9b24ffd in () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #43 0x00007fffa9b2d467 in _PyEval_EvalFrameDefault () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #44 0x00007fffa9b300db in () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #45 0x00007fffa9d53783 in () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #46 0x00007fffa9d532ac in PyVectorcall_Call () at /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 #47 0x00007fffe0b26d6c in () at /usr/lib/python3/dist-packages/sip.cpython-38-x86_64-linux-gnu.so #48 0x00007fffe0b26e4f in () at /usr/lib/python3/dist-packages/sip.cpython-38-x86_64-linux-gnu.so #49 0x00007fffe03000ff in () at /usr/lib/python3/dist-packages/PyQt5/Qsci.cpython-38-x86_64-linux-gnu.so #50 0x00007fffe038b446 in () at /usr/lib/python3/dist-packages/PyQt5/Qsci.cpython-38-x86_64-linux-gnu.so #51 0x00007ffff3e93d82 in QWidget::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #52 0x00007ffff3f3f9ce in QFrame::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #53 0x00007ffff3f425a1 in QAbstractScrollArea::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #54 0x00007ffff0f7b213 in QsciScintilla::event(QEvent*) () at /usr/lib/libqscintilla2_qt5.so.15 #55 0x00007fffe038bc0a in () at /usr/lib/python3/dist-packages/PyQt5/Qsci.cpython-38-x86_64-linux-gnu.so #56 0x00007ffff3e51c32 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #57 0x00007ffff3e5b8c6 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #58 0x00007ffff4dc6877 in QgsApplication::notify(QObject*, QEvent*) (this=0x7fffffffcb80, receiver=0x5555613f76a0, event=0x7fffffffbfe0) at ../src/core/qgsapplication.cpp:426 #59 0x00007ffff3454a52 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #60 0x00007ffff3eb1eee in () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #61 0x00007ffff3e51c32 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #62 0x00007ffff3e5b190 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #63 0x00007ffff4dc6877 in QgsApplication::notify(QObject*, QEvent*) (this=0x7fffffffcb80, receiver=0x55555df85ab0, event=0x7fffffffbfe0) at ../src/core/qgsapplication.cpp:426 #64 0x00007ffff3454a52 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #65 0x00007ffff3831f63 in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 #66 0x00007ffff3837251 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 #67 0x00007ffff3811ecb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 #68 0x00007fffcf630cda in () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 #69 0x00007fffebad560d in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #70 0x00007fffebad5890 in () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #71 0x00007fffebad591f in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #72 0x00007ffff34aa7c1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #73 0x00007ffff34536db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #74 0x00007ffff345b182 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #75 0x000055555556b99d in main(int, char**) (argc=1, argv=0x7fffffffde78) at ../src/app/main.cpp:1608 Is this helpfull for any core dev? Should I create an issue? Regards, Richard _______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer