After upgrading kde to 4.3.4, qt 4.6 and hal 5.14 kde crashes: Application: Plasma-Arbeitsfläche (kdeinit4), signal: Segmentation fault Traceback (most recent call last): File "/usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.2200.2-gdb.py", line 9, in <module> from gobject import register File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module> import gdb.backtrace ImportError: No module named backtrace [Current thread is 1 (Thread 0x7fb1542b4760 (LWP 5006))] Thread 2 (Thread 0x7fb136000710 (LWP 5007)): #0 0x00007fb153a4b23c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00007fb153cd619b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4 #2 0x00007fb1528d0e1c in QHostInfoAgent::run() () from /usr/lib64/qt4/libQtNetwork.so.4 #3 0x00007fb153cd51d5 in QThreadPrivate::start(void*) () from /usr/lib64/qt4/libQtCore.so.4 #4 0x00007fb153a46894 in start_thread () from /lib/libpthread.so.0 #5 0x00007fb150573f9d in clone () from /lib/libc.so.6 #6 0x0000000000000000 in ?? () Thread 1 (Thread 0x7fb1542b4760 (LWP 5006)): [KCrash Handler] #5 0x00007fb153de50fa in QVariant::toDouble(bool*) const () from /usr/lib64/qt4/libQtCore.so.4 #6 0x00007fb13642a636 in HalPower::brightness(QString const&) () from /usr/lib64/kde4/solid_hal_power.so #7 0x00007fb138d0f23c in Solid::Control::PowerManager::brightness(QString const&) () from /usr/lib64/libsolidcontrol.so.4 #8 0x00007fb1379d7341 in Battery::initExtenderItem(Plasma::ExtenderItem*) () from /usr/lib64/kde4/plasma_applet_battery.so #9 0x00007fb14b1bba3e in Plasma::ExtenderPrivate::loadExtenderItems() () from /usr/lib64/libplasma.so.3 #10 0x00007fb14b1bca4c in Plasma::Extender::Extender(Plasma::Applet*) () from /usr/lib64/libplasma.so.3 #11 0x00007fb14b18131d in Plasma::Applet::extender() const () from /usr/lib64/libplasma.so.3 #12 0x00007fb1379da629 in Battery::init() () from /usr/lib64/kde4/plasma_applet_battery.so #13 0x00007fb14b1a7f2e in Plasma::Corona::loadLayout(QString const&) () from /usr/lib64/libplasma.so.3 #14 0x00007fb14b1a9025 in Plasma::Corona::initializeLayout(QString const&) () from /usr/lib64/libplasma.so.3 #15 0x00007fb1486edec6 in PlasmaApp::corona() () from /usr/lib64/libkdeinit4_plasma-desktop.so #16 0x00007fb1486ee198 in PlasmaApp::setupDesktop() () from /usr/lib64/libkdeinit4_plasma-desktop.so #17 0x00007fb1486eea0c in PlasmaApp::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libkdeinit4_plasma-desktop.so #18 0x00007fb153dda683 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/qt4/libQtCore.so.4 #19 0x00007fb153de1f1f in QSingleShotTimer::timerEvent(QTimerEvent*) () from /usr/lib64/qt4/libQtCore.so.4 #20 0x00007fb153dd7323 in QObject::event(QEvent*) () from /usr/lib64/qt4/libQtCore.so.4 #21 0x00007fb15115e55c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4 #22 0x00007fb151166d8a in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4 #23 0x00007fb152204a66 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5 #24 0x00007fb153dc7a3b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4 #25 0x00007fb153df43b2 in QTimerInfoList::activateTimers() () from /usr/lib64/qt4/libQtCore.so.4 #26 0x00007fb153df1194 in timerSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/qt4/libQtCore.so.4 #27 0x00007fb14f9d34bd in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #28 0x00007fb14f9d6e78 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0 #29 0x00007fb14f9d6fa0 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #30 0x00007fb153df0e83 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4 #31 0x00007fb1511fab6e in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtGui.so.4 #32 0x00007fb153dc6392 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4 #33 0x00007fb153dc6764 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4 #34 0x00007fb153dca44b in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4 #35 0x00007fb1486d4a1f in kdemain () from /usr/lib64/libkdeinit4_plasma-desktop.so #36 0x00000000004071b5 in launch(int, char const*, char const*, char const*, int, char const*, bool, char const*, bool, char const*) () #37 0x0000000000407e70 in handle_launcher_request(int, char const*) () #38 0x00000000004083b0 in handle_requests(int) () #39 0x0000000000408f51 in main () mask =sys-apps/hal-0.5.14 and kde works again. Reproducible: Always
Created attachment 211935 [details] emerge --info
Affects "solid-powermanagement" too (with arguments "brightness get"): (gdb) run Starting program: /usr/bin/solid-powermanagement brightness get [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0x00007ffff664662a in QVariant::toDouble(bool*) const () from /usr/lib64/qt4/libQtCore.so.4 (gdb) bt #0 0x00007ffff664662a in QVariant::toDouble(bool*) const () from /usr/lib64/qt4/libQtCore.so.4 #1 0x00007fffeec62396 in HalPower::brightness(QString const&) () from /usr/lib64/kde4/solid_hal_power.so #2 0x00007ffff69509ec in Solid::Control::PowerManager::brightness(QString const&) () from /usr/lib64/libsolidcontrol.so.4 #3 0x0000000000403d01 in SolidPowermanagement::powerGetBrightness() () #4 0x0000000000405980 in SolidPowermanagement::doIt() () #5 0x0000000000405fd1 in main () Interestingly, "solid-powermanagement brightness set 50" does not crash. It does however not have any effect anymore, the brightness remains unchanged (it used to work before).
I was experiencing this too. I applied this patch from KDE trunk to solid: Don't crash with Qt 4.6 on my system that doesn't have that fancy brightness stuff. rev-by: darktears http://websvn.kde.org/trunk/KDE/kdebase/workspace/solid/hal/halpower.cpp?r1=929945&r2=1035622&view=patch
*** Bug 295832 has been marked as a duplicate of this bug. ***
After downgrading to hal 0.5.13 crashes are gone, but brightness control does still not work. "solid-powermanagement brightness get" returns "-1%". The patch fixes the crash, because it handles DBus errors correctly, but imho these errors are not the problem, but merely a symptom of the actual problem: With Qt 4.6 communication between HAL and Solid is somehow broken (for whatever reason).
Created attachment 212153 [details, diff] patch from http://websvn.kde.org/trunk/KDE/kdebase/workspace/solid/hal/halpower.cpp?r1=929945&r2=1035622&view=patch part of solid-4.3.4-r1.ebuild series
Created attachment 212154 [details, diff] patch from http://websvn.kde.org/trunk/KDE/kdebase/workspace/solid/hal/halpower.cpp?r1=1035622&r2=1057980&view=patch part of solid-4.3.4-r1 series
Created attachment 212156 [details] proposed ebuild for solid-4.3.4-r1 Please try if this ebuild together with the two patches solves the issue. Tested against hal-0.5.13 and hal-0.5.14, using kde-4.3.4 and Qt-4.6.0
I think the relevant upstream bug is https://bugs.kde.org/show_bug.cgi?id=217189
*** Bug 295850 has been marked as a duplicate of this bug. ***
(In reply to comment #5) > With Qt 4.6 communication between HAL and Solid is somehow broken So with hal 0.5.14 and Qt 4.5 this problem does not appear?
I don't know, I didn't test Qt 4.5 against hal 0.5.14, if that's what you mean.
(In reply to comment #12) > I don't know, I didn't test Qt 4.5 against hal 0.5.14, if that's what you mean. That's what I meant, because you're suggesting the fault is in Qt 4.6.
I didn't want to suggest that. I just guessed so, because I can't remember KDE crashing with Qt 4.5 and hal 0.5.14 (which does of course not mean anything at all).
(In reply to comment #14) > I can't remember KDE crashing with Qt 4.5 and hal 0.5.14 That's because hal 0.5.14 was committed after Qt 4.6.0 and KDE 4.3.4.
I temporarily masked Qt 4.6 and KDE 4.3.4 and thus installed hal 0.5.14 before.
FWIW, I cannot reproduce the crash with Qt 4.5.3
It isn't recommended to run KDE 4.3.x with Qt 4.6.
hal-0.5.14 is hard masked today, I suppose until the issue is resolved.
At the moment I have installed sys-apps/hal-0.5.14, x11-libs/qt-core-4.6.0 and kde-base/kde-meta-4.3.4 and all this thing works normally without crashes. I know at least one more system which have same versions and all stuff working, and 2 broken systems. So I think that problem, in general, not in hal, qt or kde, but in some settings.
Attached upstream bug URL
(In reply to comment #19) > hal-0.5.14 is hard masked today, I suppose until the issue is resolved. Indeed.
*** Bug 296079 has been marked as a duplicate of this bug. ***
+*solid-4.3.4-r1 (07 Dec 2009) + + 07 Dec 2009; Samuli Suominen <ssuominen@gentoo.org> + +solid-4.3.4-r1.ebuild, +files/solid-4.3.4-hal.patch: + Fix crash in Solid::Control::PowerManager::brightness wrt #295600, thanks + to Magnus Kessler. Merged the 2 above patches above. In portage. HAL unmasked.
With this patch, the brightness control is not working on HP notebook - nw8440. It is possible to set the brightness, but solid-powermanagement brightness get return Brightness is 0%. So ex. the dimm controll is not working in powerdevil. x11-libs/qt-core-4.5.3-r2 sys-apps/hal-0.5.14 (In reply to comment #24) > +*solid-4.3.4-r1 (07 Dec 2009) > + > + 07 Dec 2009; Samuli Suominen <ssuominen@gentoo.org> > + +solid-4.3.4-r1.ebuild, +files/solid-4.3.4-hal.patch: > + Fix crash in Solid::Control::PowerManager::brightness wrt #295600, thanks > + to Magnus Kessler. > > Merged the 2 above patches above. In portage. HAL unmasked. >