Re: [Qgis-user] Building image pyramids - qgis crashing

2008-03-09 Thread Oleg Gusev
Am Samstag 08 März 2008 18:20:34 schrieb Maciej Sieczka:

 In Trac [1] Frank says the bug is fixed in GDAL 1.4.4 with internal
 libtiff, or libtiff 3.9 (from CVS).

 I confirm. Checked in QGIS trunk r8190, built against GDAL 1.5.0+SVN
 2008-03-04 (internal libtiff). No crashes building overviews in QGIS
 whatsoever. 

 Hi Maciek,

  please try to build the overviews for a tiled compressed 3 band geotiff
  (gdal_translate -co compress=deflate -co tiled=yes) 
  It segfaults for most images i've tried using gdal-1.5.0

Oleg.
___
Qgis-user mailing list
Qgis-user@lists.qgis.org
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user


Re: [Qgis-user] Building image pyramids - qgis crashing

2008-03-09 Thread Oleg Gusev
Am Samstag 08 März 2008 19:39:38 schrieb Maciej Sieczka:

 I'm attaching a smallish one for you to try if it crashes your QGIS.

This file is probably too small to cause any problems, but i routinely
get segfaults with bigger .tiff files.

 Oleg.

---
$ gdalinfo --version
GDAL 1.5.0, released 2007/12/18

$ gdalinfo FOO.tif
Driver: GTiff/GeoTIFF
Files: FOO.tif
Size is 8183, 5613
...
Band 1 Block=8183x1 Type=Byte, ColorInterp=Red
  NoData Value=255
Band 2 Block=8183x1 Type=Byte, ColorInterp=Green
  NoData Value=255
Band 3 Block=8183x1 Type=Byte, ColorInterp=Blue
  NoData Value=255

$ gdaladdo  FOO.tif 2 4 8 16 32
0...10...20.Warning 1: TIFFReadDirectory:FOO.tif: Wrong StripByteCounts 
field, ignoring and calculating from imagelength
ERROR 1: FOO.tif:DumpModeDecode: Not enough data for scanline 256
ERROR 1: TIFFReadEncodedTile() failed.
...
ERROR 1: TIFFReadEncodedTile() failed.
ERROR 1: IReadBlock failed at X offset 8, Y offset 19
ERROR 1: GetBlockRef failed at X block offset 8, Y block offset 19
ERROR 1: FOO.tif:DumpModeDecode: Not enough data for scanline 1152
...
Segmentation fault
___
Qgis-user mailing list
Qgis-user@lists.qgis.org
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user