Created attachment 2827 Data collected by apport Binary package hint: xfce4-power-manager Power manager crashed after displaying notification saying power was low. ProblemType: Crash Architecture: i386 Date: Thu Feb 4 20:18:03 2010 DistroRelease: Ubuntu 10.04 ExecutablePath: /usr/bin/xfce4-power-manager Package: xfce4-power-manager 0.8.4.2-1ubuntu3 ProcCmdline: xfce4-power-manager --restart --sm-client-id 2ee536286-533a-4637-8db2-23f332bb20bc ProcEnviron: LANG=en_GB.UTF-8 SHELL=/bin/bash ProcVersionSignature: Ubuntu 2.6.32-12.16-generic SegvAnalysis: Segfault happened at: 0x8058d50: mov 0x4(%edx),%eax PC (0x08058d50) ok source "0x4(%edx)" (0x00000004) not located in a known VMA region (needed readable region)! destination "%eax" ok SegvReason: reading NULL VMA Signal: 11 SourcePackage: xfce4-power-manager StacktraceTop: ?? () ?? () from /lib/libglib-2.0.so.0 g_main_context_dispatch () from /lib/libglib-2.0.so.0 ?? () from /lib/libglib-2.0.so.0 g_main_loop_run () from /lib/libglib-2.0.so.0 Title: xfce4-power-manager crashed with SIGSEGV in g_main_context_dispatch() Uname: Linux 2.6.32-12-generic i686 UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
Created attachment 2836 Check for brightness widget destroy id Sorry for the delay, please try out the proposed patch. (configure --enable-debug=full will help a lot if possible).
I'll give it a try at the weekend and let you know.
The 0.8.4.2 src from here -> http://archive.xfce.org/src/apps/xfce4-power-manager/0.8/ with the new patch doesn't compile on my box: CC xfce4_power_manager-egg-idletime.o cc1: warnings being treated as errors egg-idletime.c: In function 'egg_idletime_set_reset_alarm': egg-idletime.c:198: error: comparison between signed and unsigned integer expressions make[3]: *** [xfce4_power_manager-egg-idletime.o] Error 1 make[3]: Leaving directory `/home/stu/Desktop/xfce4-power-manager-0.8.4.2/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/stu/Desktop/xfce4-power-manager-0.8.4.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/stu/Desktop/xfce4-power-manager-0.8.4.2' make: *** [all] Error 2 which looks unrelated to your patch. Is there a newer version of 0.8.4.2?
There is no newer version of xfpm, this error have been already fixed in git, replace the egg-idletime.c in src/ by this file http://git.xfce.org/apps/xfce4-power-manager/tree/src/egg-idletime.c Thanks.
The power-manager no longer appears to crash with the new patch when the warning is displayed. However I notice that the critical action (e.g. hibernate) triggers when the low threshold is reached (e.g. 2%). On resuming the "low" notification then appears. This is probably separate to the crashing issue which appears to be fixed.
(In reply to comment #5) > The power-manager no longer appears to crash with the new patch when the > warning is displayed. However I notice that the critical action (e.g. > hibernate) triggers when the low threshold is reached (e.g. 2%). On resuming > the "low" notification then appears. This is probably separate to the crashing > issue which appears to be fixed. Thanks a lot for testing, please clarify the issue that you are describing above, i didn't really get the point.
ok.. Remaining Battery level = 20% consider the computer on low power = 10% When battery power is critical: hibernate If I increment the "consider the computer low power" value I'd expect to see a notification of low power before the "When battery power is critical" action takes place. Instead the laptop hibernates when "consider the computer on low power" = "Remaining Battery level", i.e. when I've incremented it to 20%. If I then resume the laptop from hibernation I then got a notification of low power. Doe this make sense?
(In reply to comment #7) > ok.. > > Remaining Battery level = 20% > consider the computer on low power = 10% > When battery power is critical: hibernate > > If I increment the "consider the computer low power" value I'd expect to see a > notification of low power before the "When battery power is critical" action > takes place. > > Instead the laptop hibernates when "consider the computer on low power" = > "Remaining Battery level", i.e. when I've incremented it to 20%. > > If I then resume the laptop from hibernation I then got a notification of low > power. > > Doe this make sense? Well, i don't think this is a bug, anyway all these is going to be handled based on "remaining time" in future releases instead of percentage, because some batteries might be at 5% and can still provide 30 minutes of running time. Thanks, i will close this for please re-open/open new bugs, in case of any problem.