Bug 434128 - Plasma crashes in QQuickShortcutContext::matcher() while trying to move a desktop file to the trash using the delete key in Show Desktop mode
Summary: Plasma crashes in QQuickShortcutContext::matcher() while trying to move a des...
Status: RESOLVED DUPLICATE of bug 420178
Alias: None
Product: plasmashell
Classification: Plasma
Component: Folder (show other bugs)
Version: 5.21.0
Platform: Other Linux
: NOR crash
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
: 438133 (view as bug list)
Depends on:
Blocks: 443934
  Show dependency treegraph
 
Reported: 2021-03-08 03:55 UTC by Nate Graham
Modified: 2022-01-19 20:22 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (3.82 KB, text/plain)
2021-04-01 18:04 UTC, Jon
Details
New crash information added by DrKonqi (3.66 KB, text/plain)
2021-04-23 09:06 UTC, Justin Zobel
Details
New crash information added by DrKonqi (28.12 KB, text/plain)
2021-08-19 17:59 UTC, John Allen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2021-03-08 03:55:55 UTC
Everything KDE from git master.


STEPS TO REPRODUCE
1. Take a screenshot with Spectacle
2. Save it to the desktop
3. Meta+D to show the desktop
4. Select the image
5. Hit the delete key


OBSERVED RESULT
Crash:
#0  __GI_raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:49
#1  0x00007f3effa58520 in <signal handler called> () at /lib64/libc.so.6
#2  0x00007f3efb3df7d4 in QQuickShortcutContext::matcher(QObject*, Qt::ShortcutContext)
    (context=<optimized out>, obj=0x60c5370) at qquickshortcutcontext.cpp:78
#3  QQuickShortcutContext::matcher(QObject*, Qt::ShortcutContext)
    (obj=<optimized out>, context=<optimized out>) at qquickshortcutcontext.cpp:71
#4  0x00007f3f006d4d1f in QShortcutEntry::correctContext() const (this=0x75739a0)
    at kernel/qshortcutmap.cpp:79
#5  QShortcutMap::find(QKeyEvent*, int) (this=this@entry=0x1e3c1e8, e=e@entry=
    0x7ffdf8c9bb60, ignoredModifiers=ignoredModifiers@entry=0) at kernel/qshortcutmap.cpp:457
#6  0x00007f3f006d7bc0 in QShortcutMap::nextState(QKeyEvent*)
    (this=this@entry=0x1e3c1e8, e=e@entry=0x7ffdf8c9bb60) at kernel/qshortcutmap.cpp:372
#7  0x00007f3f006d8e71 in QShortcutMap::tryShortcut(QKeyEvent*)
    (this=this@entry=0x1e3c1e8, e=e@entry=0x7ffdf8c9bb60) at kernel/qshortcutmap.cpp:328
#8  0x00007f3f006822be in QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short)
    (window=0x7ffdf8c9bb60, timestamp=69176419, keyCode=16777223, modifiers=..., nativeScanCode=119, nativeVirtualKey=65535, nativeModifiers=0, text=..., autorepeat=false, count=1)
    at kernel/qwindowsysteminterface.cpp:477
#9  0x00007f3f006a4c0b in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) (e=0x878dd20) at kernel/qguiapplication.cpp:2395
#10 0x00007f3f0067ec5c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#11 0x00007f3efbf56faa in xcbSourceDispatch(GSource*, GSourceFunc, gpointer)
    (source=source@entry=0x1f1e990) at qxcbeventdispatcher.cpp:105
#12 0x00007f3efe585f57 in g_main_dispatch (context=0x7f3ef4005000) at ../glib/gmain.c:3325
#13 g_main_context_dispatch (context=0x7f3ef4005000) at ../glib/gmain.c:4043
#14 0x00007f3efe5862d8 in g_main_context_iterate
    (context=context@entry=0x7f3ef4005000, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4119
#15 0x00007f3efe58638f in g_main_context_iteration
    (context=0x7f3ef4005000, may_block=may_block@entry=1) at ../glib/gmain.c:4184
#16 0x00007f3f002938bf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x1f2a350, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#17 0x00007f3f0023aceb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
    (this=this@entry=0x7ffdf8c9bea0, flags=..., flags@entry=...)
    at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#18 0x00007f3f00242f60 in QCoreApplication::exec() ()
    at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#19 0x00007f3f0069c35c in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1867
#20 0x00007f3f01159475 in QApplication::exec() () at kernel/qapplication.cpp:2824
#21 0x00000000004217a0 in main(int, char**) (argc=<optimized out>, argv=0x7ffdf8c9c010)
    at /home/nate/kde/src/plasma-workspace/shell/main.cpp:251




Could not reproduce it when I tried the above steps again, though.
Comment 1 Jon 2021-04-01 18:04:53 UTC
Created attachment 137243 [details]
New crash information added by DrKonqi

plasmashell (5.21.3) using Qt 5.15.2

- What I was doing when the application crashed:

1. Selected folder on desktop.
2. Hit 'Del' to move to trash. 
3. Plasma crash.

I've also not been able to reproduce this behavior.

-- Backtrace (Reduced):
#6  0x00007f03cd8d27d4 in QQuickShortcutContext::matcher(QObject*, Qt::ShortcutContext) (context=<optimized out>, obj=0x55e56f1a1760) at qquickshortcutcontext.cpp:78
#7  QQuickShortcutContext::matcher(QObject*, Qt::ShortcutContext) (obj=<optimized out>, context=<optimized out>) at qquickshortcutcontext.cpp:71
#8  0x00007f03d3234d1f in QShortcutEntry::correctContext() const (this=0x55e573672b78) at kernel/qshortcutmap.cpp:79
#9  QShortcutMap::find(QKeyEvent*, int) (this=this@entry=0x55e56e5fd868, e=e@entry=0x7ffc1018d260, ignoredModifiers=ignoredModifiers@entry=0) at kernel/qshortcutmap.cpp:457
#10 0x00007f03d3237bc0 in QShortcutMap::nextState(QKeyEvent*) (this=this@entry=0x55e56e5fd868, e=e@entry=0x7ffc1018d260) at kernel/qshortcutmap.cpp:372
Comment 2 Nate Graham 2021-04-01 18:43:48 UTC
Application: plasmashell (5.21.3)

Qt Version: 5.15.2
Frameworks Version: 5.80.0
Operating System: Linux 5.11.6-1-default x86_64
Windowing System: X11
Drkonqi Version: 5.21.3
Distribution: "openSUSE Tumbleweed"

-- Information about the crash:
- What I was doing when the application crashed:

1. Selected folder on desktop.
2. Hit 'Del' to move to trash. 
3. Plasma crash.

I've also not been able to reproduce this behavior.

The crash does not seem to be reproducible.

-- Backtrace:
Application: Plasma (plasmashell), signal: Segmentation fault
Content of s_kcrashErrorMessage: [Current thread is 1 (LWP 7434)]
[KCrash Handler]
#6  0x00007f03cd8d27d4 in QQuickShortcutContext::matcher(QObject*, Qt::ShortcutContext) (context=<optimized out>, obj=0x55e56f1a1760) at qquickshortcutcontext.cpp:78
#7  QQuickShortcutContext::matcher(QObject*, Qt::ShortcutContext) (obj=<optimized out>, context=<optimized out>) at qquickshortcutcontext.cpp:71
#8  0x00007f03d3234d1f in QShortcutEntry::correctContext() const (this=0x55e573672b78) at kernel/qshortcutmap.cpp:79
#9  QShortcutMap::find(QKeyEvent*, int) (this=this@entry=0x55e56e5fd868, e=e@entry=0x7ffc1018d260, ignoredModifiers=ignoredModifiers@entry=0) at kernel/qshortcutmap.cpp:457
#10 0x00007f03d3237bc0 in QShortcutMap::nextState(QKeyEvent*) (this=this@entry=0x55e56e5fd868, e=e@entry=0x7ffc1018d260) at kernel/qshortcutmap.cpp:372
#11 0x00007f03d3238e71 in QShortcutMap::tryShortcut(QKeyEvent*) (this=this@entry=0x55e56e5fd868, e=e@entry=0x7ffc1018d260) at kernel/qshortcutmap.cpp:328
#12 0x00007f03d31e22be in QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) (window=0x7ffc1018d260, timestamp=127309033, keyCode=16777223, modifiers=..., nativeScanCode=119, nativeVirtualKey=65535, nativeModifiers=0, text=..., autorepeat=false, count=1) at kernel/qwindowsysteminterface.cpp:477
#13 0x00007f03d3204c0b in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) (e=0x55e57a9ee5b0) at kernel/qguiapplication.cpp:2395
#14 0x00007f03d31dec5c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#15 0x00007f03ce445faa in xcbSourceDispatch(GSource*, GSourceFunc, gpointer) (source=source@entry=0x55e56e6e2230) at qxcbeventdispatcher.cpp:105
#16 0x00007f03d1058f57 in g_main_dispatch (context=0x7f03c8005000) at ../glib/gmain.c:3325
#17 g_main_context_dispatch (context=0x7f03c8005000) at ../glib/gmain.c:4043
#18 0x00007f03d10592d8 in g_main_context_iterate (context=context@entry=0x7f03c8005000, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4119
#19 0x00007f03d105938f in g_main_context_iteration (context=0x7f03c8005000, may_block=may_block@entry=1) at ../glib/gmain.c:4184
#20 0x00007f03d2d0c8bf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55e56e6ec360, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#21 0x00007f03d2cb3ceb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffc1018d5a0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#22 0x00007f03d2cbbf60 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#23 0x00007f03d31fc35c in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1867
#24 0x00007f03d3a3a475 in QApplication::exec() () at kernel/qapplication.cpp:2824
#25 0x000055e56e54b201 in main(int, char**) (argc=<optimized out>, argv=0x7ffc1018d7a0) at /usr/src/debug/plasma5-workspace-5.21.3-1.1.x86_64/shell/main.cpp:251
[Inferior 1 (process 7434) detached]

Possible duplicates by query: bug 434128, bug 428949, bug 424142, bug 424120, bug 423235.

Reported using DrKonqi
Comment 3 Justin Zobel 2021-04-23 09:06:24 UTC
Created attachment 137825 [details]
New crash information added by DrKonqi

plasmashell (5.21.3) using Qt 5.15.2

- What I was doing when the application crashed:
Deleted a plain text file on the desktop.

Wallpaer went blank directly after deletion, plasmashell restarted OK.

-- Backtrace (Reduced):
#7  0x00007f3f9b80a5fc in qobject_cast<QQuickItem*>(QObject*) (object=0x9dbc760) at /usr/include/QtCore/qobject.h:519
#8  QQuickShortcutContext::matcher(QObject*, Qt::ShortcutContext) (obj=0x9dbc760, context=<optimized out>) at qquickshortcutcontext.cpp:79
#9  0x00007f3fadb6255f in QShortcutEntry::correctContext() const (this=0x45392f0) at kernel/qshortcutmap.cpp:79
#10 QShortcutMap::find(QKeyEvent*, int) (this=this@entry=0xa91c98, e=e@entry=0x7ffd461b48f0, ignoredModifiers=ignoredModifiers@entry=0) at kernel/qshortcutmap.cpp:457
#11 0x00007f3fadb65400 in QShortcutMap::nextState(QKeyEvent*) (this=this@entry=0xa91c98, e=e@entry=0x7ffd461b48f0) at kernel/qshortcutmap.cpp:372
Comment 4 Nate Graham 2021-06-09 17:14:55 UTC
*** Bug 438133 has been marked as a duplicate of this bug. ***
Comment 5 John Allen 2021-08-19 17:59:14 UTC
Created attachment 140850 [details]
New crash information added by DrKonqi

plasmashell (5.22.4) using Qt 5.15.3

I had just deleted a file on the desktop using the delete key, and the screen went black for a few seconds, and came back indicating a crash.

-- Backtrace (Reduced):
#5  0x00007f13c8335bbc in QQuickShortcutContext::matcher(QObject*, Qt::ShortcutContext) () from /lib/x86_64-linux-gnu/libQt5QuickTemplates2.so.5
#6  0x00007f13ce64074f in QShortcutMap::find(QKeyEvent*, int) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#7  0x00007f13ce643524 in QShortcutMap::nextState(QKeyEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#8  0x00007f13ce6447c9 in QShortcutMap::tryShortcut(QKeyEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#9  0x00007f13ce5f1c72 in QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
Comment 6 Nicolas Fella 2022-01-19 20:22:27 UTC

*** This bug has been marked as a duplicate of bug 420178 ***