Bug 343903 - Crash when opening power management settings
Summary: Crash when opening power management settings
Status: RESOLVED FIXED
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Development Mailing List
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-02-07 18:41 UTC by Lasse Liehu
Modified: 2015-02-07 19:18 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lasse Liehu 2015-02-07 18:41:48 UTC
Application: systemsettings5 (5.2.90)
 (Compiled from sources)
Qt Version: 5.4.0
Operating System: Linux 3.18.5-1-ARCH x86_64
Distribution: "Arch Linux"

-- Information about the crash:
Steps to reproduce:

1. Use Plasma 5 from git master (updated in the last 24 hours) on a desktop computer.
2. Open System settings.
3. Choose Power management.

What happens:
System settings crashes. Commit 1053a46e in powerdevil seems to be the cause.

The crash can be reproduced every time.

-- Backtrace:
Application: Järjestelmäasetukset (systemsettings5), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f45b0770800 (LWP 3433))]

Thread 2 (Thread 0x7f45a28c0700 (LWP 3435)):
#0  0x00007f45b97c08cf in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f45a2a43f14 in ?? () from /usr/lib/libQt5Script.so.5
#2  0x00007f45a2a43f59 in ?? () from /usr/lib/libQt5Script.so.5
#3  0x00007f45b97bb314 in start_thread () from /usr/lib/libpthread.so.0
#4  0x00007f45bbcd124d in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7f45b0770800 (LWP 3433)):
[KCrash Handler]
#6  0x00007f45186e829e in PowerDevil::BundledActions::HandleButtonEventsConfig::buildUi() () from /home/larso/kf5/lib/plugins/powerdevilhandlebuttoneventsaction_config.so
#7  0x00007f451aba3e2a in ActionEditWidget::ActionEditWidget(QString const&, QWidget*) () from /home/larso/kf5/lib64/libpowerdevilconfigcommonprivate.so.5
#8  0x00007f451b2af9bd in EditPage::EditPage(QWidget*, QList<QVariant> const&) () from /home/larso/kf5/lib/plugins/kcm_powerdevilprofilesconfig.so
#9  0x00007f451b2b46ee in QObject* KPluginFactory::createInstance<EditPage, QWidget>(QWidget*, QObject*, QList<QVariant> const&) () from /home/larso/kf5/lib/plugins/kcm_powerdevilprofilesconfig.so
#10 0x00007f45bccc66cb in KPluginFactory::create (this=0x259a820, iface=0x7f45bf7573e8 <qt_meta_stringdata_KCModule+360> "KCModule", parentWidget=0x0, parent=0x2308210, args=..., keyword=...) at /joukko/devel/kf5/src/frameworks/kcoreaddons/src/lib/plugin/kpluginfactory.cpp:145
#11 0x00007f45c0701f13 in KPluginFactory::create<KCModule> (this=0x259a820, parentWidget=0x0, parent=0x2308210, keyword=..., args=...) at /home/larso/kf5/include/KF5/KCoreAddons/kpluginfactory.h:519
#12 0x00007f45c07019e3 in KService::createInstance<KCModule> (this=0x23be710, parentWidget=0x0, parent=0x2308210, args=..., error=0x7fff5cb05970) at /home/larso/kf5/include/KF5/KService/kservice.h:526
#13 0x00007f45c0701668 in KService::createInstance<KCModule> (this=0x23be710, parent=0x2308210, args=..., error=0x7fff5cb05970) at /home/larso/kf5/include/KF5/KService/kservice.h:501
#14 0x00007f45c0700875 in KCModuleLoader::loadModule (mod=..., report=KCModuleLoader::Inline, parent=0x2308210, args=...) at /joukko/devel/kf5/src/frameworks/kcmutils/src/kcmoduleloader.cpp:89
#15 0x00007f45c0707556 in KCModuleProxyPrivate::loadModule (this=0x2308030) at /joukko/devel/kf5/src/frameworks/kcmutils/src/kcmoduleproxy.cpp:109
#16 0x00007f45c07070ee in KCModuleProxy::realModule (this=0x2308210) at /joukko/devel/kf5/src/frameworks/kcmutils/src/kcmoduleproxy.cpp:82
#17 0x00007f45c0707d92 in KCModuleProxy::showEvent (this=0x2308210, ev=0x7fff5cb06180) at /joukko/devel/kf5/src/frameworks/kcmutils/src/kcmoduleproxy.cpp:195
#18 0x00007f45bdfe0ea8 in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#19 0x00007f45bdf9dd8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#20 0x00007f45bdfa3370 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#21 0x00007f45bca43a9b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#22 0x00007f45bdfde52b in QWidgetPrivate::show_helper() () from /usr/lib/libQt5Widgets.so.5
#23 0x00007f45bdfde37a in QWidgetPrivate::showChildren(bool) () from /usr/lib/libQt5Widgets.so.5
#24 0x00007f45bdfde41d in QWidgetPrivate::show_helper() () from /usr/lib/libQt5Widgets.so.5
#25 0x00007f45bdfe07a5 in QWidget::setVisible(bool) () from /usr/lib/libQt5Widgets.so.5
#26 0x00007f45bdfde390 in QWidgetPrivate::showChildren(bool) () from /usr/lib/libQt5Widgets.so.5
#27 0x00007f45bdfde41d in QWidgetPrivate::show_helper() () from /usr/lib/libQt5Widgets.so.5
#28 0x00007f45bdfe07a5 in QWidget::setVisible(bool) () from /usr/lib/libQt5Widgets.so.5
#29 0x00007f45bdfc3b31 in QStackedLayout::setCurrentIndex(int) () from /usr/lib/libQt5Widgets.so.5
#30 0x00007f45bdfc3da4 in QStackedLayout::setCurrentWidget(QWidget*) () from /usr/lib/libQt5Widgets.so.5
#31 0x00007f45be13a571 in QStackedWidget::setCurrentWidget(QWidget*) () from /usr/lib/libQt5Widgets.so.5
#32 0x00007f45be5e0b01 in KPageViewPrivate::_k_pageSelected (this=0x23975a0, index=..., previous=...) at /joukko/devel/kf5/src/frameworks/kwidgetsaddons/src/kpageview.cpp:246
#33 0x00007f45be5e1987 in KPageView::qt_static_metacall (_o=0x26aa840, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fff5cb067e0) at /joukko/devel/kf5/build/frameworks/kwidgetsaddons/src/moc_kpageview.cpp:114
#34 0x00007f45bca73339 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#35 0x00007f45bc9f4a47 in QItemSelectionModel::selectionChanged(QItemSelection const&, QItemSelection const&) () from /usr/lib/libQt5Core.so.5
#36 0x00007f45bc9fb39e in QItemSelectionModel::emitSelectionChanged(QItemSelection const&, QItemSelection const&) () from /usr/lib/libQt5Core.so.5
#37 0x00007f45bc9fc239 in QItemSelectionModel::select(QItemSelection const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib/libQt5Core.so.5
#38 0x00007f45bc9f6f3c in QItemSelectionModel::select(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib/libQt5Core.so.5
#39 0x00007f45bc9f4e1b in QItemSelectionModel::setCurrentIndex(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib/libQt5Core.so.5
#40 0x00007f45be5dff84 in KPageViewPrivate::_k_rebuildGui (this=0x23975a0) at /joukko/devel/kf5/src/frameworks/kwidgetsaddons/src/kpageview.cpp:68
#41 0x00007f45be5e07ec in KPageViewPrivate::_k_modelChanged (this=0x23975a0) at /joukko/devel/kf5/src/frameworks/kwidgetsaddons/src/kpageview.cpp:199
#42 0x00007f45be5e1955 in KPageView::qt_static_metacall (_o=0x26aa840, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fff5cb06de0) at /joukko/devel/kf5/build/frameworks/kwidgetsaddons/src/moc_kpageview.cpp:113
#43 0x00007f45bca73339 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#44 0x00007f45bcaee876 in QAbstractItemModel::layoutChanged(QList<QPersistentModelIndex> const&, QAbstractItemModel::LayoutChangeHint) () from /usr/lib/libQt5Core.so.5
#45 0x00007f45be5e7cc9 in KPageWidgetModel::addPage (this=0x23a49f0, item=0x2518ec0) at /joukko/devel/kf5/src/frameworks/kwidgetsaddons/src/kpagewidgetmodel.cpp:423
#46 0x00007f45be5e605e in KPageWidget::addPage (this=0x26aa840, item=0x2518ec0) at /joukko/devel/kf5/src/frameworks/kwidgetsaddons/src/kpagewidget.cpp:94
#47 0x00007f45c094b4fd in ModuleView::addModule(KCModuleInfo*) () from /home/larso/kf5/lib64/libsystemsettingsview.so.3
#48 0x00007f45c094af81 in ModuleView::loadModule(QModelIndex) () from /home/larso/kf5/lib64/libsystemsettingsview.so.3
#49 0x00007f45a17bae91 in IconMode::changeModule(QModelIndex const&) () from /home/larso/kf5/lib/plugins/icon_mode.so
#50 0x00007f45a17befbf in IconMode::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /home/larso/kf5/lib/plugins/icon_mode.so
#51 0x00007f45bca73339 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#52 0x00007f45be1f8085 in QAbstractItemView::activated(QModelIndex const&) () from /usr/lib/libQt5Widgets.so.5
#53 0x00007f45be200df6 in QAbstractItemView::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQt5Widgets.so.5
#54 0x00007f45be22548e in QListView::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQt5Widgets.so.5
#55 0x00007f45bfbf72b8 in KCategorizedView::mouseReleaseEvent (this=0x2751380, event=0x7fff5cb07ba0) at /joukko/devel/kf5/src/frameworks/kitemviews/src/kcategorizedview.cpp:1031
#56 0x00007f45bdfe0ea8 in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#57 0x00007f45be0de03e in QFrame::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#58 0x00007f45be20717b in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#59 0x00007f45bca43884 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#60 0x00007f45bdf9dd6c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#61 0x00007f45bdfa39a6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#62 0x00007f45bca43a9b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#63 0x00007f45bdfa257a in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQt5Widgets.so.5
#64 0x00007f45bdff8e70 in ?? () from /usr/lib/libQt5Widgets.so.5
#65 0x00007f45bdffafe3 in ?? () from /usr/lib/libQt5Widgets.so.5
#66 0x00007f45bdf9dd8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#67 0x00007f45bdfa3370 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#68 0x00007f45bca43a9b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#69 0x00007f45bd9eaddb in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/libQt5Gui.so.5
#70 0x00007f45bd9ec7b5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/libQt5Gui.so.5
#71 0x00007f45bd9d1f4f in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Gui.so.5
#72 0x00007f45b001c1d0 in ?? () from /usr/lib/qt/plugins/platforms/libqxcb.so
#73 0x00007f45b8995a0d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#74 0x00007f45b8995cf8 in ?? () from /usr/lib/libglib-2.0.so.0
#75 0x00007f45b8995dac in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#76 0x00007f45bca9b077 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#77 0x00007f45bca41532 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#78 0x00007f45bca48f0c in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#79 0x0000000000424a6c in main ()

Reported using DrKonqi
Comment 1 Kai Uwe Broulik 2015-02-07 19:18:29 UTC
Git commit 1bc24e996a62838ccc07d75f065577afff4365ea by Kai Uwe Broulik.
Committed on 07/02/2015 at 19:18.
Pushed by broulik into branch 'Plasma/5.2'.

Fix crash when one of the combo boxes is not present

M  +16   -5    daemon/actions/bundled/handlebuttoneventsconfig.cpp

http://commits.kde.org/powerdevil/1bc24e996a62838ccc07d75f065577afff4365ea