! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Power manager crashed after displaying notification saying power was low
Status:
RESOLVED: FIXED
Product:
Xfce4-power-manager
Component:
General

Comments

Description xfce 2010-02-05 08:13:38 CET
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
Comment 1 Ali Abdallah editbugs 2010-02-09 09:53:40 CET
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).
Comment 2 xfce 2010-02-11 11:48:27 CET
I'll give it a try at the weekend and let you know.
Comment 3 xfce 2010-02-11 14:30:17 CET
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?
Comment 4 Ali Abdallah editbugs 2010-02-11 14:36:22 CET
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.
Comment 5 xfce 2010-02-12 13:18:46 CET
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.
Comment 6 Ali Abdallah editbugs 2010-02-12 14:34:48 CET
(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.
Comment 7 xfce 2010-02-12 14:55:06 CET
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?
Comment 8 Ali Abdallah editbugs 2010-02-12 14:58:19 CET
(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.

Bug #6211

Reported by:
xfce
Reported on: 2010-02-05
Last modified on: 2010-02-12

People

Assignee:
Ali Abdallah
CC List:
0 users

Version

Version:
0.8.4.2

Attachments

Data collected by apport (10.39 KB, application/x-zip-compressed)
2010-02-05 08:13 CET , xfce
no flags
Check for brightness widget destroy id (912 bytes, patch)
2010-02-09 09:53 CET , Ali Abdallah
no flags

Additional information