Hi everyone ! This bug comes when I update to xfce4-power-manager 1.0.11 When I plug out ac, xfce4-power-manager crash. From "xfce4-power-manager --debug" : TRACE[xfpm-battery.c:148] xfpm_battery_refresh_visible(): visible=TRUE: ((XfpmShowIcon) SHOW_ICON_ALWAYS) TRACE[xfpm-battery.c:284] xfpm_battery_refresh_icon(): Battery state 2 TRACE[xfpm-disks.c:147] xfpm_disks_set_spin_timeouts(): On Battery=0 spin_down_enabled=0 timeout=800 TRACE[xfpm-dpms.c:74] xfpm_dpms_set_timeouts(): Settings dpms: standby=120 suspend=0 off=300 TRACE[xfpm-battery.c:284] xfpm_battery_refresh_icon(): Battery state 2 TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-battery.c:284] xfpm_battery_refresh_icon(): Battery state 2 TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon Erreur de segmentation uname -a : Linux archbook 3.4.0-rc2-antoineve #1 SMP PREEMPT Sun Apr 8 17:12:45 CEST 2012 i686 Intel(R) Atom(TM) CPU N270 @ 1.60GHz GenuineIntel GNU/Linux
Hi, Are you using a French or Russian locale? There's a bug in some translations with 1.0.11 that will cause segfaults.
I use french translation, but everything seems good since 1.2.0 :)
I can confirm that this still happens in 1.2.0 (I use a UK locale, so nothing to do with that I think). Further detail not in the original report... If you have an icon set to display in the panel, xfce4-power-manager will segfault with 100% reliability at every plug or unplug of power. If the settings are changed to never show an icon, it doesn't crash (see output below). I think this should be gifixedven high priority because if the daemon crashes without warning and the user closes a laptop lid expecting it to suspend based on power-manager settings, it won't. There's a risk of damaged hardware due to heat build up (been caught with this several times myself before realising what was happening). Cheers, Darren. Output from --debug from the point of pulling/placing the cable to demonstrate: TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 2 TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_WHEN_BATTERY_CHARGING_DISCHARGING) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_WHEN_BATTERY_CHARGING_DISCHARGING) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_WHEN_BATTERY_CHARGING_DISCHARGING) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon Segmentation fault (and with icon display off..) TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1 TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1 TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1 TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1 TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1 TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1 TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1 TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1 TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-polkit.c:238] xfpm_polkit_free_data(): Destroying Polkit data TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1 TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1 TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1 TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1 TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1 TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1 TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1 TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 1 TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) NEVER_SHOW_ICON) TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
Created attachment 4479 Sync en_GB translation file The patch I'm attaching fixes the reported crashes in my testing.
The patch from Evangelos (via downstream Arch Linux) worked for me.
The crash because of en_GB was a new problem with the translation in 1.2.0. There was another bug report for that and it has been fixed in git master already, but I can't recall the bug number, sorry.
*** Bug 9404 has been marked as a duplicate of this bug. ***