[Gdal-dev] Use of assert() on troublesome files

Ben Discoe ben at vterrain.org
Fri Mar 5 01:23:17 EST 2004


I was trying to read it with GDALOpen, but i can demonstrate the problem
from the command-line as well.  This is with GDAL 1.2.0a (a few days ago) on
Windows XP:

> gdalwarp kaena_pt.tif kaena_pt2.tif
Warning 1: TIFFReadDirectory:kaena_pt.tif: wrong data type 1 for
"XMLPacket"; tag ignored
Creating output file is that 5371P x 3251L.
Warning 1: TIFFReadDirectory:kaena_pt.tif: wrong data type 1 for
"XMLPacket"; tag ignored
ERROR 1: JPEGLib:JPEG parameter struct mismatch: library thinks size is 464,
caller expects 432
Assertion failed: sp->cinfo.comm.is_decompressor, file tif_jpeg.c, line 606

This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.

-Ben

> -----Original Message-----
> From: Chapman, Martin
> Sent: Friday, March 05, 2004 12:51 AM
> To: gdal-dev at remotesensing.org
> Subject: RE: [Gdal-dev] Use of assert() on troublesome files
> 
> Ben,
> 
> I was able to open this file using GDAL fine.  What problem 
> were you having?
> 
> Martin
> 
> -----Original Message-----
> From: Ben Discoe [mailto:ben at vterrain.org] 
> Sent: Thursday, March 04, 2004 8:01 PM
> To: gdal-dev at remotesensing.org
> Subject: [Gdal-dev] Use of assert() on troublesome files
> 
> This evening i was trying to read a TIF file from a data agency, here:
> 
>
ftp://keone.soest.hawaii.edu/pub/coastal_ftp/Imagery/Oahu/GeoTiffs/kaenapt.z
ip
>
> It crashes GDAL (assert failure) down inside the TIF code.




More information about the Gdal-dev mailing list