python script crashes QGIS #28082
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Crash/Data Corruption
High Priority
PyQGIS
Related to the PyQGIS API
Author Name: Theresa Lichtenberger (Theresa Lichtenberger)
Original Redmine Issue: 20261
Affected QGIS version: 2.18.17
Redmine category:pyqgis_console
I have written a python script which has two input vector layers (one point-layer and one line-layer). The outpout is another line-layer. But when I try too set the geometry for the new edge, the python script stopps and I get the error "minidump written to C".
Here is my python script code:
https://gis.stackexchange.com/questions/300562/qgis-python-script-crashed-with-minidump-written-to-c
With the help of printf-Debugging, I have figured out that the crash is caused by this line:
-> newEdge.setGeometry(QgsGeometry.fromPolyline([geomFrom.asPoint(),geomTo.asPoint()]))
I have already deleted the .qgis2-folder and started qgis 2.18 anew. But without success.
Any suggestions?
The text was updated successfully, but these errors were encountered: