https://bugs.kde.org/show_bug.cgi?id=440778

            Bug ID: 440778
           Summary: Crash when invoking send-keyboard-input shortcut
           Product: frameworks-kded
           Version: 5.84.0
          Platform: openSUSE RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: fa...@kde.org
          Reporter: jirisl...@gmail.com
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

SUMMARY
I have kded5 configured to output this key sequence when pressing
ctrl+alt+shift+a:
Shift+A:c:k:e:d:-:b:y:Shift+;:Space:Shift+J:i:r:i:Space:Shift+S:l:a:b:y:Space:<:j:i:r:i:s:l:a:b:y:Shift+@:k:e:r:n:e:l:.:o:r:g:Shift+>

It always used to work. Now I switched from X11 to wayland and kded5 crashes in
XQueryExtension:
> #2  <signal handler called> () at ../sysdeps/unix/sysv/linux/sigaction.c
> #3  0x00007f550492bb3e in XQueryExtension
>     (dpy=dpy@entry=0x5628d28aa030, name=name@entry=0x7f54fc12e019 
> "XInputExtension", major_opcode=major_opcode@entry=0x7ffd4d60744c, 
> first_event=first_event@entry=0x7ffd4d607450, 
> first_error=first_error@entry=0x7ffd4d607454)
>     at /usr/src/debug/libX11-1.7.2-1.1.x86_64/src/QuExt.c:62
> #4  0x00007f54fc12bd62 in get_xinput_base (dpy=0x5628d28aa030) at 
> /usr/src/debug/libXtst-1.2.3-2.4.x86_64/src/XTest.c:79
> #5  find_display (dpy=0x5628d28aa030) at 
> /usr/src/debug/libXtst-1.2.3-2.4.x86_64/src/XTest.c:83
> #6  find_display (dpy=0x5628d28aa030) at 
> /usr/src/debug/libXtst-1.2.3-2.4.x86_64/src/XTest.c:83
> #7  0x00007f54fc12cf42 in XTestQueryExtension (dpy=0x5628d28aa030, 
> event_base_return=0x7ffd4d6074f8, error_base_return=0x7ffd4d6074fc, 
> major_return=0x7ffd4d607500, minor_return=0x7ffd4d607508)
>     at /usr/src/debug/libXtst-1.2.3-2.4.x86_64/src/XTest.c:101
> #8  0x00007f54fc3e8bda in KHotKeys::xtest () at 
> /usr/src/debug/khotkeys5-5.22.4-1.1.x86_64/libkhotkeysprivate/shortcuts_handler.cpp:113
> #9  KHotKeys::xtest () at 
> /usr/src/debug/khotkeys5-5.22.4-1.1.x86_64/libkhotkeysprivate/shortcuts_handler.cpp:107
> #10 KHotKeys::ShortcutsHandler::send_macro_key(QKeySequence const&, unsigned 
> long) (key=<optimized out>, window_P=1, this=<optimized out>) at 
> /usr/src/debug/khotkeys5-5.22.4-1.1.x86_64/libkhotkeysprivate/shortcuts_handler.cpp:163
> #11 0x00007f54fc3db406 in 
> KHotKeys::ShortcutsHandler::send_macro_key(QKeySequence const&, unsigned 
> long) (this=<optimized out>, window_P=1, key=...) at 
> /usr/src/debug/khotkeys5-5.22.4-1.1.x86_64/libkhotkeysprivate/shortcuts_handler.cpp:150
> #12 KHotKeys::KeyboardInputAction::execute() (this=0x5628d2a59a30) at 
> /usr/src/debug/khotkeys5-5.22.4-1.1.x86_64/libkhotkeysprivate/actions/keyboard_input_action.cpp:150
> #13 0x00007f54fc3d41bd in KHotKeys::ActionData::execute() 
> (this=0x5628d2a597c0) at 
> /usr/src/debug/khotkeys5-5.22.4-1.1.x86_64/libkhotkeysprivate/action_data/action_data.cpp:93
> #14 0x00007f5505376fe8 in doActivate<false>(QObject*, int, void**) 
> (sender=0x5628d2a1f240, signal_index=4, argv=0x7ffd4d6077a0) at 
> kernel/qobject.cpp:3898
> #15 0x00007f550537047f in QMetaObject::activate(QObject*, QMetaObject const*, 
> int, void**)
>     (sender=sender@entry=0x5628d2a1f240, m=m@entry=0x7f55066330a0 
> <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, 
> argv=argv@entry=0x7ffd4d6077a0) at kernel/qobject.cpp:3946
> #16 0x00007f5506114182 in QAction::triggered(bool) 
> (this=this@entry=0x5628d2a1f240, _t1=<optimized out>) at 
> .moc/moc_qaction.cpp:376
> #17 0x00007f5506116db4 in QAction::activate(QAction::ActionEvent) 
> (this=0x5628d2a1f240, event=<optimized out>) at kernel/qaction.cpp:1161
> #18 0x00007f54fffeeacc in QAction::trigger() (this=0x5628d2a1f240) at 
> /usr/include/qt5/QtWidgets/qaction.h:187
> #19 KGlobalAccelPrivate::_k_invokeAction(QString const&, QString const&, long 
> long) (this=0x7ffd4d607810, componentUnique=..., actionUnique=<optimized 
> out>, timestamp=0)
>     at /usr/src/debug/kglobalaccel-5.84.0-1.2.x86_64/src/kglobalaccel.cpp:453
> #20 0x00007f5505376fb3 in QtPrivate::QSlotObjectBase::call(QObject*, void**) 
> (a=0x7ffd4d607970, r=0x7f5500002650 <(anonymous 
> namespace)::Q_QGS_s_instance::innerFunction()::holder>, this=0x5628d2d65650)
>     at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
> #21 doActivate<false>(QObject*, int, void**) (sender=0x5628d2cfa1d0, 
> signal_index=3, argv=0x7ffd4d607970) at kernel/qobject.cpp:3886
> #22 0x00007f550537047f in QMetaObject::activate(QObject*, QMetaObject const*, 
> int, void**) (sender=<optimized out>, m=<optimized out>, 
> local_signal_index=local_signal_index@entry=0, 
> argv=argv@entry=0x7ffd4d607970) at kernel/qobject.cpp:3946
> #23 0x00007f54ffffabf4 in 
> OrgKdeKglobalaccelComponentInterface::globalShortcutPressed(QString const&, 
> QString const&, long long) (_t3=<optimized out>, _t2=<optimized out>, 
> _t1=<optimized out>, this=<optimized out>)
>     at 
> /usr/src/debug/kglobalaccel-5.84.0-1.2.x86_64/build/src/kglobalaccel_component_interface.moc:227
> #24 OrgKdeKglobalaccelComponentInterface::qt_static_metacall(QObject*, 
> QMetaObject::Call, int, void**) (_o=_o@entry=0x5628d2cfa1d0, 
> _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=0, 
> _a=_a@entry=0x7ffd4d607ac0)
>     at 
> /usr/src/debug/kglobalaccel-5.84.0-1.2.x86_64/build/src/kglobalaccel_component_interface.moc:121
> #25 0x00007f54ffffad7b in 
> OrgKdeKglobalaccelComponentInterface::qt_metacall(QMetaObject::Call, int, 
> void**) (this=0x5628d2cfa1d0, _c=QMetaObject::InvokeMetaMethod, _id=0, 
> _a=0x7ffd4d607ac0)
>     at 
> /usr/src/debug/kglobalaccel-5.84.0-1.2.x86_64/build/src/kglobalaccel_component_interface.moc:196
> #26 0x00007f55056da6bb in  () at /lib64/libQt5DBus.so.5
> #27 0x00007f550536cf5e in QObject::event(QEvent*) (this=0x5628d2cfa1d0, 
> e=0x7f54f800e070) at kernel/qobject.cpp:1314
> #28 0x00007f550611aa7f in QApplicationPrivate::notify_helper(QObject*, 
> QEvent*) (this=<optimized out>, receiver=0x5628d2cfa1d0, e=0x7f54f800e070) at 
> kernel/qapplication.cpp:3632
> #29 0x00007f550534096a in QCoreApplication::notifyInternal2(QObject*, 
> QEvent*) (receiver=0x5628d2cfa1d0, event=0x7f54f800e070) at 
> kernel/qcoreapplication.cpp:1064
> #30 0x00007f55053439b7 in QCoreApplicationPrivate::sendPostedEvents(QObject*, 
> int, QThreadData*) (receiver=0x0, event_type=0, data=0x5628d287dba0) at 
> kernel/qcoreapplication.cpp:1821
> #31 0x00007f55053987d3 in postEventSourceDispatch(GSource*, GSourceFunc, 
> gpointer) (s=s@entry=0x5628d29596b0) at kernel/qeventdispatcher_glib.cpp:277
> #32 0x00007f5503e3f80f in g_main_dispatch (context=0x5628d29389e0) at 
> ../glib/gmain.c:3337
> #33 g_main_context_dispatch (context=0x5628d29389e0) at ../glib/gmain.c:4055
> #34 0x00007f5503e3fb98 in g_main_context_iterate 
> (context=context@entry=0x5628d29389e0, block=block@entry=1, 
> dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4131
> #35 0x00007f5503e3fc4f in g_main_context_iteration (context=0x5628d29389e0, 
> may_block=1) at ../glib/gmain.c:4196
> #36 0x00007f5505397e54 in 
> QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) 
> (this=0x5628d2958f40, flags=...) at kernel/qeventdispatcher_glib.cpp:423
> #37 0x00007f550533f36b in 
> QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) 
> (this=this@entry=0x7ffd4d607f20, flags=..., flags@entry=...) at 
> ../../include/QtCore/../../src/corelib/global/qflags.h:69
> #38 0x00007f5505347650 in QCoreApplication::exec() () at 
> ../../include/QtCore/../../src/corelib/global/qflags.h:121
> #39 0x00005628d266441f in main(int, char**) (argc=<optimized out>, 
> argv=<optimized out>) at 
> /usr/src/debug/kded-5.84.0-1.1.x86_64/src/kded.cpp:782


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20210803
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2
Kernel Version: 5.13.1-1.gbebf622-default (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i7-6600U CPU @ 2.60GHz
Memory: 15.1 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 520

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to