Opened 9 years ago
Closed 9 years ago
#5808 closed defect (fixed)
"Illegal nBlockYOff value" with mask overviews
Reported by: | cdestigter | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | GDAL_Raster | Version: | svn-trunk |
Severity: | normal | Keywords: | |
Cc: |
Description (last modified by )
A simple gdal_translate using overviews fails with heaps of these errors:
$ gdal_translate -outsize 50% 50% in.tif out.tif Input file size is 249, 238 0ERROR 5: Illegal nBlockXOff value (1) in GDALRasterBand::TryGetLockedBlockRef() ERROR 5: Illegal nBlockXOff value (1) in GDALRasterBand::GetLockedBlockRef() ... ERROR 5: Illegal nBlockYOff value (1) in GDALRasterBand::TryGetLockedBlockRef() ERROR 5: Illegal nBlockYOff value (1) in GDALRasterBand::GetLockedBlockRef()
This image has a mask band with overviews (FWIW, all the overviews look okay to me when extracted with tiffsplit
). The issue goes away if I clear the overviews from in.tif using gdaladdo -clean
.
Attached in.tif and an strace log.
Occurs using trunk gdal (at https://github.com/osgeo/gdal/commit/e3cc4342808960c9e0b3a7b40f421aeb0c4db5c5 )
Attachments (3)
Change History (6)
comment:1 by , 9 years ago
Description: | modified (diff) |
---|---|
Summary: | "Illegal nBlockYOff value" when translating from overviews → "Illegal nBlockYOff value" with mask overviews |
by , 9 years ago
Attachment: | 5808-output.txt added |
---|
by , 9 years ago
by , 9 years ago
Attachment: | 5808-strace.txt added |
---|
comment:2 by , 9 years ago
comment:3 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This gives an error also
However, creating a bit bigger image goes well:
I suggest to make some more tests with bigger originals.