Opened 12 years ago

Closed 12 years ago

#4831 closed defect (fixed)

GDALBuildOverviews fails if .rrd exists

Reported by: rblazek Owned by: Even Rouault
Priority: normal Milestone: 1.9.2
Component: GDAL_Raster Version: 1.9.1
Severity: normal Keywords:
Cc: rblazek

Description

If GDALBuildOverviews() is called on a dataset which has already .rrd file, the .rrd file is deleted, overviews are not created but GDALBuildOverviews() returns CE_None. Next call to GDALBuildOverviews() without reopening the dataset causes crash somewhere in GDAL. It seems that poBand in GDALDefaultOverviews::BuildOverviews() is somehow corrupted or even wrong pointer and calling its methods is causing crash.

This was observed in QGIS, but the first part (not creating overviews) can also be reproduced with gdaladdo.

Change History (2)

comment:1 by Even Rouault, 12 years ago

Owner: changed from warmerdam to Even Rouault
Status: newassigned

comment:2 by Even Rouault, 12 years ago

Milestone: 1.9.2
Resolution: fixed
Status: assignedclosed

trunk r24989 ".aux overviews: avoid destroying existing overviews when asking twice in a row to build overviews for exactly the same overview levels (#4831)"

branches/1.9 r24990 ".aux overviews: avoid destroying existing overviews when asking twice in a row to build overviews for exactly the same overview levels (#4831)"

Note: See TracTickets for help on using tickets.