BUG: invalid value .tiff causing the titiler docker to crash #992
Unanswered
lawrencenika
asked this question in
Q&A
Replies: 1 comment 6 replies
-
🤯 for some reason those lines https://github.com/cogeotiff/rio-cogeo/blob/d79b0d6ce79f68349a27047d61d19b87e6055541/rio_cogeo/cogeo.py#L746-L750 is causing some issue with rio-cogeo needed more than 20Go of memory (that's super weird) This is a bug with GDAL directly (confirmed using gdal python) ## Checking with GDAL
from osgeo import gdal
print(gdal.__version__)
# > '3.8.5'
ds = gdal.Open("Sentinel-2.tiff")
ds.GetMetadataDomainList() # <--- will require ~20Go of memory
## Checking with Rasterio
import rasterio
rasterio.show_versions()
# rasterio info:
# rasterio: 1.4.0rc1
# GDAL: 3.9.2
# PROJ: 9.4.1
# GEOS: 0.0.0
# PROJ DATA: /opt/homebrew/share/proj
# GDAL DATA: /opt/homebrew/share/gdal
with rasterio.open("Sentinel-2.tiff") as src_dst:
namespaces = src_dst.tag_namespaces() # <--- will require ~20Go of memory I'm not sure how you created your tif but this might deserve an issue on GDAL repo |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i got this error
from this image trying to load through [email protected]: https://storage.googleapis.com/raster-datasources/Sentinel-2%20L2A%20False%20color%20(1).tiff
code I ran with object path encoded in url:
But I could load this image in QGIS successfully. see below:

Beta Was this translation helpful? Give feedback.
All reactions