[Qgis-user] QGIS 2.18.9 crash using Python console

Nyall Dawson nyall.dawson at gmail.com
Wed Jun 7 04:23:54 PDT 2017


On 7 June 2017 at 21:20, johnrobot <johnrobot at gmail.com> wrote:
> Hi
> There is no additional code. I didnĀ“t expect the first example to work, but
> I do consider the crash a bug. I get the same result in QGIS 2.14.6 on
> Windows 7. I will open a ticket for it.

Likely what's happened is you've run this in the Python console, and
somewhere in the session a previous command has stored a temporary
object in the geom variable. Otherwise Python would error out with a
message like ''NoneType' object has no attribute 'asPoint'.

I suspect it's a result of https://issues.qgis.org/issues/777, which
is fixed for 3.0

Nyall



More information about the Qgis-user mailing list