Bug ID | 1209244 |
---|---|
Summary | khotkeys crash when keyboard input is the action |
Classification | openSUSE |
Product | openSUSE Tumbleweed |
Version | Current |
Hardware | Other |
OS | Other |
Status | NEW |
Severity | Normal |
Priority | P5 - None |
Component | KDE Workspace (Plasma) |
Assignee | opensuse-kde-bugs@opensuse.org |
Reporter | jslaby@suse.com |
QA Contact | qa-bugs@suse.de |
Found By | --- |
Blocker | --- |
khotkeys do not support wayland yet. And when used, LockDisplay(X) in X11 library crashes. > #0 __GI___pthread_sigmask (how=1, newmask=<optimized out>, oldmask=0x0) at pthread_sigmask.c:43 > #1 0x00007fb2a56430fd in __GI___sigprocmask (how=<optimized out>, set=<optimized out>, oset=<optimized out>) at ../sysdeps/unix/sysv/linux/sigprocmask.c:25 > #2 0x00007fb2a722287b in KCrash::setCrashHandler(void (*)(int)) () at /lib64/libKF5Crash.so.5 > #3 0x00007fb2a7224d23 in KCrash::defaultCrashHandler(int) () at /lib64/libKF5Crash.so.5 > #4 0x00007fb2a5642ee0 in <signal handler called> () at /lib64/libc.so.6 > #5 0x00007fb2a54fdabb in XQueryExtension > (dpy=dpy@entry=0x560638265b90, name=name@entry=0x7fb28bfb8019 "XInputExtension", major_opcode=major_opcode@entry=0x7ffcacb3f9cc, first_event=first_event@entry=0x7ffcacb3f9d0, first_error=first_error@entry=0x7ffcacb3f9d4) at /usr/src/debug/libX11-1.8.1/src/QuExt.c:62 > #6 0x00007fb28bfb5cd7 in get_xinput_base (dpy=0x560638265b90) at /usr/src/debug/libXtst-1.2.4-1.1.x86_64/src/XTest.c:79 > #7 find_display (dpy=0x560638265b90) at /usr/src/debug/libXtst-1.2.4-1.1.x86_64/src/XTest.c:83 > #8 find_display (dpy=0x560638265b90) at /usr/src/debug/libXtst-1.2.4-1.1.x86_64/src/XTest.c:83 > #9 0x00007fb28bfb6e22 in XTestQueryExtension > (dpy=0x560638265b90, event_base_return=0x7ffcacb3fa68, error_base_return=0x7ffcacb3fa6c, major_return=0x7ffcacb3fa70, minor_return=0x7ffcacb3fa78) > at /usr/src/debug/libXtst-1.2.4-1.1.x86_64/src/XTest.c:101 > #10 0x00007fb284acdfe8 in KHotKeys::ShortcutsHandler::send_macro_key(QKeySequence const&, unsigned long) [clone .constprop.0] > (key=<optimized out>, window_P=<optimized out>, this=<optimized out>) at /usr/src/debug/khotkeys-5.27.2/libkhotkeysprivate/shortcuts_handler.cpp:179 > #11 0x00007fb284ac027c in KHotKeys::KeyboardInputAction::execute() (this=0x560638452440) at /usr/include/qt5/QtCore/qchar.h:100 > #12 0x00007fb284ab916d in QList<KHotKeys::Action*>::begin() (this=<optimized out>) at /usr/include/qt5/QtCore/qlist.h:338 They hid the tab from configuration when running on wayland [1]. But when there are hotkeys set from the old ages of X11, the above happens. So I use the attached patch until wayland support is added (or x11 support dropped). Can we make it part of the distro? Or push it upstream in some form? We might disallow even registering such a hook, IMO. I didn't look how, I only disabled the action's execute(). [1] https://invent.kde.org/plasma/khotkeys/-/commit/ed47291d1676dc0b9cddd75e3e0090cb5d3673c1