Skip to content
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

QGIS crashes when adding non-spatial layer while spatial filter is active #33

Open
jutoth opened this issue Jan 3, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@jutoth
Copy link
Contributor

jutoth commented Jan 3, 2025

When i draw a filter polygon and afterwards add a non spatial layer, like a csv file to the layer tree, qgis crashes.

@kannes
Copy link
Contributor

kannes commented Jan 3, 2025

I can confirm.

...
Thread 1 "qgis" received signal SIGSEGV, Segmentation fault.
0x00007ffff65d6b20 in QgsMapToolCapture::currentLayerChanged(QgsMapLayer*) () from /usr/lib/libqgis_gui.so.3.40.1
(gdb) bt
#0  0x00007ffff65d6b20 in QgsMapToolCapture::currentLayerChanged(QgsMapLayer*) () at /usr/lib/libqgis_gui.so.3.40.1
#1  0x00007ffff46e359e in QtPrivate::QSlotObjectBase::call (this=0x5555570ff9a0, r=0x555556e4c3b0, a=0x7fffffffbcf0, this=<optimized out>, r=<optimized out>, a=<optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#2  doActivate<false> (sender=0x55555692eaa0, signal_index=28, argv=0x7fffffffbcf0) at kernel/qobject.cpp:3925
#3  0x00007ffff6a48585 in QgsMapCanvas::currentLayerChanged(QgsMapLayer*) () at /usr/lib/libqgis_gui.so.3.40.1
#4  0x00007ffff74f008c in QgisApp::onActiveLayerChanged(QgsMapLayer*) () at /usr/lib/libqgis_app.so.3.40.1
#5  0x00007ffff46e359e in QtPrivate::QSlotObjectBase::call (this=0x5555574fe2d0, r=0x55555654e1e0, a=0x7fffffffbe50, this=<optimized out>, r=<optimized out>, a=<optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#6  doActivate<false> (sender=0x5555570bc630, signal_index=16, argv=0x7fffffffbe50) at kernel/qobject.cpp:3925
#7  0x00007ffff64a0572 in QgsLayerTreeView::currentLayerChanged(QgsMapLayer*) () at /usr/lib/libqgis_gui.so.3.40.1
#8  0x00007ffff64a83dd in QgsLayerTreeView::onCurrentChanged() () at /usr/lib/libqgis_gui.so.3.40.1
#9  0x00007ffff46e359e in QtPrivate::QSlotObjectBase::call (this=0x5555574fb630, r=0x5555570bc630, a=0x7fffffffc010, this=<optimized out>, r=<optimized out>, a=<optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#10 doActivate<false> (sender=0x5555574fb530, signal_index=4, argv=0x7fffffffc010) at kernel/qobject.cpp:3925
#11 0x00007ffff4670561 in QItemSelectionModel::currentChanged (this=this@entry=0x5555574fb530, _t1=<optimized out>, _t2=...) at .moc/moc_qitemselectionmodel.cpp:482
#12 0x00007ffff4672db6 in QItemSelectionModel::setCurrentIndex (this=0x5555574fb530, index=<optimized out>, command=...) at itemmodels/qitemselectionmodel.cpp:1416
#13 0x00007ffff55ce3af in QAbstractItemView::setCurrentIndex (this=<optimized out>, index=...) at itemviews/qabstractitemview.cpp:1081
#14 0x00007ffff75176ca in QgisApp::autoSelectAddedLayer(QList<QgsMapLayer*>) () at /usr/lib/libqgis_app.so.3.40.1
#15 0x00007ffff759facb in ??? () at /usr/lib/libqgis_app.so.3.40.1
#16 0x00007ffff46e359e in QtPrivate::QSlotObjectBase::call (this=0x5555574fd4f0, r=0x55555654e1e0, a=0x7fffffffc270, this=<optimized out>, r=<optimized out>, a=<optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#17 doActivate<false> (sender=0x555556949b50, signal_index=3, argv=0x7fffffffc270) at kernel/qobject.cpp:3925
#18 0x00007ffff28f44ca in QgsLayerTreeRegistryBridge::addedLayersToLayerTree(QList<QgsMapLayer*> const&) () at /usr/lib/libqgis_core.so.3.40.1
#19 0x00007ffff290c572 in QgsLayerTreeRegistryBridge::layersAdded(QList<QgsMapLayer*> const&) () at /usr/lib/libqgis_core.so.3.40.1
#20 0x00007ffff46e359e in QtPrivate::QSlotObjectBase::call (this=0x55555690d9d0, r=0x555556949b50, a=0x7fffffffc410, this=<optimized out>, r=<optimized out>, a=<optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#21 doActivate<false> (sender=0x55555596f9f0, signal_index=49, argv=0x7fffffffc410) at kernel/qobject.cpp:3925
#22 0x00007ffff31cd1cd in QgsProject::legendLayersAdded(QList<QgsMapLayer*> const&) () at /usr/lib/libqgis_core.so.3.40.1
#23 0x00007ffff7877f25 in QgsAppLayerHandling::addSortedLayersToLegend(QList<QgsMapLayer*>&) () at /usr/lib/libqgis_app.so.3.40.1
#24 0x00007ffff75a0827 in ??? () at /usr/lib/libqgis_app.so.3.40.1
#25 0x00007ffff46e359e in QtPrivate::QSlotObjectBase::call (this=0x555559fb5d20, r=0x55555654e1e0, a=0x7fffffffc650, this=<optimized out>, r=<optimized out>, a=<optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#26 doActivate<false> (sender=0x55555a88e820, signal_index=3, argv=0x7fffffffc650) at kernel/qobject.cpp:3925
#27 0x00007ffff46e55fe in QTimer::timeout (this=<optimized out>, _t1=...) at .moc/moc_qtimer.cpp:205
#28 0x00007ffff46d54e9 in QObject::event (this=0x55555a88e820, e=0x7fffffffc870) at kernel/qobject.cpp:1324
#29 0x00007ffff5356581 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55555a88e820, e=0x7fffffffc870) at kernel/qapplication.cpp:3640
#30 0x00007ffff2da6d03 in QgsApplication::notify(QObject*, QEvent*) () at /usr/lib/libqgis_core.so.3.40.1
#31 0x00007ffff46aee98 in QCoreApplication::notifyInternal2 (receiver=0x55555a88e820, event=0x7fffffffc870) at kernel/qcoreapplication.cpp:1064
#32 0x00007ffff46fd870 in QTimerInfoList::activateTimers (this=0x5555558ceb00) at kernel/qtimerinfo_unix.cpp:643
#33 0x00007ffff46fdfaa in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:183
#34 0x00007fffecf13559 in ??? () at /usr/lib/libglib-2.0.so.0
#35 0x00007fffecf76257 in ??? () at /usr/lib/libglib-2.0.so.0
#36 0x00007fffecf12a55 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#37 0x00007ffff46fe16f in QEventDispatcherGlib::processEvents (this=0x5555558ce770, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#38 0x00007ffff46a6b5c in QEventLoop::exec (this=0x7fffffffcb30, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#39 0x00007ffff46b305d in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#40 0x0000555555560326 in ??? ()
#41 0x00007ffff1a34e08 in __libc_start_call_main (main=main@entry=0x55555555d4f0, argc=argc@entry=1, argv=argv@entry=0x7fffffffd888) at ../sysdeps/nptl/libc_start_call_main.h:58
#42 0x00007ffff1a34ecc in __libc_start_main_impl (main=0x55555555d4f0, argc=1, argv=0x7fffffffd888, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffd878) at ../csu/libc-start.c:360
#43 0x0000555555563ea5 in ??? ()

@kannes kannes added the bug Something isn't working label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants