Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 117910

Summary: system-config-soundcard doesn't start "list.index(x): x not in list"
Product: [Fedora] Fedora Reporter: Toni Willberg <toniw>
Component: system-config-soundcardAssignee: Brent Fox <bfox>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-21 19:01:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Toni Willberg 2004-03-09 21:33:27 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Gecko/20040217 Epiphany/1.1.9

Description of problem:
system-config-soundcard-1.2.5-1
fedora-release-1.90-11


Version-Release number of selected component (if applicable):
system-config-soundcard-1.2.5-1

How reproducible:
Always

Steps to Reproduce:
1. system-config-soundcard


Actual Results:  # system-config-soundcard
 
(system-config-soundcard.py:7396): Gdk-WARNING **: DESKTOP_STARTUP_ID
contains invalid UTF-8
Traceback (most recent call last):
  File
"/usr/share/system-config-soundcard/system-config-soundcard.py", line
47, in ?
    app = soundcard.childWindow()
  File "/usr_share/system-config-soundcard/soundcard.py", line 160, in
__init__
   
self.primaryDeviceMenu.set_active(self.cardList.index(self.soundcardBackend.getDefaultCard()))
ValueError: list.index(x): x not in list


Additional info:

Earlier versions had the same problem.

Comment 1 Toni Willberg 2004-03-09 22:23:19 UTC
commenting out this line fixes the problem:
 soundcard.py.160:
self.primaryDeviceMenu.set_active(self.cardList.index(self.soundcardBackend.getDefaultCard()))

It seems that self.soundcardBackend.getDefaultCard() returns "None"
for me, and this causes the problem. Should add some if block around
that .set_active call.

Additionally the default device info isn't saved anywhere. If I change
it from the UI and click OK, on next run .getDefaultCard() gives still
"None".

I don't know Python and was unable to provide a working patch. :)


Comment 2 Toni Willberg 2004-03-09 23:09:32 UTC

*** This bug has been marked as a duplicate of 115198 ***

Comment 3 Red Hat Bugzilla 2006-02-21 19:01:53 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.