Red Hat Bugzilla – Bug 237709
system-config-soundcard crashes on powerbook, breaking firstboot
Last modified: 2007-11-30 17:12:02 EST
On my powerbook, firstboot crashes while trying to load the
system-config-soundcard page. The traceback is attached.
Created attachment 153389 [details]
traceback from firstboot
Can you please run system-config-soundcard from console and attach the output?
and attach /root/scsconfig.conf (it can be genetared by system-config-soundcard,
in "System" tab")
No output on the console, but I will attach the resulting scsrun.log, which
contains basically the same traceback.
Created attachment 153815 [details]
scsrun.log from failed run of system-config-soundcard
Okay, I traced it myself. This is crashing because the alsa playback device for
snd_powermac does not have info.vendor, nor do any of its parents.
Furthermore, getVendor() in soundcardHalBackend.py doesn't have a fallback for
this case. It just returns "None", causing a traceback.
I suspect we might need a workaround for snd_powermac - probably some fdi to add
info.vendor = "Apple Computer Inc" to snd_powermac devices - but getVendor()
should return something reasonable if it fails.
Per the hal spec
info.vendor isn't a mandatory property to be present for devices.
For F-7, I've committed the very minimal handling of the fallthrough when the
vendor isn't found to at least avoid things crashing. Post F7, this should be
reworked a bit more (so leaving open for that)
fixed in system-config-soundcard-2.0.6-6.fc6