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.58k stars 3k forks source link

Check "Only show items inside current atas feature" in legend. #58088

Open jmmarcotte-GIS opened 3 months ago

jmmarcotte-GIS commented 3 months ago

What is the bug or the crash?

User Feedback

I checked "Only show items inside current atas feature" in my legend. Then I loaded the atlas and it crashed. When I don't check it works fine

Report Details

Python Stack Trace

Windows fatal exception: access violation

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

Stack Trace


QgsLayoutItemLegend::doUpdateFilterByMap :
QgsLayoutItemLegend::paint :
QGraphicsScene::dragMoveEvent :
QGraphicsScene::drawItems :
QGraphicsScene::drawItems :
QGraphicsView::paintEvent :
QgsLayoutView::paintEvent :
QWidget::event :
QFrame::event :
QGraphicsView::viewportEvent :
QCoreApplicationPrivate::sendThroughObjectEventFilters :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QWidgetPrivate::drawWidget :
QWidgetPrivate::paintSiblingsRecursive :
QWidgetPrivate::drawWidget :
QWidgetPrivate::paintSiblingsRecursive :
QWidgetPrivate::drawWidget :
QWidgetPrivate::paintSiblingsRecursive :
QWidgetPrivate::drawWidget :
QWidgetPrivate::paintSiblingsRecursive :
QWidgetPrivate::drawWidget :
QWidgetPrivate::moveRect :
QWidget::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QCoreApplicationPrivate::sendPostedEvents :
QGraphicsScene::~QGraphicsScene :
QObject::event :
QGraphicsScene::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QCoreApplicationPrivate::sendPostedEvents :
qt_plugin_query_metadata :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info QGIS Version: 3.34.6-Prizren QGIS code revision: 623828f5 Compiled against Qt: 5.15.13 Running against Qt: 5.15.13 Compiled against GDAL: 3.8.5 Running against GDAL: 3.8.5

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

Steps to reproduce the issue

Go to Print composer Click on legend item Check "Only show items inside current atas feature" Load Atlas See error

Versions

QGIS Info QGIS Version: 3.34.6-Prizren QGIS code revision: 623828f5 Compiled against Qt: 5.15.13 Running against Qt: 5.15.13 Compiled against GDAL: 3.8.5 Running against GDAL: 3.8.5

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

Supported QGIS version

New profile

Additional context

No response

agiudiceandrea commented 3 months ago

@jmmarcotte-GIS , thanks for reporting. Please provide a sample project and layers with which the issue occurs.

jamesmica commented 3 months ago

Still an issue, but you can actually use this feature by selecting a linked map BEFORE checking "Only show items inside current atas feature". (click Legend --> Linked map, which is probably empty by defaut)

github-actions[bot] commented 2 weeks ago

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue. In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue. If there is no further activity on this issue, it will be closed in a week.