Opened 18 years ago

Closed 18 years ago

#1068 closed defect (fixed)

CADRG ovr Creation Fails on Windows - EW Bug #1508

Reported by: mclark@… Owned by: potts@…
Priority: highest Milestone:
Component: Algorithms/Functionality Version: 1.6.5
Severity: critical Keywords:
Cc:

Description

This issue is only occurring on the Windows platform.  The CADRG file at issue 
was provided on the portable hard drive we sent, and can be found in the 
following directory path: \299\cadrg_ovr_creation_fails\AFRICATLM\RPF\A.TOC.  
When img2rr is run for entry 23 in the CADRG file, it always fails right after 
r2 is created with the same error:
E:\>img2rr -e 23 \\ewnas\ewdemo\4_1\CADRG\ovr\AFRICATLM\RPF\A.TOC
creating r1...
100%
creating r2...
100%
ossimTiffOverviewBuilder::writeRn Error writing directory!
ossimTiffOverviewBuilder::buildOverview file ossimTiffOverviewBuilder.cpp line 4
08
Error creating reduced res set!

Martin Chapman debugged this issue and found that ossimTiffOverviewBuilder.cpp, 
line 1249
if (!TIFFWriteDirectory(tif)). TIFFWriteDirectory() calls malloc() 
and returns an out of memory error.

Change History (2)

comment:1 by mclark@…, 18 years ago

This issue is EarthWhere's #3 priority for resolution.

comment:2 by potts@…, 18 years ago

Resolution: fixed
Status: newclosed
This appears to be a libtiff problem.  Running --compression-type PACKBITS for img2rr seems to allow 
overviews to be generated for entry 23 without any problems.
Note: See TracTickets for help on using tickets.