Bug 303576 - Systemsettings crashed when trying to open lightdm kde greeter settings
Summary: Systemsettings crashed when trying to open lightdm kde greeter settings
Status: RESOLVED NOT A BUG
Alias: None
Product: lightdm
Classification: Miscellaneous
Component: config (show other bugs)
Version: master
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: David Edmundson
URL:
Keywords:
: 304965 306201 307333 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-07-15 18:47 UTC by Hrvoje Senjan
Modified: 2013-05-11 17:12 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
.desktop file with workaround (98 bytes, application/octet-stream)
2012-08-23 09:40 UTC, markuss
Details
Remove custom config widgets (1.07 KB, patch)
2012-08-23 10:32 UTC, David Edmundson
Details
Backtrace with patch (12.30 KB, application/octet-stream)
2012-08-23 10:55 UTC, Hrvoje Senjan
Details
Solution for all™ (700 bytes, patch)
2013-05-11 16:44 UTC, Hrvoje Senjan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hrvoje Senjan 2012-07-15 18:47:44 UTC
Application: systemsettings (1.0)
KDE Platform Version: 4.8.97 "release 5" (Compiled from sources)
Qt Version: 4.8.2
Operating System: Linux 3.4.4-1.1-desktop x86_64
Distribution: "openSUSE 12.2 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:

Happens every time, using latest master. Note that opening kcmshell4 kcm_lightdm does not crash.

The crash can be reproduced every time.

-- Backtrace:
Application: System Settings (systemsettings), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fc2c6a1e780 (LWP 18133))]

Thread 2 (Thread 0x7fc2a989b700 (LWP 18137)):
#0  0x00007fc2bd49cd9f in __pthread_mutex_unlock_usercnt () from /lib64/libpthread.so.0
#1  0x00007fc2bd2213d1 in g_mutex_unlock () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fc2bd1e55ac in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fc2bd1e5b32 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#4  0x00007fc2aa83e826 in ?? () from /usr/lib64/libgio-2.0.so.0
#5  0x00007fc2bd208065 in ?? () from /usr/lib64/libglib-2.0.so.0
#6  0x00007fc2bd499e0e in start_thread () from /lib64/libpthread.so.0
#7  0x00007fc2c39e12bd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fc2c6a1e780 (LWP 18133)):
[KCrash Handler]
#6  0x00007fc2c65af731 in QFormInternal::domPropertyToVariant (afb=0x2226380, meta=<optimized out>, p=0x22ad6e0) at ../lib/uilib/properties.cpp:140
#7  0x00007fc2c6560739 in QFormInternal::QAbstractFormBuilder::toVariant (this=<optimized out>, meta=<optimized out>, p=<optimized out>) at ../lib/uilib/abstractformbuilder.cpp:1002
#8  0x00007fc2c6579b16 in QFormInternal::QFormBuilder::applyProperties (this=0x2226380, o=0x22b2bd0, properties=...) at ../lib/uilib/formbuilder.cpp:547
#9  0x00007fc2c655896f in QFormInternal::FormBuilderPrivate::applyProperties (this=0x2226380, o=0x22b2bd0, properties=...) at quiloader.cpp:414
#10 0x00007fc2c656bd79 in QFormInternal::QAbstractFormBuilder::create (this=0x2226380, ui_widget=0x22ad470, parentWidget=0x222fe20) at ../lib/uilib/abstractformbuilder.cpp:303
#11 0x00007fc2c6579e85 in QFormInternal::QFormBuilder::create (this=0x2226380, ui_widget=0x22ad470, parentWidget=0x222fe20) at ../lib/uilib/formbuilder.cpp:157
#12 0x00007fc2c6556c3e in QFormInternal::FormBuilderPrivate::create (this=0x2226380, ui_widget=<optimized out>, parentWidget=<optimized out>) at quiloader.cpp:452
#13 0x00007fc2c656e7c3 in QFormInternal::QAbstractFormBuilder::create (this=0x2226380, ui=0x7fff52bacdf0, parentWidget=0x222fe20) at ../lib/uilib/abstractformbuilder.cpp:248
#14 0x00007fc2c65572a5 in QFormInternal::FormBuilderPrivate::create (this=0x2226380, ui=0x7fff52bacdf0, parentWidget=0x222fe20) at quiloader.cpp:447
#15 0x00007fc2aaf37b67 in QFormInternal::QAbstractFormBuilder::load (this=0x2226380, dev=<optimized out>, parentWidget=0x222fe20) at ../lib/uilib/abstractformbuilder.cpp:221
#16 0x00007fc2aaf2f5cd in QUiLoader::load (this=<optimized out>, device=0x7fff52bacf70, parentWidget=0x222fe20) at quiloader.cpp:664
#17 0x00007fc2aaf2d66c in ConfigOptions::setTheme (this=0x222fe20, themeDir=...) at /usr/src/debug/lightdm-0.1.60git.1342217385/kcm/configoptions.cpp:95
#18 0x00007fc2aaf26b75 in ThemeConfig::onThemeSelected (this=this@entry=0x2234a90, index=...) at /usr/src/debug/lightdm-0.1.60git.1342217385/kcm/themeconfig.cpp:108
#19 0x00007fc2aaf26ea5 in ThemeConfig::ThemeConfig (this=0x2234a90, parent=<optimized out>) at /usr/src/debug/lightdm-0.1.60git.1342217385/kcm/themeconfig.cpp:68
#20 0x00007fc2aaf2ca27 in LightDMKcm::LightDMKcm (this=0x209e410, parent=<optimized out>, args=...) at /usr/src/debug/lightdm-0.1.60git.1342217385/kcm/lightdmkcm.cpp:64
#21 0x00007fc2aaf2d2f4 in KPluginFactory::createInstance<LightDMKcm, QWidget> (parentWidget=<optimized out>, parent=<optimized out>, args=...) at /usr/include/kpluginfactory.h:477
#22 0x00007fc2c4906bd5 in KPluginFactory::create (this=0x1fbe720, iface=0x7fc2c5c23cc0 <qt_meta_stringdata_KCModule> "KCModule", parentWidget=0x0, parent=0x1f80ab0, args=..., keyword=...) at /usr/src/debug/kdelibs-git/kdecore/util/kpluginfactory.cpp:203
#23 0x00007fc2c6107eea in create<KCModule> (args=..., keyword=..., parent=0x1f80ab0, parentWidget=0x0, this=<optimized out>) at /usr/src/debug/kdelibs-git/kdecore/util/kpluginfactory.h:531
#24 createInstance<KCModule> (error=0x7fff52bad450, args=..., parent=0x1f80ab0, parentWidget=0x0, this=0x1dc9ac0) at /usr/src/debug/kdelibs-git/kdecore/services/kservice.h:565
#25 createInstance<KCModule> (error=0x7fff52bad450, args=..., parent=0x1f80ab0, this=0x1dc9ac0) at /usr/src/debug/kdelibs-git/kdecore/services/kservice.h:542
#26 KCModuleLoader::loadModule (mod=..., report=KCModuleLoader::Inline, parent=0x1f80ab0, args=...) at /usr/src/debug/kdelibs-git/kutils/kcmoduleloader.cpp:89
#27 0x00007fc2c610ced0 in KCModuleProxyPrivate::loadModule (this=this@entry=0x1e85210) at /usr/src/debug/kdelibs-git/kutils/kcmoduleproxy.cpp:106
#28 0x00007fc2c610d625 in KCModuleProxy::realModule (this=this@entry=0x1f80ab0) at /usr/src/debug/kdelibs-git/kutils/kcmoduleproxy.cpp:83
#29 0x00007fc2c610d662 in KCModuleProxy::showEvent (this=0x1f80ab0, ev=0x7fff52badf10) at /usr/src/debug/kdelibs-git/kutils/kcmoduleproxy.cpp:197
#30 0x00007fc2c4df10fe in QWidget::event (this=0x1f80ab0, event=0x7fff52badf10) at kernel/qwidget.cpp:8578
#31 0x00007fc2c4da164c in QApplicationPrivate::notify_helper (this=this@entry=0x1b49de0, receiver=receiver@entry=0x1f80ab0, e=e@entry=0x7fff52badf10) at kernel/qapplication.cpp:4551
#32 0x00007fc2c4da5aca in QApplication::notify (this=0x7fff52bb0730, receiver=0x1f80ab0, e=0x7fff52badf10) at kernel/qapplication.cpp:4412
#33 0x00007fc2c5ab5126 in KApplication::notify (this=0x7fff52bb0730, receiver=0x1f80ab0, event=0x7fff52badf10) at /usr/src/debug/kdelibs-git/kdeui/kernel/kapplication.cpp:311
#34 0x00007fc2c412516e in QCoreApplication::notifyInternal (this=0x7fff52bb0730, receiver=0x1f80ab0, event=0x7fff52badf10) at kernel/qcoreapplication.cpp:915
#35 0x00007fc2c4df3107 in sendEvent (event=0x7fff52badf10, receiver=0x1f80ab0) at ../../src/corelib/kernel/qcoreapplication.h:231
#36 QWidgetPrivate::show_helper (this=0x1ef1c20) at kernel/qwidget.cpp:7551
#37 0x00007fc2c4df2f7a in QWidgetPrivate::showChildren (this=this@entry=0x1e85bf0, spontaneous=spontaneous@entry=false) at kernel/qwidget.cpp:7859
#38 0x00007fc2c4df300d in QWidgetPrivate::show_helper (this=this@entry=0x1e85bf0) at kernel/qwidget.cpp:7498
#39 0x00007fc2c4df33f2 in QWidget::setVisible (this=0x1e865f0, visible=<optimized out>) at kernel/qwidget.cpp:7773
#40 0x00007fc2c4df2f8e in show (this=0x1e865f0) at ../../src/gui/kernel/qwidget.h:494
#41 QWidgetPrivate::showChildren (this=this@entry=0x1f364d0, spontaneous=spontaneous@entry=false) at kernel/qwidget.cpp:7861
#42 0x00007fc2c4df300d in QWidgetPrivate::show_helper (this=this@entry=0x1f364d0) at kernel/qwidget.cpp:7498
#43 0x00007fc2c4df33f2 in QWidget::setVisible (this=0x209ff70, visible=<optimized out>) at kernel/qwidget.cpp:7773
#44 0x00007fc2c4dd4e2a in show (this=0x209ff70) at ../../src/gui/kernel/qwidget.h:494
#45 QStackedLayout::setCurrentIndex (this=0x1e7f850, index=1) at kernel/qstackedlayout.cpp:311
#46 0x00007fc2c5ae36ff in KPageViewPrivate::_k_pageSelected (this=0x1e7edb0, index=..., previous=...) at /usr/src/debug/kdelibs-git/kdeui/paged/kpageview.cpp:235
#47 0x00007fc2c413b9ff in QMetaObject::activate (sender=0x2150f60, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff52bae3d0) at kernel/qobject.cpp:3556
#48 0x00007fc2c52fb377 in QItemSelectionModel::selectionChanged (this=this@entry=0x2150f60, _t1=..., _t2=...) at .moc/release-shared/moc_qitemselectionmodel.cpp:166
#49 0x00007fc2c5300013 in QItemSelectionModel::emitSelectionChanged (this=this@entry=0x2150f60, newSelection=..., oldSelection=...) at itemviews/qitemselectionmodel.cpp:1544
#50 0x00007fc2c53011dc in QItemSelectionModel::select (this=0x2150f60, selection=..., command=...) at itemviews/qitemselectionmodel.cpp:1110
#51 0x00007fc2c52fce8b in QItemSelectionModel::select (this=this@entry=0x2150f60, index=..., command=...) at itemviews/qitemselectionmodel.cpp:985
#52 0x00007fc2c52fb5c1 in QItemSelectionModel::setCurrentIndex (this=0x2150f60, index=..., command=...) at itemviews/qitemselectionmodel.cpp:1174
#53 0x00007fc2c5ae255f in KPageViewPrivate::_k_rebuildGui (this=0x1e7edb0) at /usr/src/debug/kdelibs-git/kdeui/paged/kpageview.cpp:70
#54 0x00007fc2c5ae3465 in KPageViewPrivate::_k_modelChanged (this=0x1e7edb0) at /usr/src/debug/kdelibs-git/kdeui/paged/kpageview.cpp:190
#55 0x00007fc2c413b9ff in QMetaObject::activate (sender=0x1e83fb0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3556
#56 0x00007fc2c5ae7c21 in KPageWidgetModel::addPage (this=0x1e83fb0, item=0x1cb37f0) at /usr/src/debug/kdelibs-git/kdeui/paged/kpagewidgetmodel.cpp:401
#57 0x00007fc2c5ee44c0 in ModuleView::addModule (this=this@entry=0x1e7e320, module=0x1e5edd8) at /usr/src/debug/kde-workspace-git/systemsettings/core/ModuleView.cpp:191
#58 0x00007fc2c5ee4ae2 in ModuleView::loadModule (this=0x1e7e320, menuItem=...) at /usr/src/debug/kde-workspace-git/systemsettings/core/ModuleView.cpp:144
#59 0x00007fc2ad95fe98 in IconMode::changeModule (this=0x1d42e20, activeModule=...) at /usr/src/debug/kde-workspace-git/systemsettings/icons/IconMode.cpp:134
#60 0x00007fc2c413b9ff in QMetaObject::activate (sender=0x1b458d0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff52baec00) at kernel/qobject.cpp:3556
#61 0x00007fc2c52a6315 in QAbstractItemView::activated (this=this@entry=0x1b458d0, _t1=...) at .moc/release-shared/moc_qabstractitemview.cpp:362
#62 0x00007fc2c52a7ebc in QAbstractItemView::mouseReleaseEvent (this=0x1b458d0, event=0x7fff52bafad0) at itemviews/qabstractitemview.cpp:1821
#63 0x00007fc2c52c5b5e in QListView::mouseReleaseEvent (this=<optimized out>, e=<optimized out>) at itemviews/qlistview.cpp:799
#64 0x00007fc2c5a8c12b in KCategorizedView::mouseReleaseEvent (this=0x1b458d0, event=0x7fff52bafad0) at /usr/src/debug/kdelibs-git/kdeui/itemviews/kcategorizedview.cpp:1059
#65 0x00007fc2c4df0d80 in QWidget::event (this=0x1b458d0, event=0x7fff52bafad0) at kernel/qwidget.cpp:8371
#66 0x00007fc2c519b1e6 in QFrame::event (this=0x1b458d0, e=0x7fff52bafad0) at widgets/qframe.cpp:557
#67 0x00007fc2c52a8913 in QAbstractItemView::viewportEvent (this=0x1b458d0, event=0x7fff52bafad0) at itemviews/qabstractitemview.cpp:1644
#68 0x00007fc2c41252d6 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0x1e7eaf0, event=0x7fff52bafad0) at kernel/qcoreapplication.cpp:1025
#69 0x00007fc2c4da161c in QApplicationPrivate::notify_helper (this=this@entry=0x1b49de0, receiver=receiver@entry=0x1e7eaf0, e=e@entry=0x7fff52bafad0) at kernel/qapplication.cpp:4547
#70 0x00007fc2c4da632b in QApplication::notify (this=<optimized out>, receiver=0x1e7eaf0, e=0x7fff52bafad0) at kernel/qapplication.cpp:4094
#71 0x00007fc2c5ab5126 in KApplication::notify (this=0x7fff52bb0730, receiver=0x1e7eaf0, event=0x7fff52bafad0) at /usr/src/debug/kdelibs-git/kdeui/kernel/kapplication.cpp:311
#72 0x00007fc2c412516e in QCoreApplication::notifyInternal (this=0x7fff52bb0730, receiver=0x1e7eaf0, event=0x7fff52bafad0) at kernel/qcoreapplication.cpp:915
#73 0x00007fc2c4da248b in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#74 QApplicationPrivate::sendMouseEvent (receiver=0x1e7eaf0, event=0x7fff52bafad0, alienWidget=0x1e7eaf0, nativeWidget=0x1b458d0, buttonDown=0x7fc2c5876248 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3162
#75 0x00007fc2c4e1cc74 in QETWidget::translateMouseEvent (this=this@entry=0x1b458d0, event=event@entry=0x7fff52bb0240) at kernel/qapplication_x11.cpp:4513
#76 0x00007fc2c4e1ba01 in QApplication::x11ProcessEvent (this=0x7fff52bb0730, event=0x7fff52bb0240) at kernel/qapplication_x11.cpp:3636
#77 0x00007fc2c4e41cd2 in x11EventSourceDispatch (s=0x1b4c2b0, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#78 0x00007fc2bd1e5405 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#79 0x00007fc2bd1e5738 in ?? () from /usr/lib64/libglib-2.0.so.0
#80 0x00007fc2bd1e57f4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#81 0x00007fc2c41533d6 in QEventDispatcherGlib::processEvents (this=0x1b0ca70, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#82 0x00007fc2c4e4194e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#83 0x00007fc2c4123ebf in QEventLoop::processEvents (this=this@entry=0x7fff52bb0610, flags=...) at kernel/qeventloop.cpp:149
#84 0x00007fc2c4124148 in QEventLoop::exec (this=0x7fff52bb0610, flags=...) at kernel/qeventloop.cpp:204
#85 0x00007fc2c4128de8 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#86 0x000000000040b3fe in main (argc=5, argv=0x7fff52bb0878) at /usr/src/debug/kde-workspace-git/systemsettings/app/main.cpp:49

Possible duplicates by query: bug 214954.

Reported using DrKonqi
Comment 1 David Edmundson 2012-07-15 21:03:47 UTC
Happens every time, using latest master. Note that opening kcmshell4 kcm_lightdm does not crash.

This seems very weird. Do you have any unusual installs/setups. Are kcmshell4 and systemsettings both from your distribution?
Comment 2 Hrvoje Senjan 2012-07-15 21:58:12 UTC
Neither kcmshell nor systemsettings are SUSE's, but they are both from the same build/pull - sometimes saturday 4 pm (UCT+1)
Comment 3 Hrvoje Senjan 2012-07-15 21:58:55 UTC
Oh and, nothing exotic in my setup
Comment 4 David Edmundson 2012-07-19 23:22:58 UTC
Reported by another user too, confirming (but not understanding)
Comment 5 David Edmundson 2012-08-11 09:55:47 UTC
*** Bug 304965 has been marked as a duplicate of this bug. ***
Comment 6 markuss 2012-08-11 10:08:26 UTC
So much for Dr Konqi finding dupes… ;-)

I am also on openSUSE. I got the packages from https://build.opensuse.org/project/show?project=home%3Amlin7442
After I saw that this project owner does not build against SC 4.9 I branched the project and build it against 4.9.0:
https://build.opensuse.org/project/show?project=home%3AKAMiKAZOW%3Abranches%3Ahome%3Amlin7442
Same result.

Unlike the initial reporter, kcmshell4 crashes here, too.
I am no expert but the spec file looks innocent to me:
https://build.opensuse.org/package/files?package=lightdm-kde-greeter&project=home%3Amlin7442

Application: KDE-Kontrollmodul (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0xb56f6710 (LWP 2924))]

Thread 2 (Thread 0xaea8ab70 (LWP 2925)):
#0  0xb5fbabb4 in poll () from /lib/libc.so.6
#1  0xb597df9b in g_poll () from /usr/lib/libglib-2.0.so.0
#2  0xb596f486 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0xb596fb8b in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#4  0xaecec25a in ?? () from /usr/lib/libgio-2.0.so.0
#5  0xb5996304 in ?? () from /usr/lib/libglib-2.0.so.0
#6  0xb212ba01 in ?? () from /usr/X11R6/lib/libGL.so.1
#7  0x5c8b0824 in ?? ()
#8  0xbab80424 in ?? ()
#9  0xcd000000 in ?? ()
#10 0x3dd38980 in ?? ()
#11 0xfffff001 in ?? ()
#12 0xe8c30173 in ?? ()
#13 0x000e3233 in ?? ()
#14 0xae14c181 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 1 (Thread 0xb56f6710 (LWP 2924)):
[KCrash Handler]
#6  0xb4bf319c in QFormInternal::domPropertyToVariant (afb=0x83ca288, meta=0xb6c0f47c, p=0x8445560) at ../lib/uilib/properties.cpp:140
#7  0xb4b9d82a in QFormInternal::QAbstractFormBuilder::toVariant (this=0x83ca288, meta=0xb6c0f47c, p=0x8445560) at ../lib/uilib/abstractformbuilder.cpp:1002
#8  0xb4bb8241 in QFormInternal::QFormBuilder::applyProperties (this=0x83ca288, o=0x84479e8, properties=...) at ../lib/uilib/formbuilder.cpp:547
#9  0xb4b94967 in QFormInternal::FormBuilderPrivate::applyProperties (this=0x83ca288, o=0x84479e8, properties=...) at quiloader.cpp:414
#10 0xb4ba743a in QFormInternal::QAbstractFormBuilder::create (this=0x83ca288, ui_widget=0x8412500, parentWidget=0x83c9a88) at ../lib/uilib/abstractformbuilder.cpp:303
#11 0xb4bb860e in QFormInternal::QFormBuilder::create (this=0x83ca288, ui_widget=0x8412500, parentWidget=0x83c9a88) at ../lib/uilib/formbuilder.cpp:157
#12 0xb4b92436 in QFormInternal::FormBuilderPrivate::create (this=0x83ca288, ui_widget=0x8412500, parentWidget=0x83c9a88) at quiloader.cpp:452
#13 0xb4bac764 in QFormInternal::QAbstractFormBuilder::create (this=0x83ca288, ui=0xbfa754e0, parentWidget=0x83c9a88) at ../lib/uilib/abstractformbuilder.cpp:248
#14 0xb4bb7f7b in QFormInternal::QFormBuilder::create (this=0x83ca288, ui=0xbfa754e0, parentWidget=0x83c9a88) at ../lib/uilib/formbuilder.cpp:369
#15 0xb4b92c29 in QFormInternal::FormBuilderPrivate::create (this=0x83ca288, ui=0xbfa754e0, parentWidget=0x0) at quiloader.cpp:447
#16 0xaedfc4d6 in QFormInternal::QAbstractFormBuilder::load (this=0x83ca288, dev=0x0, parentWidget=0x1) at ../lib/uilib/abstractformbuilder.cpp:221
#17 0xaedf3d2f in QUiLoader::load (this=0xbfa7562c, device=0xbfa75640, parentWidget=0x83c9a88) at quiloader.cpp:664
#18 0xaedf0664 in ConfigOptions::setTheme (this=0x83c9a88, themeDir=...) at /usr/src/debug/lightdm-kde-greeter-0.2.1/kcm/configoptions.cpp:95
#19 0xaede81b8 in ThemeConfig::onThemeSelected (this=0x83cdc90, index=...) at /usr/src/debug/lightdm-kde-greeter-0.2.1/kcm/themeconfig.cpp:108
#20 0xaede8584 in ThemeConfig::ThemeConfig (this=0x83cdc90, parent=0x824aea8) at /usr/src/debug/lightdm-kde-greeter-0.2.1/kcm/themeconfig.cpp:68
#21 0xaedef81f in LightDMKcm::LightDMKcm (this=0x824aea8, parent=0x8304a28, args=...) at /usr/src/debug/lightdm-kde-greeter-0.2.1/kcm/lightdmkcm.cpp:64
#22 0xaedf0257 in KPluginFactory::createInstance<LightDMKcm, QWidget> (parentWidget=0x0, parent=0x8304a28, args=...) at /usr/include/kpluginfactory.h:477
#23 0xb7156226 in KPluginFactory::create (this=0x82e8370, iface=0xb77003c0 "KCModule", parentWidget=0x0, parent=0x8304a28, args=..., keyword=...) at /usr/src/debug/kdelibs-4.9.0/kdecore/util/kpluginfactory.cpp:203
#24 0xb284dee9 in create<KCModule> (parent=0x8304a28, this=0x82e8370, args=..., keyword=..., parentWidget=0x0) at /usr/src/debug/kdelibs-4.9.0/kdecore/util/kpluginfactory.h:531
#25 createInstance<KCModule> (error=0xbfa75a98, args=..., parent=0x8304a28, parentWidget=0x0, this=0x827ba68) at /usr/src/debug/kdelibs-4.9.0/kdecore/services/kservice.h:565
#26 createInstance<KCModule> (error=0xbfa75a98, args=..., parent=0x8304a28, this=0x827ba68) at /usr/src/debug/kdelibs-4.9.0/kdecore/services/kservice.h:542
#27 KCModuleLoader::loadModule (mod=..., report=KCModuleLoader::Inline, parent=0x8304a28, args=...) at /usr/src/debug/kdelibs-4.9.0/kutils/kcmoduleloader.cpp:89
#28 0xb2853749 in KCModuleProxyPrivate::loadModule (this=0x829c020) at /usr/src/debug/kdelibs-4.9.0/kutils/kcmoduleproxy.cpp:106
#29 0xb2854594 in KCModuleProxy::realModule (this=0x8304a28) at /usr/src/debug/kdelibs-4.9.0/kutils/kcmoduleproxy.cpp:83
#30 0xb2854912 in KCModuleProxy::useRootOnlyMessage (this=0x8304a28) at /usr/src/debug/kdelibs-4.9.0/kutils/kcmoduleproxy.cpp:315
#31 0xb28503d4 in KCMultiDialog::addModule (this=0x827aaa0, moduleInfo=..., parentItem=0x0, args=...) at /usr/src/debug/kdelibs-4.9.0/kutils/kcmultidialog.cpp:390
#32 0xb52c90e6 in kdemain () from /usr/lib/libkdeinit4_kcmshell4.so
#33 0x0804fc3f in _start ()
Comment 7 David Edmundson 2012-08-11 10:14:42 UTC
Thanks. Interestingly everyone with this crash appears to be running SuSE.
Comment 8 markuss 2012-08-11 10:17:38 UTC
Hold on a minute. I just ran "kcmshell4 lightdm" from the command line instead of simply double-clicking on the .desktop file within Dolphin and it runs. WTF?
Comment 9 markuss 2012-08-11 10:33:28 UTC
The .desktop file calls "kcmshell4 kcm_lightdm" instead of "kcmshell4 lightdm". Is the error in "kcm_" and what's the difference anyway?
Comment 10 David Edmundson 2012-08-11 10:46:00 UTC
They're both the same thing. When loading a KCModule it automatically also searches for kcm_module_name as well as module_name so you can include it or not.
Comment 11 Hrvoje Senjan 2012-08-11 10:52:32 UTC
Here's the kdebug output when trying to run it from systemsettings (if this helps):

systemsettings(3273)/kutils (KCModuleProxy) KCModuleProxyPrivate::loadModule: Module not already loaded, loading module  "Login Screen (LightDM)"  from library  "kcm_lightdm"  using symbol  "kcm_lightdm"
systemsettings(3273)/KSharedDataCache KSharedDataCache::insert: Overwriting existing old cached entry due to collision.
systemsettings(3273)/KSharedDataCache KSharedDataCache::insert: Overwriting existing old cached entry due to collision.
true 

** (process:3273): WARNING **: Could not get accounts property XKeyboardLayouts

** (process:3273): WARNING **: Could not get accounts property XHasMessages

(process:3273): GLib-CRITICAL **: g_variant_get_type: assertion `value != NULL' failed

(process:3273): GLib-CRITICAL **: g_variant_type_is_subtype_of: assertion `g_variant_type_check (type)' failed

(process:3273): GLib-CRITICAL **: g_variant_get_type_string: assertion `value != NULL' failed

** (process:3273): WARNING **: Unexpected accounts property type for XHasMessages: (null)

(process:3273): GLib-CRITICAL **: g_variant_unref: assertion `value != NULL' failed

** (process:3273): WARNING **: Could not get accounts property XKeyboardLayouts

** (process:3273): WARNING **: Could not get accounts property XHasMessages

(process:3273): GLib-CRITICAL **: g_variant_get_type: assertion `value != NULL' failed

(process:3273): GLib-CRITICAL **: g_variant_type_is_subtype_of: assertion `g_variant_type_check (type)' failed

(process:3273): GLib-CRITICAL **: g_variant_get_type_string: assertion `value != NULL' failed

** (process:3273): WARNING **: Unexpected accounts property type for XHasMessages: (null)

(process:3273): GLib-CRITICAL **: g_variant_unref: assertion `value != NULL' failed

** (process:3273): WARNING **: Could not get accounts property XKeyboardLayouts

** (process:3273): WARNING **: Could not get accounts property XHasMessages

(process:3273): GLib-CRITICAL **: g_variant_get_type: assertion `value != NULL' failed

(process:3273): GLib-CRITICAL **: g_variant_type_is_subtype_of: assertion `g_variant_type_check (type)' failed

(process:3273): GLib-CRITICAL **: g_variant_get_type_string: assertion `value != NULL' failed

** (process:3273): WARNING **: Unexpected accounts property type for XHasMessages: (null)

(process:3273): GLib-CRITICAL **: g_variant_unref: assertion `value != NULL' failed

** (process:3273): WARNING **: Could not get accounts property XKeyboardLayouts

** (process:3273): WARNING **: Could not get accounts property XHasMessages

(process:3273): GLib-CRITICAL **: g_variant_get_type: assertion `value != NULL' failed

(process:3273): GLib-CRITICAL **: g_variant_type_is_subtype_of: assertion `g_variant_type_check (type)' failed

(process:3273): GLib-CRITICAL **: g_variant_get_type_string: assertion `value != NULL' failed

** (process:3273): WARNING **: Unexpected accounts property type for XHasMessages: (null)

(process:3273): GLib-CRITICAL **: g_variant_unref: assertion `value != NULL' failed
loading sessions 
adding session "icewm" 
adding session "kde-plasma" 
adding session "openbox" 
adding session "razor" 
adding session "razor-kwin" 
adding session "razor-openbox" 
adding session "twm" 
loading themes 
("/usr/share/kde4/apps/lightdm-kde-greeter/themes/") 
"/usr/share/kde4/apps/lightdm-kde-greeter/themes/classic/theme.rc" 
"adding theme" "Classic" 
"/usr/share/kde4/apps/lightdm-kde-greeter/themes/userbar/theme.rc" 
"adding theme" "User Bar" 
"/usr/share/kde4/apps/lightdm-kde-greeter/themes/userlist/theme.rc" 
"adding theme" "User List" 
KCrash: Application 'systemsettings' crashing...
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
sock_file=/home/hrvoje/.kde4/socket-shumarija.site/kdeinit4__0
Comment 12 markuss 2012-08-23 09:40:48 UTC
Created attachment 73413 [details]
.desktop file with workaround

Still happens here with LightDM-KDE 0.3.
Anyone having a clue if this bug is openSUSE-specific or not crashing is Kubuntu-specific? Has LightDM-KDE been even packaged for other distributions?

Weird thing is: After I added a simple "sleep 0;" to the Exec line in the .desktop file, it no longer crashes when running it from Dolphin (still crashes System Settings but I guess that one looks at X-KDE-Library=kcm_lightdm and not the Exec line).
Comment 13 David Edmundson 2012-08-23 10:16:32 UTC
It doesn't crash in Kubuntu.

I know it's packaged on Arch and Gentoo and I've not heard any reports of the crash there.
Comment 14 David Edmundson 2012-08-23 10:32:12 UTC
Created attachment 73415 [details]
Remove custom config widgets

Disables the configuration widgets plugin.

This is to see if the crash goes away (I think it will). Note that with this patch you will not be able to set background images. It's purely to try and identify what the issue could be.
Comment 15 David Edmundson 2012-08-23 10:32:46 UTC
Could someone with the crash please try with the above patch.
Comment 16 Hrvoje Senjan 2012-08-23 10:55:36 UTC
Created attachment 73416 [details]
Backtrace with patch

Still crashes :/
Comment 17 Hrvoje Senjan 2012-08-23 11:02:31 UTC
(In reply to comment #16)
> 
> Still crashes :/

Note that versioning '1.0.60' is just that, versioning, this is with 0.3 + your patch.
Comment 18 David Edmundson 2012-08-23 11:04:42 UTC
OK, thanks ever so much for trying that, it helped rule something out. I'm out of theories now though.

Could you tell me what Qt version you have? Does the file themes/classic/config.ui open in QtDesigner?

I may need to install SuSE in virtualbox at this rate...
Comment 19 Hrvoje Senjan 2012-08-23 11:13:44 UTC
It's Qt 4.8.2. I guess it opens, don't know how it should look in QtDesigner, something like this?
http://i.imgur.com/mVPfu.png
Comment 20 David Edmundson 2012-09-03 15:54:03 UTC
*** Bug 306201 has been marked as a duplicate of this bug. ***
Comment 21 Hrvoje Senjan 2012-09-22 21:56:45 UTC
Just tried with a clean and full kdesrc-build, and there are no crashes, so i guess it's something with SUSE patches that makes the module crash.
Comment 22 David Edmundson 2012-09-24 22:55:26 UTC
*** Bug 307333 has been marked as a duplicate of this bug. ***
Comment 23 David Edmundson 2012-09-26 23:36:12 UTC
I now know why it's crashing:

For some (ridiculous) reason QtUiTools are built statically, and statically linked in the libs. Both kcm_lightdm and libplasma3 both contain all the symbols of QtUiTools.

Libplasma contains a version of QFormBuilder, as do I.
SystemSettings links against libplasma.

As you're all using alin's packages - there's a mismatch in versions of Qt, which despite the fact they _should_ be compatiable, aren't.

when run from systemsettings the QFormBuilder from libplasma is run, which is ABI incompatiable with what KcmLightDM expects.

It's a clone of this bug here: https://bugs.kde.org/show_bug.cgi?id=182810


Rebuilding LightDM with identical versions of Qt that was used to build libplasma will fix this, nothing else will.

I have absolutely no idea how to fix this properly, I don't think it can be done.
Comment 24 Hrvoje Senjan 2012-09-27 01:36:19 UTC
If i understand correctly what are you saying is that lightdm-kde greeter isn't build against the same Qt version as plasma? This is not true in my case. Building it against same version - now at 4.8.3
Comment 25 Hrvoje Senjan 2012-09-27 02:05:53 UTC
(In reply to comment #24)
> If i understand correctly what are you saying is that lightdm-kde greeter
> isn't build against the same Qt version as plasma? This is not true in my
> case. Building it against same version - now at 4.8.3

Maybe there could be a misunderstanding. When i used packages from OBS both entire KDE SC and lightdm greeter where built against same Qt version (they were building in the same project). Now, as said in comment 21, when running vanilla KDE there are no crashes.
Comment 26 Hrvoje Senjan 2012-09-27 12:23:29 UTC
I have found the cause of the crash, it's the LDFLAGS -Wl,-Bsymbolic-functions.
When compiling locally with them i again started to crash. Without them, no crashing!
Comment 27 David Edmundson 2012-09-28 20:37:25 UTC
I'm going to close this as invalid.

If anyone experiences this again please go to http://bugreports.qt.nokia.com/browse/QTBUG-437
Comment 28 Hrvoje Senjan 2013-05-11 16:44:56 UTC
Created attachment 79833 [details]
Solution for all™

David, is there a specific reason why is the greeter linking to QtUiTools library?
If not, i can commit attached patch. This now also enables usage of Bsymbolic-functions without crashing the kcm.
Comment 29 David Edmundson 2013-05-11 16:58:26 UTC
Greeter? No.
KCM. Yes.

It's linked because we use it :)
Comment 30 Hrvoje Senjan 2013-05-11 17:12:49 UTC
(In reply to comment #29)
> Greeter? No.
> KCM. Yes.
Yeah, sorry, that's what i meant
> It's linked because we use it :)
OK, just was wondering how it got compiling then. (Looking at another similar issue, so remembered this one)