IndexError in Volume Control: list index out of range

Bug #561636 reported by Michał Lipski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Awn Extras
Fix Committed
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)
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
Revision history for this message
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
Revision history for this message
Michał Lipski (tallica) wrote :

I use ALSA directly.

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

Revision history for this message
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
Revision history for this message
Michał Lipski (tallica) wrote :

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

Revision history for this message
onox (onox) wrote :

Fixed in revision 1290.

Changed in awn-extras:
status: Confirmed → Fix Committed
Revision history for this message
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.

Revision history for this message
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)

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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