Bug report #18364

Crash when symbolizing raster with single band pseudocolor and max=infinity

Added by Spencer Gardner over 3 years ago. Updated almost 3 years ago.

Affected QGIS version:3.0.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:worksforme
Crashes QGIS or corrupts data:Yes Copied to github as #:26254


User Feedback

Loaded a tif raster where some cells have a value of infinity and when I tried to symbolize as single band pseudocolor it crashed. Data type is Float64. Example file attached.

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 Version: 3.0.0-Girona
QGIS code revision: 001c80b0c3
Compiled against Qt: 5.9.2
Running against Qt: 5.9.2
Compiled against GDAL: 2.2.3
Running against GDAL: 2.2.3

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

example.tif (57.6 KB) Spencer Gardner, 2018-03-07 12:12 AM


#1 Updated by Giovanni Manghi over 3 years ago

  • Priority changed from Normal to High

#2 Updated by Giovanni Manghi over 3 years ago

  • Operating System deleted (Windows)

Confirmed here. On 2.18 it is no even possible open its properties ("bad allocation").

#3 Updated by Even Rouault almost 3 years ago

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

I can't reproduce a crash with latest master

Also available in: Atom PDF