mapbox / raster-tester

Utilities for raster tests
https://github.com/mapbox/raster-tester
MIT License
0 stars 1 forks source link

segfault when using --compare-masked #27

Closed perrygeo closed 7 years ago

perrygeo commented 8 years ago

This might be a packaging issue with rasterio wheels on OSX but it only affects this repo so ticketing here...

When install raster-tester locally with the rasterio==0.36 wheels, the tests segfault

tests/test_cli.py::test_cli_okcompare Segmentation fault: 11

Specifically, this command segfaults

$ raster-tester compare tests/expected/blobby.tif tests/fixtures/notblobby.tif --upsample 8 --compare-masked --downsample 64
Segmentation fault: 11

But this command works fine (dropping the --compare-masked)

$ raster-tester compare tests/expected/blobby.tif tests/fixtures/notblobby.tif --upsample 8 --downsample 64
...

If I install rasterio from source ($ pip uninstall -y rasterio && pip install --no-binary :all: rasterio) the segfault no longer occurs. Nor does it occur on local linux containers or the circleci box.

I haven't dug into why the --compare-mask flag would trigger this yet. 😕 Any ideas @sgillies ?

perrygeo commented 8 years ago

This is likely related to the GTIFF_IMPLICIT_JPEG_OVR bug (see https://github.com/mapbox/raster-tester/issues/29#issuecomment-248373068) - the wheels use one of the versions of libgdal where segfaults occur with decimated reads.