Bug 683499

Summary: [abrt] pulsecaster-0.1.7-2.fc14: ui.py:177:on_record:IndexError: list index out of range
Product: [Fedora] Fedora Reporter: Tamas Vincze <tom>
Component: pulsecasterAssignee: Paul W. Frields <stickster>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: stickster, tom
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
URL: https://fedorahosted.org/pulsecaster/ticket/4
Whiteboard: abrt_hash:82cf2366
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-26 20:06:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace none

Description Tamas Vincze 2011-03-09 15:14:45 UTC
abrt version: 1.1.17
architecture: i686
cmdline: /usr/bin/python /usr/bin/pulsecaster
comment: "Your voice" is empty
component: pulsecaster
executable: /usr/bin/pulsecaster
kernel: 2.6.35.11-83.fc14.i686
package: pulsecaster-0.1.7-2.fc14
reason: ui.py:177:on_record:IndexError: list index out of range
release: Fedora release 14 (Laughlin)
time: 1299683412
uid: 500

backtrace
-----
ui.py:177:on_record:IndexError: list index out of range

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pulsecaster/ui.py", line 177, in on_record
    self.uservoxes[self.user_vox.get_active()][0])
IndexError: list index out of range

Local variables in innermost frame:
self: <pulsecaster.ui.PulseCasterUI instance at 0xb740cf8c>
args: (<gtk.Button object at 0xa0a84b4 (GtkButton at 0xa280910)>,)

How to reproduce
-----
1. in Sound Preferences select the "Analog Stereo Output" profile
2. start playing something
3. hit Record in PulseCaster

Comment 1 Tamas Vincze 2011-03-09 15:14:47 UTC
Created attachment 483237 [details]
File: backtrace

Comment 2 Paul W. Frields 2011-03-10 01:33:58 UTC
Thanks for this report.

I'm betting you have only one audio device available?  If so, then choosing a profile with only outputs and no input means this list will be empty.  That's a case PulseCaster should handle more gracefully.

Comment 3 Tamas Vincze 2011-03-10 16:41:54 UTC
I wanted to record a radio report without adding ambient noise from my mic.
So I changed the audio profile from duplex to "Analog Stereo Output".
Then started PulseCaster.
In it the "Your voice" list is disabled (as expected) and the Subject's voice
shows "Monitor of internal audio analog stereo".
I hit Record and it immediately crashes.
I haven't changed the profile while PulseCaster was running.
I believe it should be easy to reproduce by anyone.
My Fedora 14 is up to date.
It's not a big deal as Sound Recorder worked fine, just thought it may be an
easy fix.

Comment 4 Paul W. Frields 2011-03-11 21:57:52 UTC
It's partly an easy fix, partly... not so much. :-)  See the upstream bug tracker for more info (URL above).

I'd have expected most people to mute the mic, rather than searching out profiles and changing them -- but as I said, this should be handled more gracefully than crashing. :-)