-
-
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
Legend causing a crash #32913
Comments
@chrisodell , can you attach a test project to duplicate the crash? |
I've only got the one WFS in here. Its the one that seems to be causing my problems |
Crash confirmed.
|
OK. That's a start! Now I'm not sure what is causing it. Any ideas??? it's doing my head in. |
The crash only occurs if the layer has the filter by map content option switched on. |
Here's an updated (and simplified) test project: Steps to reproduce the crash:
@nyalldawson , I've been able to narrow the problem down to those conditions / steps, but fail to get any further. Hope this helps out. |
@nyalldawson , fixing this would likely fix three other reported issues: https://github.com/qgis/QGIS/search?q=QRasterPaintEngine%3A%3AtransformChanged&state=open&type=Issues |
@nyalldawson , looking into this some more, what appears to be happening here is that somehow QgsMapHitTest::runHitTestLayer runs in its own thread and because it's fetching from a remote provider it doesn't have time to complete its job prior to the legend item rendering based on the filtered symbols being fetched. |
Thanks for the reproducer @nirvn |
I had the same problem with a fatal crash every time, even on newer versions
Just tell me how it worked. I'm just an QGIS user and this is my first GitHub forum message. No programming idea at all |
I use a WFS service. https://mapprod3.environment.nsw.gov.au/arcgis/services/Planning/EPI_Primary_Planning_Layers/MapServer/WFSServer?request=GetCapabilities&service=WFS
It works fine until I go into my layout and add a legend. Once the legend is added - the file crashes. Everytime.
Is it the WFS or QGIS causing the problem.
QGIS version
3.8.1-Zanzibar
QGIS code revision
dcd95cc
Compiled against Qt
5.11.2
Running against Qt
5.11.2
Compiled against GDAL/OGR
2.4.1
Running against GDAL/OGR
2.4.1
Compiled against GEOS
3.7.2-CAPI-1.11.0
Running against GEOS
3.7.2-CAPI-1.11.0 b55d2125
PostgreSQL Client Version
9.2.4
SpatiaLite Version
4.3.0
QWT Version
6.1.3
QScintilla2 Version
2.10.8
Compiled against PROJ
5.2.0
Running against PROJ
Rel. 5.2.0, September 15th, 2018
OS Version
Windows 10 (10.0)
Stack Trace
QRasterPaintEngine::transformChanged :
QPainter::translate :
QGraphicsScene::drawForeground :
QGraphicsScene::dragMoveEvent :
QGraphicsItem::dragMoveEvent :
QGraphicsEffectSource::draw :
QgsLayoutEffect::draw :
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 :
Qd OS versions**WidgetPrivate::drawWidget :
QWidgetPrivate::paintSiblingsRecursive :
QWidgetPrivate::drawWidget :
QWidgetPrivate::paintSiblingsRecursive :
QWidgetPrivate::paintSiblingsRecursive :
QWidgetPrivate::drawWidget :
QApplication::windowIcon :
QWidgetPrivate::syncBackingStore :
QSizePolicy::QSizePolicy :
QSizePolicy::QSizePolicy :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QGuiApplicationPrivate::processExposeEvent :
QWindowSystemInterface::sendWindowSystemEvents :
QWindowSystemInterface::flushWindowSystemEvents :
DispatchMessageW :
DispatchMessageW :
GetSystemMetrics :
KiUserCallbackDispatcher :
NtUserDispatchMessage :
DispatchMessageW :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main :
BaseThreadInitThunk :
RtlUserThreadStart :
QGIS Info
QGIS Version: 3.8.1-Zanzibar
QGIS code revision: dcd95cc
Compiled against Qt: 5.11.2
Running against Qt: 5.11.2
Compiled against GDAL: 2.4.1
Running against GDAL: 2.4.1
System Info
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 10.0.17763
The text was updated successfully, but these errors were encountered: