IndexError in Volume Control: list index out of range

Asked by greg dean

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/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

Description: Ubuntu 10.04.2 LTS
Release: 10.04

No sound on system boot. Unable to hear any sounds. Didn't appear to be package specific. System Re-boot, problem cleared. Sometimes if a package is holding the sound card, switching to another user creates same effect with no sound. Solution is to close package using the sound card or log out of other user to clear the problem.

Sound should always be available on system boot for a user

I am unclear if this specific issue has been raised. I see AWN issues - but unsure if they are related. Apologies if this is related.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu awn-extras-applets Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Eliah Kagan (degeneracypressure) said :
#1

Have you reported this as a bug?

Revision history for this message
greg dean (greg-dean-ma) said :
#2

Hello Eliah,

Not as yet. I wanted to find out if it was related to any existing bugs before filing a new one.

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#3

It might be related to (or a duplicate of) one or more existing bugs--one of the steps to take in reporting a bug is to search for related bugs. If you report a bug using Apport, and Apport is launched automatically from a crash, then when you report the bug, Launchpad will automatically search for related bugs. (This doesn't always find all related bugs, but if it doesn't find anything, then generally you should go ahead and report the bug. You should also be aware that it may find related bugs, or related-seeming bugs, that are *not* the same bug that you are trying to report. You have to review the matches to see.)

To report a bug--including the step of searching for related bugs--please first read https://help.ubuntu.com/community/ReportingBugs carefully. Your bug looks like a crash, so I recommend enabling Apport (if it's not enabled already), and then reproducing the bug. You can enable Apport by following the instructions at https://wiki.ubuntu.com/Apport#How%20to%20enable%20apport. After having carefully read the instructions on reporting bugs and having enabled Apport, try to make the crash happen again, and Apport will automatically launch, collect information about the crash, and open a browser window/tab where you can view potentially related bug reports and either indicate that one of them applies, or report it as a new bug.

After you've reported your bug--or found it already reported--you can link the bug and this question to each other by using the "Link existing bug" link on this question page. While it's a good idea to do that, your bug report should be self-contained--the Ubuntu developers should not have to refer to this question page, in order to fully understand and appreciate your bug report.

Revision history for this message
greg dean (greg-dean-ma) said :
#4

Hi Eliah,

Many thanks for taking the trouble to reply with such a full (and helpful)
answer,

I will follow your suggestions,

Cheers,

Greg

On Tue, 01 Mar 2011 19:11:17 +1300, Eliah Kagan
<email address hidden> wrote:

> Your question #147202 on awn-extras-applets in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/awn-extras-applets/+question/147202
>
> Status: Open => Answered
>
> Eliah Kagan proposed the following answer:
> It might be related to (or a duplicate of) one or more existing bugs--
> one of the steps to take in reporting a bug is to search for related
> bugs. If you report a bug using Apport, and Apport is launched
> automatically from a crash, then when you report the bug, Launchpad will
> automatically search for related bugs. (This doesn't always find all
> related bugs, but if it doesn't find anything, then generally you should
> go ahead and report the bug. You should also be aware that it may find
> related bugs, or related-seeming bugs, that are *not* the same bug that
> you are trying to report. You have to review the matches to see.)
>
> To report a bug--including the step of searching for related bugs--
> please first read https://help.ubuntu.com/community/ReportingBugs
> carefully. Your bug looks like a crash, so I recommend enabling Apport
> (if it's not enabled already), and then reproducing the bug. You can
> enable Apport by following the instructions at
> https://wiki.ubuntu.com/Apport#How%20to%20enable%20apport. After having
> carefully read the instructions on reporting bugs and having enabled
> Apport, try to make the crash happen again, and Apport will
> automatically launch, collect information about the crash, and open a
> browser window/tab where you can view potentially related bug reports
> and either indicate that one of them applies, or report it as a new bug.
>
> After you've reported your bug--or found it already reported--you can
> link the bug and this question to each other by using the "Link existing
> bug" link on this question page. While it's a good idea to do that, your
> bug report should be self-contained--the Ubuntu developers should not
> have to refer to this question page, in order to fully understand and
> appreciate your bug report.
>

--
Using Opera's revolutionary email client: http://www.opera.com/mail/

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#5

Sounds good. Please post again if you need help at any point while following those instructions, or (after reporting the bug) if you want help trying to work around the problem.

(The bug reporting process may reveal a similar bug with workarounds already established, which is why I'm saying that it's a good idea to report it before searching for a workaround. Otherwise, we might be "reinventing the lightbulb.")

Can you help with this problem?

Provide an answer of your own, or ask greg dean for more information if necessary.

To post a message you must log in.