Bug 172671

Summary: system-config-soundcard crashes with short soundcard descriptions
Product: [Fedora] Fedora Reporter: Paco Soberón <unratito>
Component: system-config-soundcardAssignee: Martin Stransky <stransky>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3   
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: 2005-11-09 12:58:25 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:
Attachments:
Description Flags
Proposed patch none

Description Paco Soberón 2005-11-08 02:13:49 UTC
Description of problem:
After installing my new USB camera, system-config-soundcard crashes at startup.

Traceback (most recent call last):
  File "/usr/share/system-config-soundcard/system-config-soundcard.py", line 46,
in ?
    app = soundcard.childWindow()
  File "/usr/share/system-config-soundcard/soundcard.py", line 87, in __init__
    self.device, self.module, self.maker, self.model =
self.soundcardBackend.getData(card)
  File "/usr/share/system-config-soundcard/soundcardBackend.py", line 106, in
getData
    maker, model = string.split(description, " ", 1)
ValueError: unpack list of wrong size

The problem is that description of my USB camera is very short: it has only one
word. So the list returned by split function has only one element, and cannot be
assigned to the tuple (maker, model). A similar problem would arise if the
description was an empty string.

I send attached a working (at least for me) patch.

Version-Release number of selected component (if applicable):
I'm using system-config-soundcard-1.2.10-1 on FC3

How reproducible:
Always

Comment 1 Paco Soberón 2005-11-08 02:13:50 UTC
Created attachment 120800 [details]
Proposed patch

Comment 2 Martin Stransky 2005-11-09 12:58:25 UTC
It should be fixed in devel (package system-config-soundcard-1_2_14-1)