IndexError in Volume Control: list index out of range

Bug #561636 reported by Michał Lipski on 2010-04-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Awn Extras
Medium
onox

Bug Description

Linux Gentoo 2.6.33-ck1 ~AMD64
Avant Window Navigator 0.4.1 Build using live ebuilds (*-9999)
Driver version: 1.0.21
Library version: 1.0.22
Utilities version: 1.0.22

IndexError in Volume Control: list index out of range

Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/awn/extras/awnlib.py", line 1462, in init_start
    applet_class(applet)
  File "/usr/share/avant-window-navigator/applets/volume-control/volume-control.py", line 104, in __init__
    self.setup_context_menu(prefs)
  File "/usr/share/avant-window-navigator/applets/volume-control/volume-control.py", line 169, in setup_context_menu
    self.load_track_pref(prefs)
  File "/usr/share/avant-window-navigator/applets/volume-control/volume-control.py", line 220, in load_track_pref
    self.reload_tracks()
  File "/usr/share/avant-window-navigator/applets/volume-control/volume-control.py", line 232, in reload_tracks
    self.backend.set_track(self.applet.settings["track"])
  File "/usr/share/avant-window-navigator/applets/volume-control/volume-control.py", line 453, in set_track
    self.__parent.refresh_icon(True)
  File "/usr/share/avant-window-navigator/applets/volume-control/volume-control.py", line 264, in refresh_icon
    icon = [key for key, value in volume_ranges.iteritems() if volume <= value[0] and volume >= value[1]][0]
IndexError: list index out of range

Related branches

onox (onox) on 2010-04-12
summary: - volume-applet crashes during init
+ IndexError in Volume Control: list index out of range
Changed in awn-extras:
assignee: nobody → onox (onox)
importance: Undecided → Medium
tags: added: applet traceback volume-control
onox (onox) wrote :

Do you have gst-plugins-pulse installed and pulseaudio running or are you just using alsa userspace? You could paste output of gst-inspect-0.10 | grep mixer

Changed in awn-extras:
status: New → Incomplete
Michał Lipski (tallica) wrote :

I use ALSA directly.

$ gst-inspect-0.10 | grep mixer
videomixer: videomixer: Video mixer
alsa: alsamixer: Alsa mixer

onox (onox) wrote :

I was messing with code of the applet here and managed to reproduce it with alsamixer I think (cannot remember whether also with pulsemixer). It seems the volume becomes a large number (> 100) but I have no idea yet how this can happen, so I will investigate the issue.

Changed in awn-extras:
milestone: none → 0.4.2
status: Incomplete → Confirmed
Michał Lipski (tallica) wrote :

If you need some more information just let me know. Btw. my soundcard doesn't have PCM control only Master.

onox (onox) wrote :

Fixed in revision 1290.

Changed in awn-extras:
status: Confirmed → Fix Committed
Michał Lipski (tallica) wrote :

Well, now it doesn't crash. Although it doesn't work properly... I can't move slider and it displays wrong values. Please look at the screenshot attached.

onox (onox) wrote :

Please continue with comments in bug #461123. (I wanted to keep tracking this bug, but someone else (probably malept again) decided it was easier to track the bug reported by bloody apport crap)

Mark Lee (malept) wrote :

> but someone else (probably malept again) decided it was
> easier to track the bug reported by bloody apport crap)

Nope, sorry, I can't be your punching bag this time. Try blaming someone else, preferably using evidence.

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

Other bug subscribers

Bug attachments