Bug 398547

Summary: Standalone Mouse kcm crashes under Wayland
Product: [Applications] systemsettings Reporter: Patrick Silva <bugseforuns>
Component: kcm_mouseAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash CC: notuxius, unassigned-bugs
Priority: NOR Keywords: drkonqi
Version: 5.13.5   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Patrick Silva 2018-09-12 16:30:28 UTC
Application: kcmshell5 (5.13.80)

Qt Version: 5.11.1
Frameworks Version: 5.51.0
Operating System: Linux 4.15.0-34-generic x86_64
Distribution: KDE neon Developer Edition

-- Information about the crash:
- What I was doing when the application crashed:
try to open mouse kcm via krunner, apps launcher or running 'kcmshell5 mouse' in konsole
Plasma shows crash notification immediately.

The crash can be reproduced every time.

-- Backtrace:
Application: Módulo das Configurações do Sistema (kcmshell5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
[Current thread is 1 (Thread 0x7f2cf0058940 (LWP 19686))]

Thread 3 (Thread 0x7f2cd1355700 (LWP 19688)):
[KCrash Handler]
#6  QQmlPropertyCacheCreator<QQmlTypeCompiler>::propertyCacheForObject (this=0x7f2cd13541c0, obj=0x7f2ccc1d1590, context=..., error=0x7f2cd1354110) at ../../include/QtQml/5.11.1/QtQml/private/../../../../../src/qml/compiler/qqmlpropertycachecreator_p.h:220
#7  0x00007f2ceb301070 in QQmlPropertyCacheCreator<QQmlTypeCompiler>::buildMetaObjectRecursively (this=this@entry=0x7f2cd13541c0, objectIndex=objectIndex@entry=0, context=...) at ../../include/QtQml/5.11.1/QtQml/private/../../../../../src/qml/compiler/qqmlpropertycachecreator_p.h:172
#8  0x00007f2ceb2fc89a in QQmlPropertyCacheCreator<QQmlTypeCompiler>::buildMetaObjects (this=0x7f2cd13541c0) at ../../include/QtQml/5.11.1/QtQml/private/../../../../../src/qml/compiler/qqmlpropertycachecreator_p.h:132
#9  QQmlTypeCompiler::compile (this=this@entry=0x7f2cd13543b0) at compiler/qqmltypecompiler.cpp:87
#10 0x00007f2ceb426ce8 in QQmlTypeData::compile(QQmlRefPointer<QQmlTypeNameCache> const&, QV4::CompiledData::ResolvedTypeReferenceMap const&, std::function<bool (QCryptographicHash*)> const&) (this=this@entry=0x2228050, typeNameCache=..., resolvedTypeCache=..., dependencyHasher=...) at qml/qqmltypeloader.cpp:2615
#11 0x00007f2ceb42db54 in QQmlTypeData::done (this=0x2228050) at qml/qqmltypeloader.cpp:2332
#12 0x00007f2ceb42434c in QQmlDataBlob::tryDone (this=0x2228050) at qml/qqmltypeloader.cpp:673
#13 0x00007f2ceb4245d1 in QQmlTypeLoader::setData (this=this@entry=0x21d55b0, blob=blob@entry=0x2228050, d=...) at qml/qqmltypeloader.cpp:1294
#14 0x00007f2ceb42501d in QQmlTypeLoader::setData (this=this@entry=0x21d55b0, blob=0x2228050, fileName=...) at qml/qqmltypeloader.cpp:1274
#15 0x00007f2ceb4263ba in QQmlTypeLoader::loadThread (this=0x21d55b0, blob=blob@entry=0x2228050) at qml/qqmltypeloader.cpp:1147
#16 0x00007f2ceb42643d in QQmlTypeLoaderThread::loadThread (this=<optimized out>, b=0x2228050) at qml/qqmltypeloader.cpp:890
#17 0x00007f2ceb4984d8 in QQmlThreadPrivate::threadEvent (this=0x21d56a0) at qml/ftw/qqmlthread.cpp:197
#18 0x00007f2ceb498b8a in QQmlThreadPrivate::event (this=0x21d56a0, e=0x2228300) at qml/ftw/qqmlthread.cpp:135
#19 0x00007f2ced96439c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007f2ced96bab0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007f2cecb97228 in QCoreApplication::notifyInternal2 (receiver=0x21d56a0, event=event@entry=0x2228300) at kernel/qcoreapplication.cpp:1048
#22 0x00007f2cecb99e2e in QCoreApplication::sendEvent (event=0x2228300, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#23 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x21d5900) at kernel/qcoreapplication.cpp:1745
#24 0x00007f2cecb9a2a8 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1599
#25 0x00007f2cecbeea93 in postEventSourceDispatch (s=0x7f2ccc0012d0) at kernel/qeventdispatcher_glib.cpp:276
#26 0x00007f2ce71b1197 in g_main_dispatch (context=0x7f2ccc000990) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3154
#27 g_main_context_dispatch (context=context@entry=0x7f2ccc000990) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3769
#28 0x00007f2ce71b13f0 in g_main_context_iterate (context=context@entry=0x7f2ccc000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3840
#29 0x00007f2ce71b149c in g_main_context_iteration (context=0x7f2ccc000990, may_block=may_block@entry=1) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3901
#30 0x00007f2cecbee0bb in QEventDispatcherGlib::processEvents (this=0x7f2ccc0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#31 0x00007f2cecb955ba in QEventLoop::exec (this=this@entry=0x7f2cd1354c50, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#32 0x00007f2cec9ca5e4 in QThread::exec (this=this@entry=0x21d56a0) at thread/qthread.cpp:525
#33 0x00007f2ceb498195 in QQmlThreadPrivate::run (this=0x21d56a0) at qml/ftw/qqmlthread.cpp:148
#34 0x00007f2cec9d5727 in QThreadPrivate::start (arg=0x21d56a0) at thread/qthread_unix.cpp:367
#35 0x00007f2ce956d6ba in start_thread (arg=0x7f2cd1355700) at pthread_create.c:333
#36 0x00007f2cefa2d41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f2cda99c700 (LWP 19687)):
#0  0x00007f2cefa2174d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f2ce71b138c in g_main_context_poll (priority=2147483647, n_fds=1, fds=0x7f2cd4003220, timeout=<optimized out>, context=0x7f2cd4000990) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:4135
#2  g_main_context_iterate (context=context@entry=0x7f2cd4000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3835
#3  0x00007f2ce71b149c in g_main_context_iteration (context=0x7f2cd4000990, may_block=may_block@entry=1) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3901
#4  0x00007f2cecbee0bb in QEventDispatcherGlib::processEvents (this=0x7f2cd40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f2cecb955ba in QEventLoop::exec (this=this@entry=0x7f2cda99bc40, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#6  0x00007f2cec9ca5e4 in QThread::exec (this=this@entry=0x7f2cee797d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:525
#7  0x00007f2cee51ef35 in QDBusConnectionManager::run (this=0x7f2cee797d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#8  0x00007f2cec9d5727 in QThreadPrivate::start (arg=0x7f2cee797d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:367
#9  0x00007f2ce956d6ba in start_thread (arg=0x7f2cda99c700) at pthread_create.c:333
#10 0x00007f2cefa2d41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f2cf0058940 (LWP 19686)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f2cec9d65cb in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x21d5a00) at thread/qwaitcondition_unix.cpp:143
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x21d5710, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:215
#3  0x00007f2ceb498843 in QQmlThreadPrivate::wait (this=<optimized out>) at qml/ftw/qqmlthread.cpp:63
#4  QQmlThread::internalCallMethodInThread (this=0x21d5790, message=<optimized out>) at qml/ftw/qqmlthread.cpp:340
#5  0x00007f2ceb41fb65 in QQmlThread::callMethodInThread<QQmlDataBlob*, QQmlDataBlob*, QQmlTypeLoaderThread> (arg=<synthetic pointer>, Member=<optimized out>, this=<optimized out>) at ../../include/QtQml/5.11.1/QtQml/private/../../../../../src/qml/qml/ftw/qqmlthread_p.h:167
#6  QQmlTypeLoaderThread::load (this=<optimized out>, b=b@entry=0x2228050) at qml/qqmltypeloader.cpp:827
#7  0x00007f2ceb4264a9 in PlainLoader::load (this=<optimized out>, loader=0x21d55b0, blob=0x2228050) at qml/qqmltypeloader.cpp:996
#8  QQmlTypeLoader::doLoad<PlainLoader> (mode=QQmlTypeLoader::PreferSynchronous, blob=0x2228050, loader=..., this=0x21d55b0) at qml/qqmltypeloader.cpp:1060
#9  QQmlTypeLoader::load (this=this@entry=0x21d55b0, blob=blob@entry=0x2228050, mode=mode@entry=QQmlTypeLoader::PreferSynchronous) at qml/qqmltypeloader.cpp:1083
#10 0x00007f2ceb427fe8 in QQmlTypeLoader::getType (this=0x21d55b0, unNormalizedUrl=..., mode=QQmlTypeLoader::PreferSynchronous) at qml/qqmltypeloader.cpp:1692
#11 0x00007f2ceb40454a in QQmlComponentPrivate::loadUrl (this=0x2227f60, newUrl=..., mode=QQmlComponent::PreferSynchronous) at qml/qqmlcomponent.cpp:670
#12 0x00007f2cec39e240 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5
#13 0x00007f2cd9439b93 in LibinputConfig::LibinputConfig (this=0x20961f0, parent=0x2093930, backend=<optimized out>) at /workspace/build/kcms/mouse/kcm/libinput/libinput_config.cpp:89
#14 0x00007f2cd943867b in ConfigPlugin::implementation (parent=parent@entry=0x2093930) at /workspace/build/kcms/mouse/kcm/configplugin.cpp:35
#15 0x00007f2cd9438251 in ConfigContainer::ConfigContainer (this=0x2093930, parent=<optimized out>, args=...) at /workspace/build/kcms/mouse/kcm/configcontainer.cpp:39
#16 0x00007f2cd943818b in KPluginFactory::createInstance<ConfigContainer, QWidget> (parentWidget=<optimized out>, parent=<optimized out>, args=...) at /usr/include/KF5/KCoreAddons/kpluginfactory.h:533
#17 0x00007f2cee7db01f in KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#18 0x00007f2cef6f5826 in KCModuleLoader::loadModule(KCModuleInfo const&, KCModuleLoader::ErrorReporting, QWidget*, QStringList const&) () from /usr/lib/x86_64-linux-gnu/libKF5KCMUtils.so.5
#19 0x00007f2cef6fd16f in ?? () from /usr/lib/x86_64-linux-gnu/libKF5KCMUtils.so.5
#20 0x00007f2cef6fdd25 in KCModuleProxy::realModule() const () from /usr/lib/x86_64-linux-gnu/libKF5KCMUtils.so.5
#21 0x00007f2cef6fa1bc in KCMultiDialog::addModule(KCModuleInfo const&, KPageWidgetItem*, QStringList const&) () from /usr/lib/x86_64-linux-gnu/libKF5KCMUtils.so.5
#22 0x00007f2cefcf8971 in kdemain (_argc=2, _argv=<optimized out>) at /workspace/build/kcmshell/main.cpp:306
#23 0x00007f2cef946830 in __libc_start_main (main=0x4006b0 <main(int, char**)>, argc=2, argv=0x7fffaaf042a8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffaaf04298) at ../csu/libc-start.c:291
#24 0x00000000004006e9 in _start ()

Reported using DrKonqi
Comment 1 Patrick Silva 2019-10-31 21:37:58 UTC
it's not crashing anymore.

Qt Version: 5.13.1
Frameworks Version: 5.64.0
Operating System: Linux 5.0.0-29-generic x86_64
Windowing system: X11
Distribution: KDE neon Unstable Edition