Bug 429022 - Accessibility KCM crashes on Wayland due to X11-specific code
Summary: Accessibility KCM crashes on Wayland due to X11-specific code
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_accessibility (show other bugs)
Version: unspecified
Platform: Neon Linux
: VHI crash
Target Milestone: ---
Assignee: Andrey
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-12 17:03 UTC by Patrick Silva
Modified: 2020-11-19 15:01 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.21


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2020-11-12 17:03:07 UTC
SUMMARY
This crash only occurs on Wayland session.

STEPS TO REPRODUCE
1.open System Settings on Wayland 
2. click on "Accessibility" in the sidebar
3. 

OBSERVED RESULT
crash

EXPECTED RESULT
no crash

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.20.80
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.1

Application: System Settings (systemsettings5), signal: Segmentation fault
Content of s_kcrashErrorMessage: (null)
[New LWP 28467]
[New LWP 28468]
[New LWP 28469]
[New LWP 28470]
[New LWP 28471]
[New LWP 28472]
[New LWP 28473]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fbecbd91aff in __GI___poll (fds=fds@entry=0x7fff946c61a8, nfds=nfds@entry=1, timeout=timeout@entry=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
[Current thread is 1 (Thread 0x7fbec7dc91c0 (LWP 28466))]

Thread 8 (Thread 0x7fbea7fff700 (LWP 28473)):
#0  __GI___libc_read (nbytes=16, buf=0x7fbea7ffeaf0, fd=13) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=13, buf=buf@entry=0x7fbea7ffeaf0, nbytes=nbytes@entry=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007fbeca07889f in read (__nbytes=16, __buf=0x7fbea7ffeaf0, __fd=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/unistd.h:44
#3  g_wakeup_acknowledge (wakeup=0x7fbeac0039a0) at ../../../glib/gwakeup.c:210
#4  0x00007fbeca02fcfe in g_main_context_check (context=context@entry=0x7fbea0000c20, max_priority=2147483647, fds=fds@entry=0x7fbea0004a60, n_fds=n_fds@entry=1) at ../../../glib/gmain.c:3825
#5  0x00007fbeca030152 in g_main_context_iterate (context=context@entry=0x7fbea0000c20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4044
#6  0x00007fbeca0302e3 in g_main_context_iteration (context=0x7fbea0000c20, may_block=may_block@entry=1) at ../../../glib/gmain.c:4108
#7  0x00007fbecc4aa24b in QEventDispatcherGlib::processEvents (this=0x7fbea0000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#8  0x00007fbecc44e43b in QEventLoop::exec (this=this@entry=0x7fbea7ffed00, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#9  0x00007fbecc26a982 in QThread::exec (this=this@entry=0x55d7eee89fa0) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#10 0x00007fbecb569d69 in QQmlThreadPrivate::run (this=0x55d7eee89fa0) at qml/ftw/qqmlthread.cpp:155
#11 0x00007fbecc26bb1c in QThreadPrivate::start (arg=0x55d7eee89fa0) at thread/qthread_unix.cpp:329
#12 0x00007fbeca940609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#13 0x00007fbecbd9e293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7fbebdffb700 (LWP 28472)):
#0  __GI___libc_read (nbytes=16, buf=0x7fbebdffaaf0, fd=12) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=12, buf=buf@entry=0x7fbebdffaaf0, nbytes=nbytes@entry=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007fbeca07889f in read (__nbytes=16, __buf=0x7fbebdffaaf0, __fd=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/unistd.h:44
#3  g_wakeup_acknowledge (wakeup=0x7fbec0003eb0) at ../../../glib/gwakeup.c:210
#4  0x00007fbeca02fcfe in g_main_context_check (context=context@entry=0x7fbeac000c20, max_priority=2147483647, fds=fds@entry=0x7fbeac004e60, n_fds=n_fds@entry=1) at ../../../glib/gmain.c:3825
#5  0x00007fbeca030152 in g_main_context_iterate (context=context@entry=0x7fbeac000c20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4044
#6  0x00007fbeca0302e3 in g_main_context_iteration (context=0x7fbeac000c20, may_block=may_block@entry=1) at ../../../glib/gmain.c:4108
#7  0x00007fbecc4aa24b in QEventDispatcherGlib::processEvents (this=0x7fbeac000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#8  0x00007fbecc44e43b in QEventLoop::exec (this=this@entry=0x7fbebdffad00, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#9  0x00007fbecc26a982 in QThread::exec (this=this@entry=0x55d7eebeae20) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#10 0x00007fbecb569d69 in QQmlThreadPrivate::run (this=0x55d7eebeae20) at qml/ftw/qqmlthread.cpp:155
#11 0x00007fbecc26bb1c in QThreadPrivate::start (arg=0x55d7eebeae20) at thread/qthread_unix.cpp:329
#12 0x00007fbeca940609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#13 0x00007fbecbd9e293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fbebe7fc700 (LWP 28471)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55d7ee9ab4ac) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55d7ee9ab458, cond=0x55d7ee9ab480) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55d7ee9ab480, mutex=0x55d7ee9ab458) at pthread_cond_wait.c:638
#3  0x00007fbec4d5797b in cnd_wait (mtx=0x55d7ee9ab458, cond=0x55d7ee9ab480) at ../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x55d7ee98a7d0) at ../src/util/u_queue.c:275
#5  0x00007fbec4d5758b in impl_thrd_routine (p=<optimized out>) at ../include/c11/threads_posix.h:87
#6  0x00007fbeca940609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007fbecbd9e293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fbebeffd700 (LWP 28470)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55d7ee9ab4ac) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55d7ee9ab458, cond=0x55d7ee9ab480) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55d7ee9ab480, mutex=0x55d7ee9ab458) at pthread_cond_wait.c:638
#3  0x00007fbec4d5797b in cnd_wait (mtx=0x55d7ee9ab458, cond=0x55d7ee9ab480) at ../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x55d7ee967350) at ../src/util/u_queue.c:275
#5  0x00007fbec4d5758b in impl_thrd_routine (p=<optimized out>) at ../include/c11/threads_posix.h:87
#6  0x00007fbeca940609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007fbecbd9e293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fbebf7fe700 (LWP 28469)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55d7ee9ab4ac) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55d7ee9ab458, cond=0x55d7ee9ab480) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55d7ee9ab480, mutex=0x55d7ee9ab458) at pthread_cond_wait.c:638
#3  0x00007fbec4d5797b in cnd_wait (mtx=0x55d7ee9ab458, cond=0x55d7ee9ab480) at ../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x55d7ee957d80) at ../src/util/u_queue.c:275
#5  0x00007fbec4d5758b in impl_thrd_routine (p=<optimized out>) at ../include/c11/threads_posix.h:87
#6  0x00007fbeca940609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007fbecbd9e293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fbebffff700 (LWP 28468)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55d7ee9ab4a8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55d7ee9ab458, cond=0x55d7ee9ab480) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55d7ee9ab480, mutex=0x55d7ee9ab458) at pthread_cond_wait.c:638
#3  0x00007fbec4d5797b in cnd_wait (mtx=0x55d7ee9ab458, cond=0x55d7ee9ab480) at ../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x55d7ee99d6c0) at ../src/util/u_queue.c:275
#5  0x00007fbec4d5758b in impl_thrd_routine (p=<optimized out>) at ../include/c11/threads_posix.h:87
#6  0x00007fbeca940609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007fbecbd9e293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fbec6c7f700 (LWP 28467)):
#0  0x00007fbecbd91aff in __GI___poll (fds=0x7fbec0005240, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fbeca0301ae in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7fbec0005240, timeout=<optimized out>, context=0x7fbec0000c20) at ../../../glib/gmain.c:4346
#2  g_main_context_iterate (context=context@entry=0x7fbec0000c20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4042
#3  0x00007fbeca0302e3 in g_main_context_iteration (context=0x7fbec0000c20, may_block=may_block@entry=1) at ../../../glib/gmain.c:4108
#4  0x00007fbecc4aa24b in QEventDispatcherGlib::processEvents (this=0x7fbec0000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007fbecc44e43b in QEventLoop::exec (this=this@entry=0x7fbec6c7ecf0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#6  0x00007fbecc26a982 in QThread::exec (this=this@entry=0x7fbecb208d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#7  0x00007fbecb184f4b in QDBusConnectionManager::run (this=0x7fbecb208d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:179
#8  0x00007fbecc26bb1c in QThreadPrivate::start (arg=0x7fbecb208d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:329
#9  0x00007fbeca940609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#10 0x00007fbecbd9e293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fbec7dc91c0 (LWP 28466)):
[KCrash Handler]
#6  0x00007fbecaa31fce in XKeysymToKeycode () from /lib/x86_64-linux-gnu/libX11.so.6
#7  0x00007fbe96d57640 in mouseKeysShortcut (display=0x55d7ee8103f0) at ./kcms/access/kcmaccess.cpp:61
#8  0x00007fbe96d58ba4 in KAccessConfig::KAccessConfig (this=0x55d7eeb82750, parent=<optimized out>, args=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:257
#9  0x00007fbe96d5ac7e in KPluginFactory::createInstance<KAccessConfig, QObject> (parentWidget=<optimized out>, parent=<optimized out>, args=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:519
#10 0x00007fbecc741c82 in KPluginFactory::create (this=this@entry=0x55d7eef1fb00, iface=0x7fbecdc200f0 "KQuickAddons::ConfigModule", parentWidget=parentWidget@entry=0x0, parent=parent@entry=0x0, args=..., keyword=...) at ./src/lib/plugin/kpluginfactory.cpp:130
#11 0x00007fbecdd42c28 in KPluginFactory::create<KQuickAddons::ConfigModule> (args=..., parent=0x0, this=0x55d7eef1fb00) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:257
#12 KCModuleLoader::loadModule (mod=..., report=report@entry=KCModuleLoader::Inline, parent=0x55d7eff5a7e0, args=...) at ./src/kcmoduleloader.cpp:94
#13 0x00007fbecdd4e87a in KCModuleProxyPrivate::loadModule (this=this@entry=0x55d7eff5aee0) at ./src/kcmoduleproxy.cpp:81
#14 0x00007fbecdd4eeb8 in KCModuleProxy::realModule (this=this@entry=0x55d7eff5a7e0) at ./src/kcmoduleproxy.cpp:54
#15 0x00007fbecdd4f447 in KCModuleProxy::showEvent (this=0x55d7eff5a7e0, ev=0x7fff946c71e0) at ./src/kcmoduleproxy.cpp:137
#16 0x00007fbecd08abe6 in QWidget::event (this=0x55d7eff5a7e0, event=0x7fff946c71e0) at kernel/qwidget.cpp:8663
#17 0x00007fbecd047da3 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55d7eff5a7e0, e=0x7fff946c71e0) at kernel/qapplication.cpp:3630
#18 0x00007fbecd050b98 in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3154
#19 0x00007fbecc44f92a in QCoreApplication::notifyInternal2 (receiver=0x55d7eff5a7e0, event=0x7fff946c71e0) at ../../include/QtCore/5.15.1/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#20 0x00007fbecd087597 in QWidgetPrivate::show_helper (this=0x55d7f02e3ac0) at kernel/qwidget.cpp:7813
#21 0x00007fbecd08736f in QWidgetPrivate::show_recursive (this=<optimized out>) at kernel/qwidget.cpp:7692
#22 0x00007fbecd0874f9 in QWidgetPrivate::showChildren (this=this@entry=0x55d7eff70580, spontaneous=spontaneous@entry=false) at ../../include/QtWidgets/../../src/widgets/kernel/qwidget.h:132
#23 0x00007fbecd087573 in QWidgetPrivate::show_helper (this=this@entry=0x55d7eff70580) at kernel/qwidget.cpp:7768
#24 0x00007fbecd08a683 in QWidgetPrivate::setVisible (this=0x55d7eff70580, visible=<optimized out>) at kernel/qwidget.cpp:8111
#25 0x00007fbecd0874e1 in QWidgetPrivate::showChildren (this=this@entry=0x55d7ef813aa0, spontaneous=spontaneous@entry=false) at kernel/qwidget.cpp:8183
#26 0x00007fbecd087573 in QWidgetPrivate::show_helper (this=this@entry=0x55d7ef813aa0) at kernel/qwidget.cpp:7768
#27 0x00007fbecd08a683 in QWidgetPrivate::setVisible (this=0x55d7ef813aa0, visible=<optimized out>) at kernel/qwidget.cpp:8111
#28 0x00007fbecd06f114 in QStackedLayout::setCurrentIndex (this=0x55d7eeb8b170, index=1) at kernel/qstackedlayout.cpp:321
#29 0x00007fbecd06f3bd in QStackedLayout::setCurrentWidget (this=0x55d7eeb8b170, widget=widget@entry=0x55d7eff6ff40) at kernel/qstackedlayout.cpp:376
#30 0x00007fbecd201489 in QStackedWidget::setCurrentWidget (this=<optimized out>, widget=0x55d7eff6ff40) at widgets/qstackedwidget.cpp:248
#31 0x00007fbecd8481fc in KPageViewPrivate::_k_pageSelected (previous=..., index=..., this=0x55d7eeb8dac0) at ./src/kpageview.cpp:247
#32 KPageViewPrivate::_k_pageSelected (this=0x55d7eeb8dac0, index=..., previous=...) at ./src/kpageview.cpp:221
#33 0x00007fbecc486980 in doActivate<false> (sender=0x55d7eeb963a0, signal_index=3, argv=0x7fff946c7740) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:395
#34 0x00007fbecc47fd17 in QMetaObject::activate (sender=sender@entry=0x55d7eeb963a0, m=m@entry=0x7fbecc6e6140 <QItemSelectionModel::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff946c7740) at kernel/qobject.cpp:3946
#35 0x00007fbecc400b64 in QItemSelectionModel::selectionChanged (this=this@entry=0x55d7eeb963a0, _t1=..., _t2=...) at .moc/moc_qitemselectionmodel.cpp:475
#36 0x00007fbecc406308 in QItemSelectionModel::emitSelectionChanged (this=0x55d7eeb963a0, newSelection=..., oldSelection=...) at itemmodels/qitemselectionmodel.cpp:1884
#37 0x00007fbecc409972 in QItemSelectionModel::select (this=0x55d7eeb963a0, selection=..., command=...) at itemmodels/qitemselectionmodel.cpp:1338
#38 0x00007fbecc402f3b in QItemSelectionModel::select (command=..., index=..., this=0x55d7eeb963a0) at itemmodels/qitemselectionmodel.cpp:1188
#39 QItemSelectionModel::setCurrentIndex (this=this@entry=0x55d7eeb963a0, index=..., command=command@entry=...) at itemmodels/qitemselectionmodel.cpp:1413
#40 0x00007fbecd846c97 in KPageViewPrivate::updateSelection (this=0x55d7eeb8dac0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractitemmodel.h:60
#41 KPageViewPrivate::updateSelection (this=0x55d7eeb8dac0) at ./src/kpageview.cpp:98
#42 0x00007fbecd848032 in KPageViewPrivate::_k_modelChanged (this=0x55d7eeb8dac0) at ./src/kpageview.cpp:218
#43 0x00007fbecc486980 in doActivate<false> (sender=0x55d7eeb80b40, signal_index=6, argv=0x7fff946c7b40) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:395
#44 0x00007fbecc47fd17 in QMetaObject::activate (sender=sender@entry=0x55d7eeb80b40, m=m@entry=0x7fbecc6e6040 <QAbstractItemModel::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7fff946c7b40) at kernel/qobject.cpp:3946
#45 0x00007fbecc3f1bca in QAbstractItemModel::layoutChanged (this=this@entry=0x55d7eeb80b40, _t1=..., _t2=<optimized out>, _t2@entry=QAbstractItemModel::NoLayoutChangeHint) at .moc/moc_qabstractitemmodel.cpp:571
#46 0x00007fbecd84e300 in KPageWidgetModel::addPage (this=0x55d7eeb80b40, item=item@entry=0x55d7f030c7b0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:160
#47 0x00007fbecd84cd71 in KPageWidget::addPage (this=<optimized out>, item=item@entry=0x55d7f030c7b0) at ./src/kpagewidget_p.h:23
#48 0x00007fbec457971f in ModuleView::addModule (this=this@entry=0x55d7eeb7aa60, module=0x55d7eebadaf8, args=...) at ./core/ModuleView.cpp:286
#49 0x00007fbec4579c48 in ModuleView::loadModule (this=0x55d7eeb7aa60, menuItem=..., args=...) at ./core/ModuleView.cpp:239
#50 0x00007fbec456b1e2 in SidebarMode::loadModule (this=0x55d7eeba5250, activeModule=..., args=...) at ./sidebar/SidebarMode.cpp:495
#51 0x00007fbec4568c26 in SidebarMode::qt_static_metacall (_o=_o@entry=0x55d7eeba5250, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=20, _a=_a@entry=0x7fff946c7f70) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:160
#52 0x00007fbec4569223 in SidebarMode::qt_metacall (this=0x55d7eeba5250, _c=QMetaObject::InvokeMetaMethod, _id=20, _a=0x7fff946c7f70) at ./obj-x86_64-linux-gnu/sidebar/systemsettings_sidebar_mode_autogen/EWIEGA46WW/moc_SidebarMode.cpp:661
#53 0x00007fbecb4fcb95 in QQmlObjectOrGadget::metacall (this=this@entry=0x7fff946c82b0, type=type@entry=QMetaObject::InvokeMetaMethod, index=<optimized out>, index@entry=32, argv=<optimized out>) at ../../include/QtQml/5.15.1/QtQml/private/../../../../../src/qml/qml/ftw/qflagpointer_p.h:351
#54 0x00007fbecb3c5615 in CallMethod (object=..., index=<optimized out>, returnType=returnType@entry=43, argCount=<optimized out>, argTypes=<optimized out>, engine=engine@entry=0x55d7ee93b2a0, callArgs=<optimized out>, callType=<optimized out>) at jsruntime/qv4qobjectwrapper.cpp:1301
#55 0x00007fbecb3c7717 in CallPrecise (object=..., data=..., engine=engine@entry=0x55d7ee93b2a0, callArgs=callArgs@entry=0x7fbebd3bc5b8, callType=callType@entry=QMetaObject::InvokeMetaMethod) at ../../include/QtQml/5.15.1/QtQml/private/../../../../../src/qml/qml/qqmlpropertydata_p.h:285
#56 0x00007fbecb3c88ff in CallOverloaded (callType=QMetaObject::InvokeMetaMethod, propertyCache=0x55d7eedc80e0, callArgs=0x7fbebd3bc5b8, engine=0x55d7ee93b2a0, data=..., object=...) at jsruntime/qv4qobjectwrapper.cpp:1645
#57 QV4::QObjectMethod::callInternal (this=<optimized out>, thisObject=<optimized out>, argv=<optimized out>, argc=<optimized out>) at jsruntime/qv4qobjectwrapper.cpp:2133
#58 0x00007fbecb3e8091 in QV4::FunctionObject::call (argc=<optimized out>, argv=<optimized out>, thisObject=<optimized out>, this=<optimized out>) at ../../include/QtQml/5.15.1/QtQml/private/../../../../../src/qml/jsruntime/qv4functionobject_p.h:172
#59 QV4::Moth::VME::interpret (frame=0x7fff946c85a0, engine=0x55d7ee93b2a0, code=0x7fbebd3bc540 "") at jsruntime/qv4vme_moth.cpp:754
#60 0x00007fbecb3e9fcf in QV4::Moth::VME::exec (frame=frame@entry=0x7fff946c85a0, engine=engine@entry=0x55d7ee93b2a0) at jsruntime/qv4vme_moth.cpp:463
#61 0x00007fbecb3771ed in QV4::Function::call (this=this@entry=0x55d7eecc1bf0, thisObject=<optimized out>, argv=argv@entry=0x7fbebd3bc500, argc=<optimized out>, context=<optimized out>) at jsruntime/qv4function.cpp:69
#62 0x00007fbecb51de27 in QQmlJavaScriptExpression::evaluate (this=this@entry=0x55d7ef8431b0, callData=callData@entry=0x7fbebd3bc4d0, isUndefined=isUndefined@entry=0x0) at ../../include/QtQml/5.15.1/QtQml/private/../../../../../src/qml/jsruntime/qv4value_p.h:343
#63 0x00007fbecb4c085e in QQmlBoundSignalExpression::evaluate (this=<optimized out>, a=<optimized out>) at ../../include/QtQml/5.15.1/QtQml/private/../../../../../src/qml/jsruntime/qv4jscall_p.h:95
#64 0x00007fbecb4c18f8 in QQmlBoundSignal_callback (e=0x55d7ef843160, a=0x0) at ../../include/QtQml/5.15.1/QtQml/private/../../../../../src/qml/qml/qqmlboundsignalexpressionpointer_p.h:69
#65 0x00007fbecb4fc5fd in QQmlNotifier::emitNotify (endpoint=<optimized out>, a=a@entry=0x0) at qml/qqmlnotifier.cpp:104
#66 0x00007fbecb49ef6f in QQmlData::signalEmitted (object=0x55d7ef83c660, index=64, a=0x0) at qml/qqmlengine.cpp:834
#67 0x00007fbecc4864d5 in doActivate<false> (sender=0x55d7ef83c660, signal_index=64, argv=0x0) at kernel/qobject_p.h:110
#68 0x00007fbec71eca41 in QQuickAbstractButtonPrivate::handleRelease (this=0x55d7ef841150, point=...) at qquickabstractbutton.cpp:182
#69 0x00007fbec720bac9 in QQuickControl::mouseReleaseEvent (this=<optimized out>, event=0x7fff946caae0) at /usr/include/x86_64-linux-gnu/qt5/QtGui/qevent.h:128
#70 0x00007fbecb92f508 in QQuickItem::event (this=0x55d7ef83c660, ev=0x7fff946caae0) at items/qquickitem.cpp:8128
#71 0x00007fbecd047da3 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55d7ef83c660, e=0x7fff946caae0) at kernel/qapplication.cpp:3630
#72 0x00007fbecd050b98 in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3154
#73 0x00007fbecc44f92a in QCoreApplication::notifyInternal2 (receiver=0x55d7ef83c660, event=0x7fff946caae0) at ../../include/QtCore/5.15.1/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#74 0x00007fbecb949945 in QQuickWindowPrivate::deliverMouseEvent (this=this@entry=0x55d7ee975a50, pointerEvent=0x55d7ef003550) at items/qquickwindow.cpp:1996
#75 0x00007fbecb94b06f in QQuickWindowPrivate::deliverPointerEvent (this=this@entry=0x55d7ee975a50, event=0x55d7ef003550) at items/qquickwindow.cpp:2588
#76 0x00007fbecb94bf99 in QQuickWindowPrivate::handleMouseEvent (event=0x7fff946caae0, this=0x55d7ee975a50) at items/qquickwindow.cpp:2433
#77 QQuickWindowPrivate::handleMouseEvent (this=0x55d7ee975a50, event=0x7fff946caae0) at items/qquickwindow.cpp:2386
#78 0x00007fbecc95dd4d in QWindow::event (this=this@entry=0x55d7eeb68e40, ev=ev@entry=0x7fff946caae0) at kernel/qwindow.cpp:2438
#79 0x00007fbecb94da0b in QQuickWindow::event (this=0x55d7eeb68e40, e=0x7fff946caae0) at items/qquickwindow.cpp:1878
#80 0x00007fbecd047da3 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55d7eeb68e40, e=0x7fff946caae0) at kernel/qapplication.cpp:3630
#81 0x00007fbecd050b98 in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3154
#82 0x00007fbecc44f92a in QCoreApplication::notifyInternal2 (receiver=0x55d7eeb68e40, event=0x7fff946caae0) at ../../include/QtCore/5.15.1/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#83 0x00007fbecbc74c5b in QQuickWidget::mouseReleaseEvent (this=<optimized out>, e=0x7fff946cb120) at qquickwidget.cpp:1416
#84 0x00007fbecd08abe6 in QWidget::event (this=this@entry=0x55d7eebeb1d0, event=event@entry=0x7fff946cb120) at kernel/qwidget.cpp:8663
#85 0x00007fbecbc74e03 in QQuickWidget::event (this=0x55d7eebeb1d0, e=0x7fff946cb120) at qquickwidget.cpp:1569
#86 0x00007fbecd047da3 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55d7eebeb1d0, e=0x7fff946cb120) at kernel/qapplication.cpp:3630
#87 0x00007fbecd050e57 in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3074
#88 0x00007fbecc44f92a in QCoreApplication::notifyInternal2 (receiver=0x55d7eebeb1d0, event=0x7fff946cb120) at ../../include/QtCore/5.15.1/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#89 0x00007fbecd050087 in QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x55d7eebeb1d0, event=event@entry=0x7fff946cb120, alienWidget=alienWidget@entry=0x55d7eebeb1d0, nativeWidget=0x55d7ee839220, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2614
#90 0x00007fbecd0a5e34 in QWidgetWindow::handleMouseEvent (this=0x55d7ee984ea0, event=0x7fff946cb5a0) at /usr/include/c++/9/bits/atomic_base.h:413
#91 0x00007fbecd0a9154 in QWidgetWindow::event (event=0x7fff946cb5a0, this=0x55d7ee984ea0) at kernel/qwidgetwindow.cpp:300
#92 QWidgetWindow::event (this=0x55d7ee984ea0, event=0x7fff946cb5a0) at kernel/qwidgetwindow.cpp:239
#93 0x00007fbecd047da3 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55d7ee984ea0, e=0x7fff946cb5a0) at kernel/qapplication.cpp:3630
#94 0x00007fbecd050b98 in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3154
#95 0x00007fbecc44f92a in QCoreApplication::notifyInternal2 (receiver=0x55d7ee984ea0, event=0x7fff946cb5a0) at ../../include/QtCore/5.15.1/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#96 0x00007fbecc95253b in QGuiApplicationPrivate::processMouseEvent (e=e@entry=0x55d7ef8146c0) at kernel/qguiapplication.cpp:2277
#97 0x00007fbecc953ab5 in QGuiApplicationPrivate::processWindowSystemEvent (e=0x55d7ef8146c0) at kernel/qguiapplication.cpp:2002
#98 0x00007fbecc92b7ab in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at kernel/qwindowsysteminterface.cpp:1175
#99 0x00007fbec778ad74 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#100 0x00007fbeca02ffbd in g_main_dispatch (context=0x55d7ee849400) at ../../../glib/gmain.c:3309
#101 g_main_context_dispatch (context=context@entry=0x55d7ee849400) at ../../../glib/gmain.c:3974
#102 0x00007fbeca030240 in g_main_context_iterate (context=context@entry=0x55d7ee849400, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4047
#103 0x00007fbeca0302e3 in g_main_context_iteration (context=0x55d7ee849400, may_block=may_block@entry=1) at ../../../glib/gmain.c:4108
#104 0x00007fbecc4aa232 in QEventDispatcherGlib::processEvents (this=0x55d7ee880480, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#105 0x00007fbecc44e43b in QEventLoop::exec (this=this@entry=0x7fff946cb940, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#106 0x00007fbecc4565e4 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#107 0x000055d7ed04c2b2 in main (argc=<optimized out>, argv=<optimized out>) at ./app/main.cpp:209
[Inferior 1 (process 28466) detached]
Comment 1 Méven Car 2020-11-12 17:40:40 UTC
The code in KAccesConfig is X11 specific.
We need at a minimun first step hide what cannot work and not crash.
Then make it work in Wayland.
Comment 2 Andrey 2020-11-17 16:22:54 UTC
Hi,
Gunnar Schmidt, are you working on this?
I could take it.
Comment 3 Andrey 2020-11-17 17:10:38 UTC
Hm, doesn't seem to crash here:
just only "Screen Reader" tab is accessible on the "Accessibility" pane - other tabs are greyed out.

I'm on built plasma of the same versions as in OP, Wayland session.
Comment 4 Andrey 2020-11-17 19:56:45 UTC
I don't have Spectacle working in my build,
but my KCM looks pretty much the same as here:
https://phabricator.kde.org/D22823?id=62783
Comment 5 Duncan 2020-11-18 03:55:51 UTC
Seeing this bug here too.

Wayland functionality is finally "good enough" that I've been porting my workflow and previously X-only scripts, hotkeys that don't work in wayland, etc, over.

Noticed the "system bell" when (too frequently accidentally) toggling capslock/numlock was missing and a couple days layer when the more pressing porting issues were mostly done, tried to load the accessibility kcm.

It crashed.  So did trying to start just the individual accessibility kcm from krunner, or rather, nothing came up at all.  Trying to run kcmshell5 kcm_access in konsole crashes with a segfault.

straced it and the user config kaccessrc and its notifications rc were the last files touched, along with kdeglobals, but they looked fine.  Still I temp-renamed them and tried again. Same segfault.  Renamed them back.

Quit plasma-wayland to the CLI (no *DM here) and started plasma-X.  Both the caps-lock bell and the accessibility kcm worked fine.

Googled accessibility wayland on bugs.kde and found this.  Trying to run X-only code from a wayland app does explain things. =:^\

FWIW live-git frameworks/plasma/apps via gentoo/kde's overlay.  From this bug looks like this is being worked on but I'll have to do without accidental-capslock toggling popup-notifications/bell until the fix lands. =:^(

On the plus side I've got what I consider the critical workflow and config ported to wayland now and switched it to the default in my plasma startscript I think yesterday.  The switch has been a pain but definitely less so than say the kde3/kde4 upgrade, by **FAR**, and about the same as the kde4/kde-plasma-5 upgrade, AND and it's mostly done, now.  Kool job kdeers! =:^)
Comment 6 Andrey 2020-11-18 10:42:11 UTC
It's probably this commit:
https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/160#note_138381
Comment 7 Andrey 2020-11-19 07:58:03 UTC
Git commit e3bcfc3d4fc6e27283c95b520417408940d5947a by Andrey Butirsky.
Committed on 19/11/2020 at 07:55.
Pushed by butirsky into branch 'master'.

fix: Accessibility KCM crashes on Wayland

It's a workaround: no X specific mouseKeysShortcut() call on Wayland

M  +1    -1    kcms/access/kcmaccess.cpp

https://invent.kde.org/plasma/plasma-desktop/commit/e3bcfc3d4fc6e27283c95b520417408940d5947a