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.02k stars 2.92k forks source link

snapping tool activation crashes qgis #57322

Open CoosForest opened 2 months ago

CoosForest commented 2 months ago

What is the bug or the crash?

turning on snapping tool seems to be a persistant cause of crashing updated to qgis 3.36.2 in case it would solve issue same problem turn on edit for polygon layer>click on move tool>click on snapping tool.... crash

Steps to reproduce the issue

open project select vector layer turn on edit turn on snapping tool

Versions

3.36.2 but this has been an issue with previous versions too

User Feedback

turning on snapping tool seems to be a persistant cause of crashing updated to qgis 3.36.2 in case it would solve issue same problem turn on edit for polygon layer>click on move tool>click on snapping tool.... crash It seems that I have reported this many many times. Perhaps I am doing something wrong. If you have advice, please email me at lake50@gmail.com

Report Details

Python Stack Trace

Windows fatal exception: access violation

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

Stack Trace


QgsExpression::evaluate :
QgsCategorizedSymbolRenderer::valueForFeature :
QgsCategorizedSymbolRenderer::originalSymbolForFeature :
QgsFeatureRenderer::willRenderFeature :
QgsPointLocator::rebuildIndex :
QgsPointLocator::init :
QgsPointLocator::prepare :
QgsPointLocator::edgesInRect :
QgsPointLocator::edgesInRect :
QgsSnappingUtils::snapToMap :
QgsMapMouseEvent::snapPoint :
QgsMapToolAdvancedDigitizing::canvasMoveEvent :
QgsMapCanvas::mouseMoveEvent :
QWidget::event :
QFrame::event :
QGraphicsView::viewportEvent :
QCoreApplicationPrivate::sendThroughObjectEventFilters :
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 :
QCoreApplication::exec :
main :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info QGIS Version: 3.36.2-Maidenhead QGIS code revision: 6d250527 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.22631

Supported QGIS version

New profile

Additional context

No response

nicogodet commented 2 months ago

Does it happen with every projects or a particular one ? Have you tried with a new user profile ?

If you can reproduce the crash every time, can you share the faulty project and precise steps to reproduce ?

CoosForest commented 2 months ago

It happens with many projects. It seems random. I have not been able to find any correlation with when it occurs. I did try a new profile today. But got the same results unfortunately. I even tried using a different layer. And I rebooted my PC just to go to the old school fix everything process.

brendan (mobile)


From: Nicolas Godet @.> Sent: Thursday, May 2, 2024 10:38:29 AM To: qgis/QGIS @.> Cc: CoosForest @.>; Author @.> Subject: Re: [qgis/QGIS] snapping tool activation crashes qgis (Issue #57322)

Does it happen with every projects or a particular one ? Have you tried with a new user profile ?

If you can reproduce the crash every time, can you share the faulty project and precise steps to reproduce ?

— Reply to this email directly, view it on GitHubhttps://github.com/qgis/QGIS/issues/57322#issuecomment-2090661908, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A5ERJUPCYING6J7RKPNLCHDZAJFWJAVCNFSM6AAAAABHDYUW3OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJQGY3DCOJQHA. You are receiving this because you authored the thread.Message ID: @.***>

elpaso commented 1 month ago

@CoosForest I am sorry but without a way to reliably/consistently reproduce the issue it's almost impossible to even try to fix it.

stafoo commented 1 month ago

Hello I'm experiencing this bug in QGIS 3.34.7, not only with polygon layers but with point/line vectors too.

In my case QGIS crashes (or becomes unusable for some time) when editing a feature and:

For this reason I think the problem is strictly related to the bug https://github.com/qgis/QGIS/issues/57230

I have attached a sample project. To reproduce the bug:

  1. open project, verify that snap is activated
  2. select the point layer A
  3. activate editing ad try to add a point;
  4. QGIS crashes

Layers B and C have virtual attributes used to classify the legends.

qgis_bug_57322_sample_project.zip

Hope it helps