New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exit code -1073741819 (0xC0000005) #142
Comments
ran a quick test on ubuntu 14.04 64 bit and it works fine the json from dropbox is wrapped in quotes, make sure to remove them before trying to run |
@sgoodm |
I can't reproduce this either, on OSX or linux. Can you step through this in a debugger to identify the place it fails? |
@perrygeo 1.step into: 2.step into: 3.step into: 4.step into: 5.Return to : 6.step into: 7.Return to : 8.step into: 9.Return to : 10.step into: 11.Return to : Is't it a library conflict? |
@Neavrys thanks for diving into the details! Looks like you narrowed down the crash to a Rasterio call., likely some issues with its underlying C libraries. What happens if you try this rasterio code:
|
With the code you mention, I received in the geodjango console: The Shell from terminal won't give error details, just python crash. With debug: |
Is it my problem ? |
It appears to be a problem with your Rasterio installation. I don't know much about installing rasterio and GDAL on 32-bit windows so I personally can't help with details. I'd encourage you to open a new ticket in the Rasterio repo so we can get more eyes on the issue. Another option is Anaconda. I usually suggest installing rasterstats via conda-forge. It's not always an option but conda has the only complete solution to the dll problems. |
Hi all,
In django console, a simple code as :
I received :
Process finished with exit code -1073741819 (0xC0000005)
(Python Crash)
Here is the files, (geojson and raster):
https://www.dropbox.com/sh/gacm4iu00aama4v/AADUm0RD0LYD_0fUV6Mxo3QFa?dl=0
Version :
Windows 10 pro 64 bit
PyCharm 2016.3.2
Python 2.7.12
Django 1.10.4
gdal 2.1.3
numpy 1.12.0+mkl
rasterio 0.36.0
rasterstats 0.12
Update:
The entire Zonal Statistics project, with OGR, OSR, Gdal, numpy, geojson that I code myself, work good but too dam slow. I need a efficient Zonal Statistic with geojson and a raster. This lib could save me but a critical error occurred when I use it without any other code or import.
Work in a virtual environment created by Pycharm.
All in 32 bit
Update2
When ran into Shell from terminal, I got some error details.
FATAL: CPLMalloc(): Out of memory allocating 516 bytes.
Python crash
Alex
The text was updated successfully, but these errors were encountered: