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.28k stars 2.96k forks source link

Properties of invalid layer crashes QGIS #58043

Closed kudlav closed 1 month ago

kudlav commented 1 month ago

What is the bug or the crash?

User Feedback

Trying to display Properties of invalid layer crashes QGIS.

Reproducible: Always on multiple sources. Reload QGIS button doesn't reload QGIS, only closes QGIS.

Steps to reproduce the issue

  1. Layer → Add Layer → Add Raster Layer
  2. Select OGC API as a Source Type
  3. Put the given URL into the OGC API Endpoint: https://maps.gnosis.earth/ogcapi/collections/Daraa
  4. Add
  5. Add all items
  6. Go through rows, on a item with a question mark right-click, select Properties

Versions

QGIS Info QGIS Version: 3.38.0-Grenoble QGIS code revision: 37aa6188bc Compiled against Qt: 5.15.13 Running against Qt: 5.15.13 Compiled against GDAL: 3.9.0 Running against GDAL: 3.9.0

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

Supported QGIS version

New profile

Additional context

Report Details

Python Stack Trace

Windows fatal exception: access violation

Current thread 0x00002a14 (most recent call first):
  <no Python frame>

Stack Trace


QgsMapToolShapeRectangleCenterMetadata::category :
QgsPointCloudLayerProperties::syncToLayer :
QgsMapToolShapeRectangleCenterMetadata::category :
QgsRasterLayerProperties::addPropertiesPageFactory :
QgisApp::showLayerProperties :
QgisApp::layerProperties :
QObject::qt_static_metacall :
QAction::activate :
QMenu::actionGeometry :
QMenu::actionGeometry :
QMenu::mouseReleaseEvent :
QWidget::event :
QMenu::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QApplicationPrivate::sendMouseEvent :
QSizePolicy::QSizePolicy :
QSizePolicy::QSizePolicy :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QGuiApplicationPrivate::processMouseEvent :
QWindowSystemInterface::sendWindowSystemEvents :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QMenu::exec :
QMenu::exec :
QgsLayerTreeView::contextMenuEvent :
QWidget::event :
QFrame::event :
QAbstractItemView::viewportEvent :
QCoreApplicationPrivate::sendThroughObjectEventFilters :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QSizePolicy::QSizePolicy :
QSizePolicy::QSizePolicy :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QGuiApplicationPrivate::processMouseEvent :
QWindowSystemInterface::sendWindowSystemEvents :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main :
BaseThreadInitThunk :
RtlUserThreadStart :
agiudiceandrea commented 1 month ago

The issue doesn't occur using QGIS 3.34.8. QGIS 3.38.0 is also slower than QGIS 3.34.8 to retrieve the layers' list and to add the layers to the map.

kudlav commented 1 month ago

I can confirm that obtaining the list of layers or adding layers takes a few minutes and during that time, QGIS app is unresponsive.