Bug report #19445

crash when zooming in DEM

Added by Arnaud Pujol over 6 years ago. Updated over 6 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Rasters
Affected QGIS version:3.0.3 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:27273

Description

User Feedback

zooming in

Report Details

Crash ID: 5fe87e1d589013065bc457c1527801c73b2dab97

Stack Trace

QgsColorRampShader::shade :
QgsSingleBandPseudoColorRenderer::block :
QgsBrightnessContrastFilter::block :
QgsHueSaturationFilter::block :
QgsRasterResampleFilter::block :
QgsRasterProjector::block :
QgsRasterIterator::readNextRasterPart :
QgsRasterDrawer::draw :
QgsRasterLayerRenderer::render :
QgsMapRendererParallelJob::renderLayerStatic :
QgsMapRendererParallelJob::renderingFinished :
QgsArchive::zip :
QgsImageOperation::flipImage :
QtConcurrent::ThreadEngineBase::run :
QThreadPoolPrivate::reset :
QThread::start :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info
QGIS Version: 3.0.3-Girona
QGIS code revision: 8a899c8758
Compiled against Qt: 5.9.2
Running against Qt: 5.9.2
Compiled against GDAL: 2.2.4
Running against GDAL: 2.2.3

System Info
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 6.1.7601

test.zip (38.3 KB) Andrew McAninch, 2018-07-19 11:43 PM

Associated revisions

Revision 34b21918
Added by Nyall Dawson over 6 years ago

Fix raster stats calculation for very small extents compared with
pixel size, when a sample size is set

Refs #19445

Revision f3650e6b
Added by Nyall Dawson over 6 years ago

Fix potential crash in color ramp shader

Fixes #19445

Revision 1601e57d
Added by Nyall Dawson over 6 years ago

Fix raster stats calculation for very small extents compared with
pixel size, when a sample size is set

Refs #19445

(cherry-picked from 34b21918)

Revision 237af60a
Added by Nyall Dawson over 6 years ago

Fix potential crash in color ramp shader

Fixes #19445

(cherry-picked from f3650e6bb)

History

#1 Updated by Giovanni Manghi over 6 years ago

  • Category changed from Actions to Rasters
  • Status changed from Open to Feedback

You must test 3.2, if it persists please attach sample project and data. Thanks.

#2 Updated by Andrew McAninch over 6 years ago

I get this crash also, in QGIS 3.2 nighlty on windows7. It happens with a raster layer with specific symbology settings: single band pseudocolor, min/max set to a standard deviation and the "statistics extent" set to updated canvas. Then QGIS will crash when I zoom in 1:8 or more. Im guessing it may have to do with trying to calc the SD with too few cells in the extent? The crash also happens if you zoom in on a raster without those settings and then paste a bad symbology. no zooming required.

#3 Updated by Nyall Dawson over 6 years ago

Thanks Andrew - confirmed.

#4 Updated by Nyall Dawson over 6 years ago

  • Pull Request or Patch supplied changed from No to Yes

#5 Updated by Nyall Dawson over 6 years ago

  • % Done changed from 0 to 100
  • Status changed from Feedback to Closed

Also available in: Atom PDF