Traceback: GNOME Audio Profile output can be selected if no profiles are available

Bug #1123957 reported by Michael Schwendt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SoundConverter
Fix Released
High
GautierPortet

Bug Description

https://bugzilla.redhat.com/910613

If no audio profiles are found via GConf, in gstreamer.py audio_profiles_list is empty. In ui.py set_widget_initial_values(), other encoders get deleted (del model[i]) if not available, but not "gst-profile". That one is missing a special check to delete it if no profiles are available.

backtrace:
:gstreamer.py:655:add_audio_profile:KeyError: None
:
:Traceback (most recent call last):
: File "/usr/lib/soundconverter/python/soundconverter/ui.py", line 1383, in
on_convert_button_clicked
: self.do_convert()
: File "/usr/lib/soundconverter/python/soundconverter/ui.py", line 1358, in
do_convert
: self.converter.add(sound_file)
: File "/usr/lib/soundconverter/python/soundconverter/gstreamer.py", line 787,
in add
: c.init()
: File "/usr/lib/soundconverter/python/soundconverter/gstreamer.py", line 517,
in init
: encoder = self.encoders[self.output_type]()
: File "/usr/lib/soundconverter/python/soundconverter/gstreamer.py", line 655,
in add_audio_profile
: pipeline = audio_profiles_dict[self.audio_profile][2]
:KeyError: None
:
:Local variables in innermost frame:
:self: <soundconverter.gstreamer.Converter instance at 0x22c60e0>

Revision history for this message
Michael Schwendt (mschwendt) wrote :

As I don't grok the enabling/disabling of encoders yet (in particular, the relationship of the encoder_present and available_elements values), I've opted for the short'n'sweet brute-force workaround that disables the gst-profile output, if audio_profiles_list is empty.

;-)

Changed in soundconverter:
status: New → In Progress
importance: Undecided → High
assignee: nobody → GautierPortet (kassoulet)
milestone: none → 2.0.5
status: In Progress → Fix Committed
Changed in soundconverter:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.