Bug 400096

Summary: Meta opening krunner breaks at random
Product: [Plasma] kwin Reporter: RaitaroH <RaitaroHikami>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: joeks
Priority: NOR    
Version: 5.14.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: qdbus org.kde.KWin /KWin supportInformation
output of qdbus org.kde.KWin /KWin supportInformation

Description RaitaroH 2018-10-21 08:18:49 UTC
SUMMARY
After some research I found out how the menu has meta only as a shortcut (this happened a long time ago). I decided to set meta for krunner. 

$ kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta "org.kde.krunner,/App,,display"
$ qdbus org.kde.KWin /KWin reconfigure

It works fine. The problem is that many times in recent days meta alone cannot quite cut it. If I do "$kwin --replace" meta works again... for a while. For instance it worked many times over, but then I pulled down yakuake to copy the output of the command to add to this issue report and meta doesn't work anymore.

STEPS TO REPRODUCE
1. Have meta as a shortcut to open krunner.
2. Wait for kwin to misbehave.
3. Now meta does not work but shortcuts set in Global Shortcuts work still.
4. Try to restart krunner and meta does not work. Try to restart kwin and meta works again.

OBSERVED RESULT
Kwin misses meta and/or krunner doesn't respond to it.

EXPECTED RESULT
Meta opens krunner.

SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.14.1
KDE Frameworks Version: 5.51.0
Qt Version: 5.11.2

ADDITIONAL INFORMATION
This is the output of "kwin --replace"

kwin --replace
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 176, resource id: 119537671, major code: 20 (GetProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1927, resource id: 73400327, major code: 42 (SetInputFocus), minor code: 0
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce GTX 1050 Ti/PCIe/SSE2
OpenGL version string:                  4.6.0 NVIDIA 390.87
OpenGL shading language version string: 4.60 NVIDIA
Driver:                                 NVIDIA
Driver version:                         390.87
GPU class:                              Unknown
OpenGL version:                         4.6
GLSL version:                           4.60
X server version:                       1.19.6
Linux kernel version:                   4.15
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
Comment 1 Martin Flöser 2018-10-21 16:14:33 UTC
Please provide the output of qdbus org.kde.KWin /KWin supportInformation
Comment 2 RaitaroH 2018-10-22 07:38:26 UTC
Created attachment 115822 [details]
qdbus org.kde.KWin /KWin supportInformation
Comment 3 RaitaroH 2019-02-26 16:53:26 UTC
Some extra info. Is not just meta, is also alt as well.

[ModifierOnlyShortcuts]
Alt=com.github.zren.PlasmaHUD,/PlasmaHUD,com.github.zren.PlasmaHUD,toggleHUD

So after a few questions from Zren I sent him the following. The meta shortcut, or the alt shortcut simply don't last after a kwin replace. Not even 30 seconds.

    killall krunner && kstart5 krunner

    Omitting both --window and --windowclass arguments is not recommended

    Could not create scene graph context for backend 'opengl' - check that plugins are installed correctly in /usr/lib/x86_64-linux-gnu/qt5/plugins

kwin also spits out, with every kstart5:

    qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 11109, resource id: 96469001, major code: 18 (ChangeProperty), minor code: 0

    qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 21180, resource id: 35651593, major code: 18 (ChangeProperty), minor code: 0

    qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 34681, resource id: 96469001, major code: 18 (ChangeProperty), minor code: 0


On the other hand killing krunner and opening it manually actually works, but it does not fix the meta problem. What I can see is only "kwin --replace" does that.

    ▶ krunner &

    [1] 12724

    [1] + 12724 done krunner
Comment 4 joeks 2020-04-25 10:26:30 UTC
Same problem here, kwin --replace solves the problem. Happens with both Alt and Meta for me.

KWin version: 5.17.5
Qt Version: 5.12.5
Qt compile version: 5.12.5
XCB compile version: 1.13.1
Operation Mode: X11 only
Comment 5 joeks 2020-04-25 10:27:37 UTC
Created attachment 127854 [details]
output of qdbus org.kde.KWin /KWin supportInformation
Comment 6 Christoph Feck 2020-07-11 07:46:09 UTC

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