AssertionError in Battery Status

Bug #769695 reported by v0rtex
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Awn Extras
Incomplete
Medium
onox

Bug Description

Version: 0.4.1~bzr1522+201104222118
Source: http://ppa.launchpad.net/awn-testing/ppa/ubuntu
OS: Ubuntu Maverick (10.10)

On startup I was getting this error. My laptop has two batteries and when I booted my laptop one of them was completely discharged. I'm sure it has something to do with this fact because once the main battery was fully charged and charging started on the second battery I was able to restart the applet and it worked just fine.

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 1594, in init_start
    applet_class(applet)
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 85, in __init__
    self.check_status_cb()
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 224, in check_status_cb
    time = self.backend.get_remaining_time()
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 448, in get_remaining_time
    assert self.is_discharging()
AssertionError

Revision history for this message
onox (onox) wrote :

When you managed to restart the applet, which battery was selected in the preferences window? The main battery or the second (that has begun charging)?

tags: added: battery traceback
Changed in awn-extras:
assignee: nobody → onox (onox)
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
v0rtex (ddwar) wrote :

I'll have to test it tomorrow and see what it shows. Today my main battery has decided to stop charging so I will have to see how well it will work. If I have problems I will need to wait until I can get a new battery before I can test again.

Revision history for this message
rahul prasad (rahul-pache) wrote :

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/awn/extras/awnlib.py", line 1580, in init_start
    applet_class(applet)
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 85, in __init__
    self.check_status_cb()
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 224, in check_status_cb
    time = self.backend.get_remaining_time()
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 448, in get_remaining_time
    assert self.is_discharging()
AssertionError

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.