Bug report #15444
QGIS crashes with NAN values
|Affected QGIS version:||2.16.1||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||Yes||Copied to github as #:||23370|
I have some monthly precipitation raster layers1 with "NAN" values where there isn't calculated values.
When one of this layers is loaded, it's showed fine in grey scale, but when I try styling a raster layer with pseudocolor, QGIS crashes. Tryed in Ubuntu 16.04 - QGIS 2.16.1 I got "segment violation". In Windows 7 - QGIS 2.16.0, "Minidump Written to C"
I've attached a file for testing.
Don't crash raster shader with nan or inf values (fix #15444)
(cherry-picked from 34ebe124ff62956095941b5bb76809c6ba4b1a0f)