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.66k stars 3.02k forks source link

QGIS crashes regularly (3.40.1) #59599

Open tombcd opened 3 days ago

tombcd commented 3 days ago

What is the bug or the crash?

QGIS crashes after opening the project and just browsing/panning the map. The same thing happened with the previous RC release.

Steps to reproduce the issue

  1. Open the project.
  2. Pan the map, zoom in, zoom out etc.
  3. QGIS crashes in a while.

Versions

QGIS version3.40.1-Bratislava
QGIS code revision989853a7
 
Libraries
Qt version5.15.13
Python version3.12.7
GDAL/OGR version3.9.3
PROJ version9.5.0
EPSG Registry database versionv11.016 (2024-08-31)
GEOS version3.13.0-CAPI-1.19.0
SQLite version3.46.1
PDAL version2.8.1
PostgreSQL client version16.2
SpatiaLite version5.1.0
QWT version6.3.0
QScintilla2 version2.14.1
OS versionWindows 10 Version 2009
 
Active Python plugins
BDOT10k_GML_SHP_Loader2.0.1
deepness0.6.4
dimensioning0.2
geokodowanie_adresow1.2.3
gissupport_plugin2.5
pobieracz_danych_gugik1.2.7
quick_map_services0.19.36
wody_polskie_wms1.0.3
db_manager0.1.20
grassprovider2.12.99
MetaSearch0.3.6
processing2.12.99

Supported QGIS version

New profile

Additional context

User Feedback

The crash occured while browsing the project contents.

Report Details

Python Stack Trace

Windows fatal exception: access violation

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

Stack Trace


QMutex::lock :
QCoreApplication::postEvent :
QObject::qt_static_metacall :
QgsTileDownloadManagerReply::requestFinished :
QgsTileDownloadManagerReply::header :
QMetaCallEvent::placeMetaCall :
QObject::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QCoreApplicationPrivate::sendPostedEvents :
QEventDispatcherWin32::processEvents :
QEventLoop::exec :
QgsRasterDataProvider::block :
QgsSingleBandColorDataRenderer::block :
QgsBrightnessContrastFilter::block :
QgsHueSaturationFilter::block :
QgsRasterResampleFilter::block :
QgsRasterProjector::block :
QgsRasterIterator::readNextRasterPartInternal :
QgsRasterIterator::readNextRasterPart :
QgsRasterDrawer::draw :
QgsRasterDrawer::draw :
QgsRasterLayerRendererFeedback::onNewData :
QObject::qt_static_metacall :
QgsTileDownloadManagerReply::requestFinished :
QgsTileDownloadManagerReply::header :
QMetaCallEvent::placeMetaCall :
QObject::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QCoreApplicationPrivate::sendPostedEvents :
QEventDispatcherWin32::processEvents :
QEventLoop::exec :
QgsRasterDataProvider::block :
QgsSingleBandColorDataRenderer::block :
QgsBrightnessContrastFilter::block :
QgsHueSaturationFilter::block :
QgsRasterResampleFilter::block :
QgsRasterProjector::block :
QgsRasterIterator::readNextRasterPartInternal :
QgsRasterIterator::readNextRasterPart :
QgsRasterDrawer::draw :
QgsRasterDrawer::draw :
QgsRasterLayerRendererFeedback::onNewData :
QObject::qt_static_metacall :
QgsTileDownloadManagerReply::requestFinished :
QgsTileDownloadManagerReply::header :
QMetaCallEvent::placeMetaCall :
QObject::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QCoreApplicationPrivate::sendPostedEvents :
QEventDispatcherWin32::processEvents :
QEventLoop::exec :
QgsRasterDataProvider::block :
QgsSingleBandColorDataRenderer::block :
QgsBrightnessContrastFilter::block :
QgsHueSaturationFilter::block :
QgsRasterResampleFilter::block :
QgsRasterProjector::block :
QgsRasterIterator::readNextRasterPartInternal :
QgsRasterIterator::readNextRasterPart :
QgsRasterDrawer::draw :
QgsRasterDrawer::draw :
QgsRasterLayerRendererFeedback::onNewData :
QObject::qt_static_metacall :
QgsTileDownloadManagerReply::requestFinished :
QgsTileDownloadManagerReply::header :
QMetaCallEvent::placeMetaCall :
QObject::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QCoreApplicationPrivate::sendPostedEvents :
QEventDispatcherWin32::processEvents :
QEventLoop::exec :
QgsRasterDataProvider::block :
QgsSingleBandColorDataRenderer::block :
QgsBrightnessContrastFilter::block :
QgsHueSaturationFilter::block :
QgsRasterResampleFilter::block :
QgsRasterProjector::block :
QgsRasterIterator::readNextRasterPartInternal :
QgsRasterIterator::readNextRasterPart :
QgsRasterDrawer::draw :
QgsRasterDrawer::draw :
QgsRasterLayerRendererFeedback::onNewData :
QObject::qt_static_metacall :
QgsTileDownloadManagerReply::requestFinished :
QgsTileDownloadManagerReply::header :
QMetaCallEvent::placeMetaCall :
QObject::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QCoreApplicationPrivate::sendPostedEvents :
QEventDispatcherWin32::processEvents :
QEventLoop::exec :
QgsRasterDataProvider::block :
QgsSingleBandColorDataRenderer::block :
QgsBrightnessContrastFilter::block :
QgsHueSaturationFilter::block :
QgsRasterResampleFilter::block :
QgsRasterProjector::block :
QgsRasterIterator::readNextRasterPartInternal :
QgsRasterIterator::readNextRasterPart :
QgsRasterDrawer::draw :
QgsRasterDrawer::draw :
QgsRasterLayerRendererFeedback::onNewData :
QObject::qt_static_metacall :
QgsTileDownloadManagerReply::requestFinished :
QgsTileDownloadManagerReply::header :
QMetaCallEvent::placeMetaCall :
QObject::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QCoreApplicationPrivate::sendPostedEvents :
QEventDispatcherWin32::processEvents :
QEventLoop::exec :
QgsRasterDataProvider::block :
QgsSingleBandColorDataRenderer::block :
QgsBrightnessContrastFilter::block :
QgsHueSaturationFilter::block :
QgsRasterResampleFilter::block :
QgsRasterProjector::block :
QgsRasterIterator::readNextRasterPartInternal :
QgsRasterIterator::readNextRasterPart :
QgsRasterDrawer::draw :
QgsRasterDrawer::draw :
QgsRasterLayerRenderer::render :
QgsMapRendererParallelJob::renderLayerStatic :
QgsProfilePlotRenderer::replaceSourceInternal :
QgsMapRendererParallelJob::renderingFinished :
QgsProfilePlotRenderer::cancelGenerationWithoutBlocking :
QtConcurrent::ThreadEngineBase::run :
QThreadPoolPrivate::reset :
QThread::start :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info QGIS Version: 3.40.1-Bratislava QGIS code revision: 989853a7 Compiled against Qt: 5.15.13 Running against Qt: 5.15.13 Compiled against GDAL: 3.9.3 Running against GDAL: 3.9.3

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

nicogodet commented 3 days ago

Could you retry with a new QGIS profile (I see some python plugins installed in your ticket) ?

Does it happens with all project or a specific one ?

tombcd commented 3 days ago

Here's what I found. Tried with a fresh profile, with the same project - it crashes same way. Then, with that new profile, I have identified the WMS layer which, when enabled, makes QGIS crash after a while (I removed most of the other layers and left only 2 WMS layers).

Then, with that new profile, I created a new, empty project and added the same two WMS services as above and all works fine. So maybe there's some incompatibility issue within my 'old' project. I'll try to recreate my main project in that fresh environment so I'll be able to work - so it's for you to decide whether we should investigate it further or not.

andreasneumann commented 3 days ago

@tombcd Can you please share the project with the WMS - and maybe the WMS URL separately?

tombcd commented 2 days ago

PROJECT_bugreport.zip I have attached the project file - enable layer "MEDIA" and try to zoom-in, zoom-out, pan, etc. WMS service is:

https://wms.szamotuly.com.pl/cgi-bin/szamotuly-gesut

andreasneumann commented 2 days ago

@tombcd - I can confirm that with QGIS 3.40.1 your project crashes almost immediately after enabling the WMS, whereas with QGIS 3.34.13 (LTR) it runs stable.

andreasneumann commented 2 days ago

Trying also master (https://github.com/qgis/QGIS/commit/5ed3627bc0) - it also crashes after loading the WMS almost immediately.

So something seems to be broken in 3.40x with respect to WMS.