SoundConverter 3.0 crashes on start

Bug #1965584 reported by Victor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SoundConverter
New
Undecided
GautierPortet

Bug Description

Hello,

From a long time ago I've been using command line tools to convert audio files instead of SoundConverter cause it started to crash. But I'd like to regain its wonderful usability, so I'm reporting this bug.

On Ubuntu 20.04.4 64-bit, and SoundConverter 3.0.2-2 (from Ubuntu repos) or 4.0.3-1 (from xtradeb repo), no matter how I start SoundConvert, it crashes with the following output on command line:

---------------------------------
$ soundconverter --debug
  faac gstreamer element not found
SoundConverter 3.0.2

(SoundConverter:93733): Gtk-WARNING **: 20:38:50.963: Theme parsing error: gtk.css:1:108: Failed to import: Error opening file /<email address hidden>/styles/buttons-right.css: No such file or directory
/usr/share/soundconverter/python/soundconverter/ui.py:1465: Warning: g_value_type_transformable: assertion 'src_type' failed
  builder.add_from_file(gladefile)

(SoundConverter:93733): Gtk-WARNING **: 20:38:50.998: ../../../../gtk/gtkliststore.c:834: Unable to convert from (null) to gchararray
Traceback (most recent call last):
  File "/usr/bin/soundconverter", line 221, in <module>
    gui_main(NAME, VERSION, GLADEFILE, files)
  File "/usr/share/soundconverter/python/soundconverter/ui.py", line 1468, in gui_main
    win = SoundConverterWindow(builder)
  File "/usr/share/soundconverter/python/soundconverter/ui.py", line 1082, in __init__
    self.prefs = PreferencesDialog(builder, self.widget)
  File "/usr/share/soundconverter/python/soundconverter/ui.py", line 473, in __init__
    self.set_widget_initial_values(builder)
  File "/usr/share/soundconverter/python/soundconverter/ui.py", line 623, in set_widget_initial_values
    self.change_mp3_mode(mode)
  File "/usr/share/soundconverter/python/soundconverter/ui.py", line 1001, in change_mp3_mode
    self.mp3_quality.set_active(get_quality('mp3', quality, mode, reverse=True))
  File "/usr/share/soundconverter/python/soundconverter/settings.py", line 149, in get_quality
    return qualities.index(value)
ValueError: tuple.index(x): x not in tuple
---------------------------------

I've even tried to remove the package and its config files (apt purge) and reinstall it, without success.

Any ideas?

TIA.

Revision history for this message
GautierPortet (kassoulet) wrote :

Something seems to be wrong when reading parameters from dconf.

You should try to reset them using the following command:
 gsettings reset-recursively org.soundconverter

Now this issue has to be investigated further, as it does not work as intended.

Changed in soundconverter:
assignee: nobody → GautierPortet (kassoulet)
Revision history for this message
Victor (vichman67) wrote :

Great!

After resetting parameters from dconf via 'gsettings reset-recursively org.soundconverter' everything is fine:

---------------------------------
$ soundconverter --debug
  faac gstreamer element not found
SoundConverter 3.0.2

(SoundConverter:127238): Gtk-WARNING **: 13:03:16.537: Theme parsing error: gtk.css:1:108: Failed to import: Error opening file /<email address hidden>/styles/buttons-right.css: No such file or directory
/usr/share/soundconverter/python/soundconverter/ui.py:1465: Warning: g_value_type_transformable: assertion 'src_type' failed
  builder.add_from_file(gladefile)

(SoundConverter:127238): Gtk-WARNING **: 13:03:16.568: ../../../../gtk/gtkliststore.c:834: Unable to convert from (null) to gchararray
closing...
---------------------------------

Thanks a million!

Revision history for this message
sezanzeb (sezanzeb) wrote :

This is really surprising considering the if-statement that wraps it:

if value in qualities:
    return qualities.index(value)

Revision history for this message
sezanzeb (sezanzeb) wrote (last edit ):

The if-statement has been added in f981882170fe60447dd6c1290e89387edfaa7f7b, October 08, 2020, so it is not part of 3.0.2 which was released on Apr 1, 2019.

I guess the installation from the xtradeb repo did not manage to overwrite the installation from the official repo.

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.