-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QGIS crash when adding a raster with non-nearest neighbor default resampling #33711
Comments
@nyalldawson , it might be a regression from your resampling work. |
Confirmed to crash on both my windows (osgeo4w build) and linux (self-built) OSes. |
Some more debugging information output (debug output from the QgsGdalProvider::readBlock(...) function):
|
Here's the same debug info when loading a raster with nearest neighbor resampling (i.e. not leading to a crash):
Here, width == tmpWidth (835) whereas width != tmpWidth in the debug info from the scenario that crashes QGIS. @nyalldawson , is width != tmpWidth normal? |
I can reproduce the crash on current master/linux. |
I just checked against 3.10.2 on windows, it crashes there too. |
TODO: completely junk this inefficient secondary resampler and use GDAL's resampling instead Fixes qgis#33711
TODO: completely junk this inefficient secondary resampler and use GDAL's resampling instead Fixes #33711
Describe the bug
Just stumbled on a serious raster crasher, whereas if the default zoomed out resampling is set to anything but nearest neighbor, QGIS dies loading the raster.
How to Reproduce
QGIS and OS versions
Confirmed on linux and windows, QGIS 3.10 (LTR) and master.
Additional context
gdb output:
The text was updated successfully, but these errors were encountered: