Driver management tests fail on Windows
brendan-ward opened this issue · 6 comments
tests in tests/test_driver_management.py
fail on Windows due to termination of python process (windows counterpart to Linux segfault).
Am I allocating or deallocating config options improperly?
Not yet sure where in the code it is failing. I'll look into it further and submit a PR if I can fix it.
Traced to this line: https://github.com/mapbox/rasterio/blob/master/rasterio/_io.pyx#L191
This line never succeeds and kills the process.
Which suggests that it is something internal to GDAL when the CPL_DEBUG flag is set.
However, if I run gdalinfo on command line for that file, with this flag, all is as it should be:
gdalinfo --config CPL_DEBUG ON rasterio/tests/data/RGB.byte.tif
Is this issue still live?
I have not found a fix for it. The issue seems to be internal to GDAL in the way we are calling it. My workaround is to simply omit those tests from the suite on windows, which isn't great but gets past this.
Recommend closing this and reopening later via an issue / pull request when we know more.