Opened 18 years ago
Last modified 18 years ago
#1216 closed defect (fixed)
libtiff messages can get lost (stderr)
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
Messages generated by libtiff are not being routed to the GDAL handlers when a JPEG 2000 image contains a poorly formed GeoTIFF and a GeoTIFF/TIFF image has not been attempted (GTiffOneTimeInit is not being called).
Attachments (1)
Change History (4)
comment:2 by , 18 years ago
Scott, I have made changes to ensure that OneTimeInit gets called for in memory geotiff from jpeg2000,etc. But though I tested with your file I wasn't able to produce any warnings or errors. Isolating the geotiff contents to a separate file, everything in it looked fine.
comment:3 by , 18 years ago
I should have mentioned that I found this using GDAL 1.3.1 and the associated libtiff and libgeotiff. In libtiff 3.8.2 (and GDAL 1.3.2) there is code that will prevent the errors from occurring. You may need to modify tif_dirread.c near the "wonky" comment which now returns when nstrips is calculated to be zero instead of attempting to allocate zero bytes. I submitted a "bug" to libtiff about modifying the comment to explain a possible wonky situation.
Note:
See TracTickets
for help on using tickets.