Comment 2 for bug 822181

Revision history for this message
JDP (k-m34) wrote :

This problem still occurs under Oneric 11.10. When selecting the battery panel in g-p-s without the battery installed it will immediately crash. It will also crash when the battery is removed while the battery panel is being displayed.
Terminal output from running gnome-power-statistics directly with sudo:

(gnome-power-statistics:17367): PowerManager-DEBUG: got filename: ac-adapter;
(gnome-power-statistics:17367): PowerManager-DEBUG: got filename: gpm-battery-missing;gpm-battery-000;battery-missing;

(gnome-power-statistics:17367): PowerManager-WARNING **: failed to select
(gnome-power-statistics:17367): PowerManager-DEBUG: selected row is: /org/freedesktop/UPower/devices/battery_BAT0
**
PowerManager:ERROR:gpm-statistics.c:416:gpm_device_state_to_localised_string: code should not be reached