Summary: | sys-apps/hal-0.5.14 crashes kde plama-workspace in Solid::Control::PowerManager::brightness | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ernst Herzberg <earny> |
Component: | [OLD] KDE | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aidanamarks, b.brachaczek, bugs, dschridde+gentoobugs, erpalma2003, fabio.coatti, ganellon, hanno, kripton, Magnus.Kessler, me, public, qt, rb6, realnc, rhill, schulz.benjamin, tschenturs |
Priority: | High | Keywords: | PMASKED |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugs.kde.org/show_bug.cgi?id=217316 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 296544 | ||
Attachments: |
emerge --info
patch from http://websvn.kde.org/trunk/KDE/kdebase/workspace/solid/hal/halpower.cpp?r1=929945&r2=1035622&view=patch patch from http://websvn.kde.org/trunk/KDE/kdebase/workspace/solid/hal/halpower.cpp?r1=1035622&r2=1057980&view=patch proposed ebuild for solid-4.3.4-r1 |
Description
Ernst Herzberg
2009-12-03 23:56:59 UTC
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. > |