Opened 16 years ago

Closed 16 years ago

#2326 closed defect (fixed)

gdaladdo Throws large number of 'Wrong "StripByteCounts" field' errors.

Reported by: sprice Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

I'm trying to experiment with the GDAL interpolation algorithms on large rasters, however I've found an odd bug. I'm trying to run 'gdal_translate' then 'gdaladdo', but when I run gdaladdo on a large image it throws many errors. When I run the exact same commands on a smaller image, no problems are found.

The file sizes in question are over 300 MB, so I'll include instructions on how to make images identical to mine. If this doesn't work, I may be able to put the 310MB PNG file online, but it will take literally all day on my connection.

I'm using the latest stable branch of libtiff and GDAL 1.5.1 on a Mac running 10.5.2. The results are the same when using the a few month old branch of libtiff and GDAL 1.5.0.

I'm generating the original image with the ZonePlate.c program found here: http://www.worldserver.com/turk/opensource/#ZonePlate

Then I'm converting to the PNG with use of the ImageMagick 'convert' utility.

Here is the command set (and output) which works fine: $ ./ZonePlate -w 1440 -h 1440 -s 16 -o z1440.gray $ convert -size 1440x1440 z1440.gray PNG24:z1440.png $ gdal_translate z1440.png z1440.tif Input file size is 1440, 1440 0...10...20...30...40...50...60...70...80...90...100 - done. $ /usr/local/bin/gdaladdo -r average z1440.tif 2 4 8 16 32 64 128 0...10...20...30...40...50...60...70...80...90...100 - done.

Here is the command set which produces a slew of errors:

$ ./ZonePlate -w 14400 -h 14400 -s 1 -o z14400.gray $ convert -size 14400x14400 z14400.gray PNG24:z14400.png $ gdal_translate z14400.png z14400.tif Input file size is 14400, 14400 0...10...20...30...40...50...60...70...80...90...100 - done. $ gdaladdo -r average z14400.tif 2 4 8 16 32 64 128 0.Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 256 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 384 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 512 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 640 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 768 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 896 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 1024 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 1152 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 1280 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 1408 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 1536 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 1664 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 1792 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 1920 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 2048 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 2176 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 2304 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 2432 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 2560 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 2688 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 2816 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 2944 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 3072 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 3200 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 3328 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 3456 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 3584 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 3712 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 3840 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 3968 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 4096 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 4224 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 4352 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 4480 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 4608 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 4736 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 4864 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 4992 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 5120 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 5248 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 5376 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 5504 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 5632 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 5760 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 5888 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 6016 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 6144 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 6272 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 6400 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 6528 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 6656 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 6784 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 6912 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 7040 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 7168 ERROR 1: TIFFReadEncodedTile() failed. Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 0 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 0, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 128 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 1, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 1, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 256 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 2, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 2, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 384 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 3, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 3, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 512 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 4, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 4, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 640 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 5, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 5, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 768 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 6, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 6, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 896 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 7, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 7, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 1024 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 8, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 8, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 1152 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 9, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 9, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 1280 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 10, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 10, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 1408 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 11, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 11, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 1536 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 12, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 12, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 1664 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 13, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 13, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 1792 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 14, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 14, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 1920 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 15, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 15, Y block offset 10 Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 2048 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 16, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 16, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 2176 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 17, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 17, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 2304 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 18, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 18, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 2432 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 19, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 19, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 2560 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 20, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 20, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 2688 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 21, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 21, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 2816 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 22, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 22, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 2944 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 23, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 23, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 3072 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 24, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 24, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 3200 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 25, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 25, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 3328 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 26, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 26, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 3456 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 27, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 27, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 3584 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 28, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 28, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 3712 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 29, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 29, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 3840 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 30, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 30, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 3968 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 31, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 31, Y block offset 10 Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 4096 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 32, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 32, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 4224 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 33, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 33, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 4352 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 34, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 34, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 4480 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 35, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 35, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 4608 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 36, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 36, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 4736 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 37, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 37, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 4864 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 38, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 38, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 4992 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 39, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 39, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 5120 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 40, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 40, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 5248 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 41, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 41, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 5376 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 42, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 42, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 5504 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 43, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 43, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 5632 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 44, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 44, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 5760 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 45, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 45, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 5888 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 46, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 46, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 6016 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 47, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 47, Y block offset 10 Warning 1: TIFFReadDirectory:z14400.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 6144 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 48, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 48, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 6272 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 49, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 49, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 6400 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 50, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 50, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 6528 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 51, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 51, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 6656 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 52, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 52, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 6784 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 53, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 53, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 6912 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 54, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 54, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 7040 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 55, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 55, Y block offset 10 ERROR 1: z14400.tif:DumpModeDecode: Not enough data for scanline 7168 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: IReadBlock failed at X offset 56, Y offset 10 ERROR 1: GetBlockRef failed at X block offset 56, Y block offset 10 C

Change History (3)

comment:1 by sprice, 16 years ago

Here are some more sample points. It works fine with a 4096x4096px image, but has a hiccup with a 8192x8192px image.

$ ./ZonePlate -w 4096 -h 4096 -s 2 -o z4096.gray

$ convert -size 4096x4096 z4096.gray z4096.png

$ gdal_translate z4096.png z4096.tif Input file size is 4096, 4096 0...10...20...30...40...50...60...70...80...90...100 - done.

$ gdaladdo -r average z4096.tif 2 4 8 16 32 64 128 0...10...20...30...40...50...60...70...80...90...100 - done.

$ ./ZonePlate -w 8192 -h 8192 -s 2 -o z8192.gray

$ convert -size 8192x8192 z8192.gray z8192.png

$ gdal_translate z8192.png z8192.tif Input file size is 8192, 8192 0...10...20...30...40...50...60...70...80...90...100 - done.

$ gdaladdo -r average z8192.tif 2 4 8 16 32 64 128 0...10.Warning 1: TIFFReadDirectory:z8192.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength ..20...30...40...50...60...70...80...90...100 - done.

comment:2 by Even Rouault, 16 years ago

I can reproduce your error on z8192.tif when building GDAL with my system libtiff (3.8.2-7ubuntu2).

But everything is fine when building GDAL with internal libtiff. So this is clearly a libtiff bug.

You should consider either upgrading your system libtiff, either building GDAL with internal libtiff.

comment:3 by Even Rouault, 16 years ago

Resolution: fixed
Status: newclosed

Closing. Reopen if you reproduce it with internal libtiff.

Note: See TracTickets for help on using tickets.