Bug report #311

Building raster pyramids crashes QGIS

Added by anonymous - about 14 years ago. Updated about 11 years ago.

Status:Closed
Priority:Low
Assignee:Tim Sutton
Category:Rasters
Affected QGIS version: Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:10370

Description

Clicking on "Create pyramids" causes QGIS to crash.

Raster: TIFF with JPEG DCT compression.

QGIS: 0.8 (rev. 5873)

Qt: 4.1.4

setProgress called with 0/0
Debug: qgsrasterlayer.cpp: 4175: (buildPyramids), Build pyramids:: Level: 2
Debug: qgsrasterlayer.cpp: 4176: (buildPyramids), x: 320
Debug: qgsrasterlayer.cpp: 4177: (buildPyramids), y: 214
Debug: qgsrasterlayer.cpp: 4178: (buildPyramids), exists :: 1
Debug: qgsrasterlayer.cpp: 4182: (buildPyramids) Building.....
setProgress called with 1/3
qgis: tif_jpeg.c:1299: JPEGPreEncode: Assertion @!sp->cinfo.comm.is_decompressor' failed.
Aborted

History

#1 Updated by anonymous - almost 14 years ago

Can you attach an example file?
What version of gdal are you using?

#2 Updated by anonymous - almost 14 years ago

this is a general compression bug in libgdal-1.3.2 and earlier.
gdalwarp/gdaladdo segfaults in 99% of cases on creating/modifying the tiled tiff files with jpeg, lzw or deflate compression.

#3 Updated by anonymous - almost 14 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

This problem in gdal has been fixed (see http://bugzilla.remotesensing.org/show_bug.cgi?id=757), but is only available in cvs versions of gdal (the latest gdal, 1.3.2, doesn't include it).

#4 Updated by Anonymous about 11 years ago

Milestone Version 0.8 deleted

Also available in: Atom PDF