bandwidth-monitor - awn-bwm.py:486:draw_meter:KeyError: 'ppp0'

Bug #580370 reported by leigh123linux
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Awn Extras
Fix Released
High
Kyle L. Huff

Bug Description

abrt 1.0.9 detected a crash.

architecture: x86_64
cmdline: python
/usr/share/avant-window-navigator/applets/bandwidth-monitor/awn-bwm.py
--uid=1272478559 --window=25165877 --panel-id=1
component: awn-extras-applets
executable:
/usr/share/avant-window-navigator/applets/bandwidth-monitor/awn-bwm.py
kernel: 2.6.32.12-115.fc12.x86_64
package: awn-extras-applets-0.4.0-5.fc12
reason: awn-bwm.py:486:draw_meter:KeyError: 'ppp0'
release: Fedora release 12 (Constantine)

backtrace
-----
awn-bwm.py:486:draw_meter:KeyError: 'ppp0'

Traceback (most recent call last):
  File
"/usr/share/avant-window-navigator/applets/bandwidth-monitor/awn-bwm.py", line
433, in subsequent_paint
    self.repaint()
  File
"/usr/share/avant-window-navigator/applets/bandwidth-monitor/awn-bwm.py", line
582, in repaint
    self.draw_meter(ct, width, self.applet.get_size(), self.iface)
  File
"/usr/share/avant-window-navigator/applets/bandwidth-monitor/awn-bwm.py", line
486, in draw_meter
    self.netstats.ifaces[iface]['upload_color'])
KeyError: 'ppp0'

Local variables in innermost frame:
multi: False
iface: 'ppp0'
ratio: 1024.0
width: 72.0
_total_hist: [1, 1, 1]
self: <__main__.AppletBandwidthMonitor instance at 0x11030e0>
height: 48L
max_val: 1
_rx_hist: [1]
_tx_hist: [1]
ct: <cairo.Context object at 0x7fcbfe2ebdd0>

Package: awn-extras-applets-0.4.0-5.fc12
Architecture: x86_64
OS Release: Fedora release 12 (Constantine)

How to reproduce
-----
1. Loose my ppp connection i had select "ppp0" and restart my X session
2.
3.

Bug forwarded from https://bugzilla.redhat.com/show_bug.cgi?id=589724

Related branches

Michal Hruby (mhr3)
Changed in awn-extras:
assignee: nobody → Kyle L. Huff (kylehuff)
status: New → Triaged
Revision history for this message
Kyle L. Huff (kylehuff) wrote :

I was able to reproduce this, and I know what the problem is. I should have a fix committed in a day or so.

Thanks!

Changed in awn-extras:
importance: Undecided → High
status: Triaged → In Progress
Revision history for this message
Kyle L. Huff (kylehuff) wrote :

I have committed a fix for this issue which will change the status to "No Device" when an interface is removed. If the interface is reattached (or in this case - ppp0 - reconnected) the device speed and graph will automatically resume.

Changed in awn-extras:
status: In Progress → Fix Committed
Povilas Kanapickas (p12)
Changed in awn-extras:
status: Fix Committed → Fix Released
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.