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 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-power-manager in Ubuntu. https://bugs.launchpad.net/bugs/822181 Title: power statistics applet crashes after resume To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/822181/+subscriptions -- desktop-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
