qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.35k stars 2.98k forks source link

Windows fatal exception while rendering paletted raster in Windows 11, QGIS 3.28.4 #52265

Closed MikeSilberbauer closed 1 year ago

MikeSilberbauer commented 1 year ago

What is the bug or the crash?

Python Stack Trace Windows fatal exception: access violation Possibly out of memory with virtual rasters?

Hardware: HP AMD Ryzen 7 2700 Eight-Core Processor 16.0 GB RAM Windows 11 22H2 22621.1413

Steps to reproduce the issue

User Feedback

raster rendering of strahler order with different styling for selected thresholds on virtual layers

Report Details

Python Stack Trace

Windows fatal exception: access violation

Thread 0x00004c28 (most recent call first):
<no Python frame>

Stack Trace


QgsPalettedRasterRenderer::block :
QgsBrightnessContrastFilter::block :
QgsHueSaturationFilter::block :
QgsRasterResampleFilter::block :
QgsRasterProjector::block :
QgsRasterIterator::readNextRasterPartInternal :
QgsRasterDrawer::draw :
QgsRasterDrawer::draw :
QgsRasterLayerRenderer::render :
QgsMapRendererParallelJob::renderLayerStatic :
QgsProfilePlotRenderer::replaceSourceInternal :
QgsMapRendererParallelJob::renderingFinished :
QgsMapRendererParallelJob::takeLabelingResults :
QtConcurrent::ThreadEngineBase::run :
QThreadPoolPrivate::reset :
QThread::start :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info QGIS Version: 3.28.4-Firenze QGIS code revision: fd0fb72ab3 Compiled against Qt: 5.15.3 Running against Qt: 5.15.3 Compiled against GDAL: 3.6.2 Running against GDAL: 3.6.2

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

Versions

You are running the current version of QGIS The current available LTR version of QGIS is 3.28.4. The latest available version of QGIS is 3.30.0. We are working on 3.31-Master. It will go into feature freeze on 2023-05-26 12:00:00 UTC and be released as 3.32 on 2023-06-23 12:00:00 UTC. Details on changes can be found on github at https://github.com/qgis/QGIS/commits/master.

Supported QGIS version

New profile

Additional context

Not looking for support, just following the suggestion in the QGIS ended unexpectedly window.

roya0045 commented 1 year ago

Does it happen consistently?

agiudiceandrea commented 1 year ago

@MikeSilberbauer could you provide a sample raster layer with which the issue does occur? Have you tried if the issue does occur also using a new QGIS user profile?

MikeSilberbauer commented 1 year ago

This happened with the dataset from the Australian Water School QGIS essentials for water modelling, presented by Hans van der Kwast. The course is currently under way, so I am not sure if I am allowed to share the dataset, "Moggill Creek/Gold Creek streams and catchment". A number of rasters were open, such as Strahler generated using PCRaster | Hydrological and transport operations | streamorder. There were also on-the-fly Strahler rasters from Raster | Raster Calculator. I was not monitoring memory usage but when I restarted the session I saw that it reached 14.5 of 16 Gb when I reached this stage of the coursework: I then removed some superfluous layers. The error did not reoccur. I am happy to close the issue.

roya0045 commented 1 year ago

The stacktrace would be consistend with a lack of available memory, so what you are saying isn't too surprising. Thanks for the follow-up.