[gdal-dev] TIFFMergeFieldInfo error when adding overviews to large tiff

Even Rouault even.rouault at mines-paris.org
Wed Apr 17 11:21:50 PDT 2013


Le mercredi 17 avril 2013 00:01:41, Eli Adam a écrit :
> On Tue, Apr 16, 2013 at 2:11 PM, Even Rouault
> 
> <even.rouault at mines-paris.org> wrote:
> > I've investigated a bit and I've discovered that while computing
> > overviews, libtiff constantly switches from TIFF "directories" (main
> > image, first overview,second overview, etc...). While doing this, it
> > calls each time client code to install its own TIFF tags (libgeotiff for
> > the geotiff tags, GDAL for the GDAL specific TIFF tags), but doesn't
> > reset its array of existing tags. So each time the tags are added again
> > and again, hence the huge memory allocation.
> > 
> > Could you test the attached patch (assuming you build GDAL with internal
> > libtiff) ?
> 
> I can apply and test this on linux but don't know how to do it on
> windows.  I usually use the nightly windows builds from Tamas.  Should
> I test this on linux?

It would have been good to test this on the environmenet on which you got the 
problem, but while it isn't committed, I can see it is not really doable for 
you.

> 
> > It would be good if you could also open a ticket in Trac about that
> > issue.
> 
> I've opened a ticket, http://trac.osgeo.org/gdal/ticket/5054

Thanks. I've attached my patch and I'm waiting for the review of a libtiff 
committer (a.k.a. Frank) before committing it in GDAL.

> 
> Eli


More information about the gdal-dev mailing list