[Gdal-dev] Memory problem with ECW images

Fabien Dachicourt support at geoimage.fr
Wed Sep 20 12:46:14 EDT 2006


Hi,
Our software browses large images through GDAL library, it reads images by 
blocks at any given resolution with GDALDatasetRasterIO and frees blocks 
which are out of view. It works pretty fine, it allows to control the exact 
amount of data in memory.
However we notice some large memory consumption with ECW images, it looks 
like there is a big memory leak : all loaded tiles are stored somewhere in 
memory and never free.
Exactly the same RGB image in TIFF format works fine, without memory 
overflow.

Is it a memory leak or any hidden cache in the ECW libraries or in the ECW 
driver ? is there any way to control the size of this cache ?

The GDAL cache is set to 2MB.
The GDAL version is 1.3.2.0 (FWTools 1.0.5).

Thanks in advance for any help,
Fabien 





More information about the Gdal-dev mailing list