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 )
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)
Change History (7)
by , 11 years ago
Attachment: | IsleOfWright.zip added |
---|
by , 11 years ago
Attachment: | point_geometry_crash.py added |
---|
comment:1 by , 11 years ago
Description: | modified (diff) |
---|
follow-up: 3 comment:2 by , 11 years ago
I can't reproduce the crash with your script and data (on Linux 64 bit). Which Windows binaries did you use ?
comment:3 by , 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 , 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 , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
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.
Example shapefile with Points that illustrates the bug