Bug 177767 - System Settings crashes when clicking on power management
Summary: System Settings crashes when clicking on power management
Status: RESOLVED UPSTREAM
Alias: None
Product: solid
Classification: Frameworks and Libraries
Component: powermanagement-kcm (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
: 177772 178475 178520 179369 180210 180497 181025 181037 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-14 13:14 UTC by Anthony Archer
Modified: 2010-10-02 12:52 UTC (History)
13 users (show)

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 Anthony Archer 2008-12-14 13:14:10 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

Every time I click power management system settings crashes.  I use ubuntu neon packages

I have a backtrace hopefully it is useful 

Application: System Settings (systemsettings), signal SIGABRT
0x00007f86036d65f0 in __nanosleep_nocancel () from /lib/libc.so.6

Thread 1 (Thread 0x7f8606ef76f0 (LWP 333)):
[KCrash Handler]
#5  0x00007f8603660fd5 in raise () from /lib/libc.so.6
#6  0x00007f8603662b43 in abort () from /lib/libc.so.6
#7  0x00007f86050de245 in qt_message_output () from /opt/project-neon/lib/libQtCore.so.4
#8  0x00007f86050de36d in qFatal () from /opt/project-neon/lib/libQtCore.so.4
#9  0x00007f8604342728 in qGeomCalc () from /opt/project-neon/lib/libQtGui.so.4
#10 0x00007f8604333752 in QFormLayout::setGeometry () from /opt/project-neon/lib/libQtGui.so.4
#11 0x00007f860433ffa7 in QLayoutPrivate::doResize () from /opt/project-neon/lib/libQtGui.so.4
#12 0x00007f86043400fe in QLayout::activate () from /opt/project-neon/lib/libQtGui.so.4
#13 0x00007f8604367403 in QWidget::setVisible () from /opt/project-neon/lib/libQtGui.so.4
#14 0x00007f86046d8a58 in QScrollArea::setWidget () from /opt/project-neon/lib/libQtGui.so.4
#15 0x00007f86046ce6d9 in QToolBox::insertItem () from /opt/project-neon/lib/libQtGui.so.4
#16 0x00007f85fc2877df in QToolBox::addItem (this=0x23cdbf0, item=0x23f4350, text=@0x7fff0ef2d650) at /opt/project-neon/include/QtGui/qtoolbox.h:131
#17 0x00007f85fc292389 in Ui_profileEditPage::setupUi (this=0x23ea1b8, profileEditPage=0x23ea190)
    at /build/buildd/kde-nightly-kdebase-20081213+svn896517/obj-x86_64-linux-gnu/workspace/powerdevil/kcmodule/ui_profileEditPage.h:419
#18 0x00007f85fc28dc2f in EditPage (this=0x23ea190, parent=<value optimized out>) at /build/buildd/kde-nightly-kdebase-20081213+svn896517/workspace/powerdevil/kcmodule/EditPage.cpp:52
#19 0x00007f85fc2847aa in ConfigWidget (this=0x238dd80, parent=<value optimized out>) at /build/buildd/kde-nightly-kdebase-20081213+svn896517/workspace/powerdevil/kcmodule/ConfigWidget.cpp:28
#20 0x00007f85fc28305e in PowerDevilKCM::initView (this=0x2099de0) at /build/buildd/kde-nightly-kdebase-20081213+svn896517/workspace/powerdevil/kcmodule/PowerDevilKCM.cpp:111
#21 0x00007f85fc2833b8 in PowerDevilKCM::initModule (this=0x2099de0) at /build/buildd/kde-nightly-kdebase-20081213+svn896517/workspace/powerdevil/kcmodule/PowerDevilKCM.cpp:98
#22 0x00007f85fc2838f5 in PowerDevilKCM (this=0x2099de0, parent=<value optimized out>) at /build/buildd/kde-nightly-kdebase-20081213+svn896517/workspace/powerdevil/kcmodule/PowerDevilKCM.cpp:74
#23 0x00007f85fc284488 in KPluginFactory::createInstance<PowerDevilKCM, QWidget> (parentWidget=<value optimized out>, parent=<value optimized out>, args=@0x7fff0ef2e6e0)
    at /opt/kde-nightly/include/KDE/../kpluginfactory.h:461
#24 0x00007f8605893ebb in KPluginFactory::create (this=0x209a660, iface=0x7f8605e59c20 "KCModule", parentWidget=0x0, parent=0x230de70, args=@0x7fff0ef2e6e0, keyword=<value optimized out>)
    at /build/buildd/kde-nightly-kdelibs-20081213+svn896517/kdecore/util/kpluginfactory.cpp:191
#25 0x00007f8606ae2571 in KPluginFactory::create<KCModule> (this=0x209a660, parentWidget=0x0, parent=0x230de70, keyword=@0x7fff0ef2e4e0, args=@0x7fff0ef2e6e0)
    at /build/buildd/kde-nightly-kdelibs-20081213+svn896517/kdecore/util/kpluginfactory.h:515
#26 0x00007f8606ae2651 in KService::createInstance<KCModule> (this=0x21a2960, parentWidget=0x0, parent=0x230de70, args=@0x7fff0ef2e6e0, error=0x7fff0ef2e6f0)
    at /build/buildd/kde-nightly-kdelibs-20081213+svn896517/kdecore/services/kservice.h:518
#27 0x00007f8606ae16aa in KCModuleLoader::loadModule (mod=@0x2310dc0, report=KCModuleLoader::Inline, parent=0x230de70, args=@0x2310d90)
    at /build/buildd/kde-nightly-kdelibs-20081213+svn896517/kutils/kcmoduleloader.cpp:90
#28 0x00007f8606ae5f1d in KCModuleProxyPrivate::loadModule (this=0x2310d90) at /build/buildd/kde-nightly-kdelibs-20081213+svn896517/kutils/kcmoduleproxy.cpp:107
#29 0x00007f8606ae6715 in KCModuleProxy::realModule (this=<value optimized out>) at /build/buildd/kde-nightly-kdelibs-20081213+svn896517/kutils/kcmoduleproxy.cpp:83
#30 0x00007f8606ae682c in KCModuleProxy::buttons (this=0x14d) at /build/buildd/kde-nightly-kdelibs-20081213+svn896517/kutils/kcmoduleproxy.cpp:300
#31 0x000000000040ee1e in KCMultiWidget::slotAboutToShow (this=0x223b0f0, page=<value optimized out>)
    at /build/buildd/kde-nightly-kdebase-20081213+svn896517/workspace/systemsettings/kcmultiwidget.cpp:264
#32 0x000000000040fa30 in KCMultiWidget::addModule (this=0x223b0f0, moduleinfo=@0x21b0170) at /build/buildd/kde-nightly-kdebase-20081213+svn896517/workspace/systemsettings/kcmultiwidget.cpp:208
#33 0x00000000004121db in MainWindow::selectionChanged (this=0x20d7b40, selected=<value optimized out>)
    at /build/buildd/kde-nightly-kdebase-20081213+svn896517/workspace/systemsettings/mainwindow.cpp:330
#34 0x000000000041240d in MainWindow::qt_metacall (this=0x20d7b40, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff0ef2f130)
    at /build/buildd/kde-nightly-kdebase-20081213+svn896517/obj-x86_64-linux-gnu/workspace/systemsettings/mainwindow.moc:70
#35 0x00007f86051da810 in QMetaObject::activate () from /opt/project-neon/lib/libQtCore.so.4
#36 0x00007f8604757385 in QAbstractItemView::clicked () from /opt/project-neon/lib/libQtGui.so.4
#37 0x00007f8604763eee in QAbstractItemView::mouseReleaseEvent () from /opt/project-neon/lib/libQtGui.so.4
#38 0x00007f8604777137 in QListView::mouseReleaseEvent () from /opt/project-neon/lib/libQtGui.so.4
#39 0x00007f8605d0a65a in KCategorizedView::mouseReleaseEvent (this=0x14d, event=0x14d) at /build/buildd/kde-nightly-kdelibs-20081213+svn896517/kdeui/itemviews/kcategorizedview.cpp:1135
#40 0x00007f860436685c in QWidget::event () from /opt/project-neon/lib/libQtGui.so.4
#41 0x00007f8604764d2d in QAbstractItemView::viewportEvent () from /opt/project-neon/lib/libQtGui.so.4
#42 0x00007f86051c5358 in QCoreApplicationPrivate::sendThroughObjectEventFilters () from /opt/project-neon/lib/libQtCore.so.4
#43 0x00007f860431489c in QApplicationPrivate::notify_helper () from /opt/project-neon/lib/libQtGui.so.4
#44 0x00007f860431c4f6 in QApplication::notify () from /opt/project-neon/lib/libQtGui.so.4
#45 0x00007f8605d1efa1 in KApplication::notify (this=0x7fff0ef30e20, receiver=0x2218460, event=0x7fff0ef2ffe0)
    at /build/buildd/kde-nightly-kdelibs-20081213+svn896517/kdeui/kernel/kapplication.cpp:307
#46 0x00007f86051c58ec in QCoreApplication::notifyInternal () from /opt/project-neon/lib/libQtCore.so.4
#47 0x00007f860431b872 in QApplicationPrivate::sendMouseEvent () from /opt/project-neon/lib/libQtGui.so.4
#48 0x00007f86043798dc in ?? () from /opt/project-neon/lib/libQtGui.so.4
#49 0x00007f860437839f in QApplication::x11ProcessEvent () from /opt/project-neon/lib/libQtGui.so.4
#50 0x00007f860439dc24 in ?? () from /opt/project-neon/lib/libQtGui.so.4
#51 0x00007f8600c73d3b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#52 0x00007f8600c7750d in ?? () from /usr/lib/libglib-2.0.so.0
#53 0x00007f8600c776cb in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#54 0x00007f86051ecb5f in QEventDispatcherGlib::processEvents () from /opt/project-neon/lib/libQtCore.so.4
#55 0x00007f860439d44f in ?? () from /opt/project-neon/lib/libQtGui.so.4
#56 0x00007f86051c4522 in QEventLoop::processEvents () from /opt/project-neon/lib/libQtCore.so.4
#57 0x00007f86051c46b5 in QEventLoop::exec () from /opt/project-neon/lib/libQtCore.so.4
#58 0x00007f86051c9467 in QCoreApplication::exec () from /opt/project-neon/lib/libQtCore.so.4
#59 0x0000000000411a59 in main (argc=1, argv=0x7fff0ef31158) at /build/buildd/kde-nightly-kdebase-20081213+svn896517/workspace/systemsettings/main.cpp:67
Comment 1 Dario Andres 2008-12-14 14:17:21 UTC
What QT version and KDEsvn revision are you using ?
Comment 2 Anthony Archer 2008-12-14 14:50:02 UTC
I'm using qt 4.4.3 provided by neon(nightly) packages in ubuntu.  I am on svn896517.  If this sounds completely bogus I am sorry and if packaging is the cause I will quit reporting any bugs from these nightly packages.
Comment 3 Dario Andres 2008-12-14 14:52:18 UTC
It seems to be a QT bug (may be related to some nightly/unstable patch). Can you install a stable QT4.4.3 ? (I don't know if exists on stable ubuntu repos or something). If you can install it, can you reproduce the bug again ? Thanks :)
Comment 4 sobik2 2008-12-14 16:09:00 UTC
*** Bug 177772 has been marked as a duplicate of this bug. ***
Comment 5 Dario Freddi 2008-12-14 17:13:51 UTC
I quote Dario, seems more a bug in Qt, I have just rebuilt the whole KDE and I can't reproduce this.
Comment 6 Anthony Archer 2008-12-14 18:16:29 UTC
The qt-copy that we neon users have been using got out of date and does not have some of the patches, but it will be updated soon I am told.  Looks like the last update was 10-24-2008.
Comment 7 Dario Andres 2008-12-21 15:59:36 UTC
Mh, I experienced this bug some minutes ago :(
Here using:

Qt: 4.4.3 + qt-copy-patches-889120
KDE: 4.1.85 (KDE 4.1.85 (KDE 4.2 Beta2))
kdelibs svn rev. 899634 / kdebase svn rev. 899635
on ArchLinux x86_64 - Kernel 2.6.27.8

Backtrace:

ASSERT: "uniformSpacer >= 0 || spacing >= 0" in file ../../include/QtGui/private/../../../src/gui/kernel/qlayoutengine_p.h, line 74

Application: System Settings (systemsettings), signal SIGABRT
0x00007f6b074abfd0 in __nanosleep_nocancel () from /lib/libc.so.6

Thread 1 (Thread 0x7f6b0ac2d750 (LWP 16846)):
[KCrash Handler]
#5  0x00007f6b0743f0c5 in raise () from /lib/libc.so.6
#6  0x00007f6b074405e3 in abort () from /lib/libc.so.6
#7  0x00007f6b08e4aa25 in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at global/qglobal.cpp:2102
#8  0x00007f6b08e4ab47 in qFatal (msg=<value optimized out>) at global/qglobal.cpp:2303
#9  0x00007f6b080cbc98 in qGeomCalc (chain=@0x22f85b0, start=0, count=<value optimized out>, pos=4, space=284, spacer=-1) at ../../include/QtGui/private/../../../src/gui/kernel/qlayoutengine_p.h:74
#10 0x00007f6b080bcdef in QFormLayout::setGeometry (this=0x22f8470, rect=@0x7fff12d67050) at kernel/qformlayout.cpp:1488
#11 0x00007f6b080c9557 in QLayoutPrivate::doResize (this=0x22f84a0, r=@0x7fff12d670d0) at kernel/qlayout.cpp:630
#12 0x00007f6b080c96ac in QLayout::activate (this=0x22f8470) at kernel/qlayout.cpp:1203
#13 0x00007f6b080f1853 in QWidget::setVisible (this=0x22f7b30, visible=<value optimized out>) at kernel/qwidget.cpp:6551
#14 0x00007f6b0845d5c8 in QScrollArea::setWidget (this=0x23285c0, widget=0x22f7b30) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:464
#15 0x00007f6b084532a9 in QToolBox::insertItem (this=0x2310a70, index=-1, widget=0x22f7b30, icon=@0x7fff12d67320, text=@0x7fff12d67390) at widgets/qtoolbox.cpp:371
#16 0x00007f6affdace83 in Ui_profileEditPage::setupUi (this=0x230cdc8, profileEditPage=0x230cda0) at /usr/include/QtGui/qtoolbox.h:131
#17 0x00007f6affda8c6c in EditPage (this=0x230cda0, parent=<value optimized out>) at /home/kde-devel/kde/src/KDE/kdebase/workspace/powerdevil/kcmodule/EditPage.cpp:52
#18 0x00007f6affd9c4f9 in ConfigWidget (this=0x22a8d60, parent=<value optimized out>) at /home/kde-devel/kde/src/KDE/kdebase/workspace/powerdevil/kcmodule/ConfigWidget.cpp:28
#19 0x00007f6affd9a5e6 in PowerDevilKCM::initView (this=0x2277a90) at /home/kde-devel/kde/src/KDE/kdebase/workspace/powerdevil/kcmodule/PowerDevilKCM.cpp:111
#20 0x00007f6affd9b118 in PowerDevilKCM::initModule (this=0x2277a90) at /home/kde-devel/kde/src/KDE/kdebase/workspace/powerdevil/kcmodule/PowerDevilKCM.cpp:98
#21 0x00007f6affd9b785 in PowerDevilKCM (this=0x2277a90, parent=<value optimized out>) at /home/kde-devel/kde/src/KDE/kdebase/workspace/powerdevil/kcmodule/PowerDevilKCM.cpp:74
#22 0x00007f6affd9c203 in KPluginFactory::createInstance<PowerDevilKCM, QWidget> (parentWidget=<value optimized out>, parent=<value optimized out>, args=@0x7fff12d68440)
    at /home/kde-devel/kde/include/KDE/../kpluginfactory.h:461
#23 0x00007f6b09655aed in KPluginFactory::create (this=0x224f940, iface=0x7f6b09c777a0 "KCModule", parentWidget=0x0, parent=0x224afb0, args=@0x7fff12d68440, keyword=@0x7fff12d68160)
    at /home/kde-devel/kde/src/KDE/kdelibs/kdecore/util/kpluginfactory.cpp:191
#24 0x00007f6b0a91c5b6 in KService::createInstance<KCModule> (service=<value optimized out>, parent=0x224afb0, args=@0x7fff12d68440, error=0x7fff12d68450)
    at /home/kde-devel/kde/src/KDE/kdelibs/kdecore/util/kpluginfactory.h:515
#25 0x00007f6b0a91b604 in KCModuleLoader::loadModule (mod=@0x224def0, report=KCModuleLoader::Inline, parent=0x224afb0, args=@0x224dec0)
    at /home/kde-devel/kde/src/KDE/kdelibs/kutils/kcmoduleloader.cpp:90
#26 0x00007f6b0a92123a in KCModuleProxyPrivate::loadModule (this=0x224dec0) at /home/kde-devel/kde/src/KDE/kdelibs/kutils/kcmoduleproxy.cpp:107
#27 0x00007f6b0a922225 in KCModuleProxy::realModule (this=<value optimized out>) at /home/kde-devel/kde/src/KDE/kdelibs/kutils/kcmoduleproxy.cpp:83
#28 0x00007f6b0a92234c in KCModuleProxy::buttons (this=0x41ce) at /home/kde-devel/kde/src/KDE/kdelibs/kutils/kcmoduleproxy.cpp:300
#29 0x000000000040ebab in KCMultiWidget::slotAboutToShow (this=0x1fc44b0, page=<value optimized out>) at /home/kde-devel/kde/src/KDE/kdebase/workspace/systemsettings/kcmultiwidget.cpp:264
#30 0x0000000000410558 in KCMultiWidget::addModule (this=0x1fc44b0, moduleinfo=@0x1ce1990) at /home/kde-devel/kde/src/KDE/kdebase/workspace/systemsettings/kcmultiwidget.cpp:208
#31 0x0000000000414ec0 in MainWindow::selectionChanged (this=0x1bcca70, selected=<value optimized out>) at /home/kde-devel/kde/src/KDE/kdebase/workspace/systemsettings/mainwindow.cpp:330
#32 0x000000000041501d in MainWindow::qt_metacall (this=0x1bcca70, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff12d68f20)
    at /home/kde-devel/kde/build/KDE/kdebase/workspace/systemsettings/mainwindow.moc:70
#33 0x00007f6b08f45ac0 in QMetaObject::activate (sender=0x1fc1800, from_signal_index=<value optimized out>, to_signal_index=32, argv=0xffffffffffffffff) at kernel/qobject.cpp:3028
#34 0x00007f6b084dbcc5 in QAbstractItemView::clicked (this=0x41ce, _t1=<value optimized out>) at .moc/debug-shared/moc_qabstractitemview.cpp:316
#35 0x00007f6b084e87ce in QAbstractItemView::mouseReleaseEvent (this=0x1fc1800, event=0x7fff12d69ec0) at itemviews/qabstractitemview.cpp:1612
#36 0x00007f6b084fb967 in QListView::mouseReleaseEvent (this=0x41ce, e=0x41ce) at itemviews/qlistview.cpp:819
#37 0x00007f6b09af3d48 in KCategorizedView::mouseReleaseEvent (this=0x41ce, event=0x41ce) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/itemviews/kcategorizedview.cpp:1135
#38 0x00007f6b080f0cb4 in QWidget::event (this=0x1fc1800, event=0x7fff12d69ec0) at kernel/qwidget.cpp:7163
#39 0x00007f6b084e908d in QAbstractItemView::viewportEvent (this=0x1fc1800, event=0x7fff12d69ec0) at itemviews/qabstractitemview.cpp:1429
#40 0x00007f6b08f307f7 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x1fc1ee0, event=0x7fff12d69ec0) at kernel/qcoreapplication.cpp:694
#41 0x00007f6b0809e07c in QApplicationPrivate::notify_helper (this=0x1b59330, receiver=0x1fc1ee0, e=0x7fff12d69ec0) at kernel/qapplication.cpp:3799
#42 0x00007f6b080a5c65 in QApplication::notify (this=<value optimized out>, receiver=0x1fc1ee0, e=0x7fff12d69ec0) at kernel/qapplication.cpp:3528
#43 0x00007f6b09b0722b in KApplication::notify (this=0x7fff12d6ac50, receiver=0x1fc1ee0, event=0x7fff12d69ec0) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307
#44 0x00007f6b08f30d90 in QCoreApplication::notifyInternal (this=0x7fff12d6ac50, receiver=0x1fc1ee0, event=0x7fff12d69ec0) at kernel/qcoreapplication.cpp:583
#45 0x00007f6b080a4fe2 in QApplicationPrivate::sendMouseEvent (receiver=0x1fc1ee0, event=0x7fff12d69ec0, alienWidget=0x0, nativeWidget=0x1fc1ee0, buttonDown=<value optimized out>, 
    lastMouseReceiver=@0x7f6b0898e450) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:212
#46 0x00007f6b08102bec in QETWidget::translateMouseEvent (this=0x1fc1ee0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4044
#47 0x00007f6b08101d47 in QApplication::x11ProcessEvent (this=0x7c, event=0x7fff12d6a790) at kernel/qapplication_x11.cpp:3162
#48 0x00007f6b08126724 in x11EventSourceDispatch (s=0x1b534a0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:142
#49 0x00007f6b04699aa2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#50 0x00007f6b0469d21d in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#51 0x00007f6b0469d3db in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#52 0x00007f6b08f57cdf in QEventDispatcherGlib::processEvents (this=0x1b19e60, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:319
#53 0x00007f6b08125f7f in QGuiEventDispatcherGlib::processEvents (this=0x41ce, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:198
#54 0x00007f6b08f2f9c2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 316058240}) at kernel/qeventloop.cpp:143
#55 0x00007f6b08f2fb55 in QEventLoop::exec (this=0x7fff12d6aac0, flags={i = 316058320}) at kernel/qeventloop.cpp:190
#56 0x00007f6b08f348f7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#57 0x00000000004116d7 in main (argc=1, argv=0x7fff12d6af78) at /home/kde-devel/kde/src/KDE/kdebase/workspace/systemsettings/main.cpp:67

Can anyone else confirm this with today's trunk ? (20081221)
Comment 8 Dario Andres 2008-12-22 22:56:57 UTC
*** Bug 178475 has been marked as a duplicate of this bug. ***
Comment 9 Dario Andres 2008-12-22 22:57:33 UTC
One more confirmed case in devel brach. Confirming
Comment 10 Dario Andres 2008-12-23 01:07:36 UTC
*** Bug 178520 has been marked as a duplicate of this bug. ***
Comment 11 Dario Freddi 2008-12-30 12:52:35 UTC
The crash happens inside Qt, so I'm pretty sure it's a problem with Qt. Have you guys applied some patches to it, or using a different version from the one powerdevil has been compiled against?
Comment 12 Dario Andres 2008-12-30 13:04:47 UTC
Hi Dario.

Here I'm using both Qt 4.4.3 + qt-copy-patches-889120 (my distro (Arch)
default) for both compiling and running KDE4.2svn. (maybe some qt-copy patch
creates the bug ?)

I also tried installing Qt4.5beta and it crashed too (however I didn't
recompile all KDE with the 4.5beta, so It may be as expected to run into bugs)
Comment 13 Dario Freddi 2008-12-30 13:09:21 UTC
Hi back Dario :)

Please try to recompile PowerDevil against standard Qt and/or Qt4.5 and see if the bug still persists.
Comment 14 Dario Andres 2008-12-30 13:45:51 UTC
Here after installing QT-4.5-snapshot-20081223 (I have it already compiled) and recompiling again the following stuff:

workspace/powerdevil/kcmodule
workspace/powerdevil/daemon
workspace/libs/solid/control

PowerDevil KCM keeps crashing :(

Backtrace:

Application: KDE Control Module (kcmshell4), signal SIGABRT
0x00007f6ba98eafd0 in __nanosleep_nocancel () from /lib/libc.so.6

Thread 1 (Thread 0x7f6bac975750 (LWP 20760)):
[KCrash Handler]
#5  0x00007f6ba987e0c5 in raise () from /lib/libc.so.6
#6  0x00007f6ba987f5e3 in abort () from /lib/libc.so.6
#7  0x00007f6bab36e755 in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at global/qglobal.cpp:1993
#8  0x00007f6bab36e870 in qFatal (msg=<value optimized out>) at global/qglobal.cpp:2188
#9  0x00007f6baa51a508 in qGeomCalc (chain=@0x1d2a110, start=0, count=<value optimized out>, pos=4, space=284, spacer=-1) at ../../include/QtGui/private/../../../src/gui/kernel/qlayoutengine_p.h:73
#10 0x00007f6baa50b66f in QFormLayout::setGeometry (this=0x1d29fd0, rect=@0x7fffb4ab35b0) at kernel/qformlayout.cpp:1487
#11 0x00007f6baa517dc7 in QLayoutPrivate::doResize (this=0x1d2a000, r=@0x7fffb4ab3630) at kernel/qlayout.cpp:632
#12 0x00007f6baa517f1c in QLayout::activate (this=0x1d29fd0) at kernel/qlayout.cpp:1205
#13 0x00007f6baa5404a3 in QWidget::setVisible (this=0x1d29700, visible=<value optimized out>) at kernel/qwidget.cpp:6796
#14 0x00007f6baa93e288 in QScrollArea::setWidget (this=0x1d34b30, widget=0x1d29700) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:468
#15 0x00007f6baa933dbf in QToolBox::insertItem (this=0x1cb3130, index=-1, widget=0x1d29700, icon=@0x7fffb4ab3880, text=@0x7fffb4ab38c0) at widgets/qtoolbox.cpp:370
#16 0x00007f6ba13ec40b in Ui_profileEditPage::setupUi (this=0x1d1ced8, profileEditPage=0x1d1ceb0) at /usr/include/QtGui/qtoolbox.h:130
#17 0x00007f6ba13e819c in EditPage (this=0x1d1ceb0, parent=<value optimized out>) at /home/kde-devel/kde/src/KDE/kdebase/workspace/powerdevil/kcmodule/EditPage.cpp:52
#18 0x00007f6ba13db599 in ConfigWidget (this=0x1c741c0, parent=<value optimized out>) at /home/kde-devel/kde/src/KDE/kdebase/workspace/powerdevil/kcmodule/ConfigWidget.cpp:28
#19 0x00007f6ba13d9646 in PowerDevilKCM::initView (this=0x1c6c570) at /home/kde-devel/kde/src/KDE/kdebase/workspace/powerdevil/kcmodule/PowerDevilKCM.cpp:111
#20 0x00007f6ba13da1b8 in PowerDevilKCM::initModule (this=0x1c6c570) at /home/kde-devel/kde/src/KDE/kdebase/workspace/powerdevil/kcmodule/PowerDevilKCM.cpp:98
#21 0x00007f6ba13da825 in PowerDevilKCM (this=0x1c6c570, parent=<value optimized out>) at /home/kde-devel/kde/src/KDE/kdebase/workspace/powerdevil/kcmodule/PowerDevilKCM.cpp:74
#22 0x00007f6ba13db2a3 in KPluginFactory::createInstance<PowerDevilKCM, QWidget> (parentWidget=<value optimized out>, parent=<value optimized out>, args=@0x7fffb4ab4970)
    at /home/kde-devel/kde/include/KDE/../kpluginfactory.h:461
#23 0x00007f6babb8f25d in KPluginFactory::create (this=0x1c6df00, iface=0x7f6bac1b0c20 "KCModule", parentWidget=0x0, parent=0x1af53f0, args=@0x7fffb4ab4970, keyword=@0x7fffb4ab4690)
    at /home/kde-devel/kde/src/KDE/kdelibs/kdecore/util/kpluginfactory.cpp:191
#24 0x00007f6bac45c5b6 in KService::createInstance<KCModule> (service=<value optimized out>, parent=0x1af53f0, args=@0x7fffb4ab4970, error=0x7fffb4ab4980)
    at /home/kde-devel/kde/src/KDE/kdelibs/kdecore/util/kpluginfactory.h:515
#25 0x00007f6bac45b604 in KCModuleLoader::loadModule (mod=@0x1c64300, report=KCModuleLoader::Inline, parent=0x1af53f0, args=@0x1c642d0)
    at /home/kde-devel/kde/src/KDE/kdelibs/kutils/kcmoduleloader.cpp:90
#26 0x00007f6bac46123a in KCModuleProxyPrivate::loadModule (this=0x1c642d0) at /home/kde-devel/kde/src/KDE/kdelibs/kutils/kcmoduleproxy.cpp:107
#27 0x00007f6bac462225 in KCModuleProxy::realModule (this=<value optimized out>) at /home/kde-devel/kde/src/KDE/kdelibs/kutils/kcmoduleproxy.cpp:83
#28 0x00007f6bac46234c in KCModuleProxy::buttons (this=0x5118) at /home/kde-devel/kde/src/KDE/kdelibs/kutils/kcmoduleproxy.cpp:300
#29 0x00007f6bac45c998 in KCMultiDialogPrivate::updateButtons (this=<value optimized out>, currentModule=0x5118) at /home/kde-devel/kde/src/KDE/kdelibs/kutils/kcmultidialog.cpp:71
#30 0x00007f6bac45d801 in KCMultiDialog::addModule (this=0x1bbf470, moduleInfo=@0x7fffb4ab5660, parentItem=0x0, args=<value optimized out>)
    at /home/kde-devel/kde/src/KDE/kdelibs/kutils/kcmultidialog.cpp:342
#31 0x00007f6bac6979dc in kdemain (_argc=2, _argv=0x7fffb4ab5c88) at /home/kde-devel/kde/src/KDE/kdebase/runtime/kcmshell/main.cpp:268
#32 0x00007f6ba986a546 in __libc_start_main () from /lib/libc.so.6
#33 0x0000000000400709 in _start ()

---

I'm lazy now, but I will try to use an updated snapshot
Comment 15 David Nadlinger 2008-12-30 15:42:32 UTC
I am using qt-copy from trunk.

After updating it and building in release mode, the problem has gone (there are no visual glitches or something like that), but it's most probably because the assert was removed in the release build.

I will recompile Qt in debug mode soon and see what happens.
Comment 16 FiNeX 2008-12-30 16:00:24 UTC
Cannot reproduce on trunk r903258
Comment 17 Dario Andres 2008-12-30 16:03:39 UTC
Mh, here I can reproduce the crash too using todays QT4.5 snapshot (20081230). Should this bug be reported on QT bugtracker ?
Comment 18 Dario Andres 2009-01-02 14:01:17 UTC
*** Bug 179369 has been marked as a duplicate of this bug. ***
Comment 19 Dario Andres 2009-01-10 13:28:26 UTC
*** Bug 180210 has been marked as a duplicate of this bug. ***
Comment 20 Dario Freddi 2009-01-11 23:10:21 UTC
Yeah, I think this is something for Qt guys
Comment 21 Dario Andres 2009-01-12 00:24:37 UTC
Also, it seems like QtDesigner crashes in the same way when previewing the "powerdevil/kcmodule/profileEditPage.ui" file.
How it should be report in the Qt bugtracker?
Comment 22 Dario Andres 2009-01-12 00:43:41 UTC
Well. I have reported the issue to QT. Let see what happens...
Meanwhile, closing as UPSTREAM :)
Comment 23 Dario Andres 2009-01-12 21:06:45 UTC
QT people can't reproduce the issue, but I noticed that this only crash when using my self compiled Qt packages... Using the default distro binary packages I can load PowerDevil and load the UI file in Designer

So it's probably a compiler optimization bug

Here I'm using:

CARCH="x86_64"
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEFLAGS="-j2"

with gcc 4.3.2
and my processor is "Intel(R) Celeron(R) CPU 540  @ 1.86GHz"
Comment 24 Dario Freddi 2009-01-12 21:29:50 UTC
Wow, this seems to go farther than I thought... Dario, suggest your opinion to Qt people, and ask them instruction for doing a test case on your compiled sources, probably there is something strange with some flags as you guessed.

Oh, and thanks for caring so much about this, I really appreciate it :)
Comment 25 Dario Andres 2009-01-12 21:33:53 UTC
Done :), I'm waiting for their instructions 
Comment 26 Alexis MENARD 2009-01-12 21:43:34 UTC
It is completely not related to optimization or something else. It is just a bug in Qt. As task has been open 240759 in Qt Software and i just fix the problem. I will ask for a review tomorrow and i will push the patch to qt-copy. It will be included for 4.4.4 and 4.5.0. :) keep your eyes on qt-copy.
Comment 27 Dario Andres 2009-01-12 21:47:42 UTC
@Alexis: bug number 240759 is the number the bugtracker assigned to my own bug report of this crash. Benjamin Poulain (Qt) sent me an e-mail saying that he couldn't reproduce the crash... and then I sent to him my discovers about the compilar flags. I'm now waiting for their answer...
Did you made a patch for it ? Great :)
Comment 28 Dario Andres 2009-01-12 21:56:46 UTC
*** Bug 180497 has been marked as a duplicate of this bug. ***
Comment 29 Pino Toscano 2009-01-16 23:01:32 UTC
*** Bug 181025 has been marked as a duplicate of this bug. ***
Comment 30 Gerard Marull 2009-01-17 09:46:58 UTC
*** Bug 181037 has been marked as a duplicate of this bug. ***
Comment 31 Marek Tryliński 2009-01-23 21:24:04 UTC
it is fixed now, on kubuntu repo