You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @jterry64 unfortunately we didn't have a chance to look into it. I can confirm that this bug is not present in Py bindings though, so that should be smth very specific to our bindings.
pomadchin
changed the title
GDALRasterSource gives segmentation fault when reading rasters with NBITS=1 and CCITTFAX4 compression GDAL options
GDALRasterSource gives segmentation fault when reading rasters with NBITS=1
Mar 26, 2021
Hey @jterry64, could you verify that #3368 solves your issue?
Be careful with its testing though. The demo file size is only 8.4M, however, it is a 40000 x 40000 raster. Meaning that it would require a 40000 x 40000Byte array allocation in JVM.
Describe the bug
When trying to read rasters using GDALRasterSource that have nbits=1 and CCITTFAX4 compression GDAL options, I get the following error:
If I change to the same raster but without any special GDAL options, it works fine.
To Reproduce
Here's a sample of a raster file that causes the issue: is__umd_tree_cover_gain_20N_100E.tif.zip
This how I'm using the GDALRasterSource and LayoutTileSource in my code:
https://github.com/wri/gfw_forest_loss_geotrellis/blob/3947899c4b985e9fad4f57bb7cf18bfc8fb279af/src/main/scala/org/globalforestwatch/layers/Layer.scala#L166
https://github.com/wri/gfw_forest_loss_geotrellis/blob/3947899c4b985e9fad4f57bb7cf18bfc8fb279af/src/main/scala/org/globalforestwatch/layers/Layer.scala#L314
I'm reading raster tiles from S3.
Expected behavior
No segmentation fault.
Environment
Additional context
Discussed with @pomadchin in gitter for context
The text was updated successfully, but these errors were encountered: