Opened 11 years ago

Closed 11 years ago

#5181 closed defect (fixed)

In Python, calls on a Point geometry cause crash

Reported by: lakshmanok Owned by: hobu
Priority: normal Milestone:
Component: PythonBindings Version: 1.10.0
Severity: major Keywords:
Cc:

Description (last modified by lakshmanok)

In Python, calls on a Point geometry cause the interpreter to crash. The Windows error reads "calls on a pure virtual function".

I have attached a bare-bones Python script that will cause the crash. The shapefile that I was using is attached, but the bug is not limited to this shapefile. I believe that the crash happens on any shapefile that contains Points. I was able to reproduce the bug on the point shapefile available at: http://invisibleroads.com/tutorials/_downloads/gdal-shapefile-points.zip

thanks Lak

Attachments (2)

IsleOfWright.zip (25.9 KB ) - added by lakshmanok 11 years ago.
Example shapefile with Points that illustrates the bug
point_geometry_crash.py (709 bytes ) - added by lakshmanok 11 years ago.

Download all attachments as: .zip

Change History (7)

by lakshmanok, 11 years ago

Attachment: IsleOfWright.zip added

Example shapefile with Points that illustrates the bug

by lakshmanok, 11 years ago

Attachment: point_geometry_crash.py added

comment:1 by lakshmanok, 11 years ago

Description: modified (diff)

comment:2 by Even Rouault, 11 years ago

I can't reproduce the crash with your script and data (on Linux 64 bit). Which Windows binaries did you use ?

in reply to:  2 comment:3 by lakshmanok, 11 years ago

Replying to rouault:

I can't reproduce the crash with your script and data (on Linux 64 bit). Which Windows binaries did you use ?

Thanks for looking into this.

I installed GDAL v 1.10 core from http://www.gisinternals.com/sdk/Download.aspx?file=release-1600-gdal-1-10-0-mapserver-6-2-1\gdal-110-1600-core.msi and the Python binding http://www.gisinternals.com/sdk/Download.aspx?file=release-1600-gdal-1-10-0-mapserver-6-2-1\GDAL-1.10.0.win32-py2.7.msi

Lak

comment:4 by Even Rouault, 11 years ago

Hum, I did try with the above binaries (but with Wine, the Windows emulator, under Linux) and still no crash

comment:5 by lakshmanok, 11 years ago

Resolution: fixed
Status: newclosed

I swear the script would reliably cause a crash ;)

But now, from a cold start, it doesn't. So I have closed the issue.

Thanks again for looking into it.

Note: See TracTickets for help on using tickets.