Ticket #311 (closed bug: fixed)

Opened 7 years ago

Last modified 4 years ago

Building raster pyramids crashes QGIS

Reported by: anonymous Owned by: timlinux
Priority: critical: causes crash or data corruption Milestone:
Component: Rasters Version:
Keywords: Cc:
Platform Version: Platform: All
Must Fix for Release: Awaiting user input:

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

Change History

Changed 7 years ago by anonymous

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

Changed 7 years ago by anonymous

  • platform changed from Debian to All

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.

Changed 7 years ago by anonymous

  • status changed from new to closed
  • resolution set to fixed

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).

Changed 4 years ago by anonymous

  • milestone Version 0.8 deleted

Milestone Version 0.8 deleted

Note: See TracTickets for help on using tickets.