[Qgis-user] QGIS 2.18.9 crash using Python console

johnrobot johnrobot at gmail.com
Tue Jun 6 13:18:32 PDT 2017


Hi
I had a look at the python examples at
http://www.qgistutorials.com/en/docs/getting_started_with_pyqgis.html. I
noticed that when I run

layer = iface.activeLayer()
for f in layer.getFeatures():
  print geom.asPoint()

QGIS crashes and creates a dump file. Is this a known issue? Running

layer = iface.activeLayer()
for f in layer.getFeatures():
  geom = f.geometry()
  print geom.asPoint()

works fine. I use Windows 10, 64 bit and QGIS 2.18.9, 64 bit.

Regards,

Magnus



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/QGIS-2-18-9-crash-using-Python-console-tp5323262.html
Sent from the QGIS - User mailing list archive at Nabble.com.



More information about the Qgis-user mailing list