soundconverter crash TypeError in format_tag()-special characters in tags

Bug #206331 reported by Brian Hankins
8
Affects Status Importance Assigned to Milestone
soundconverter (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: soundconverter

After some testing on Hardy beta 1 I was trying to convert some mp3 files to vorbis/ogg. All files can be converted but some threw up this error message box "Sorry, Sound Converter closed unexpectedly" though it didn't close. I was trying to see what was different with the files that would throw up that error when it was loading their tag and they all had some sort of special character in the album field on their tag such as: CD (1) or [soundtrack]. At the end of this report I have a little workaround which I am pretty sure is not the correct way to fix it, but it gets rid of the error for me. Here is the error message from when I run it in the console:

brian@brian-laptop:~/Documents$ soundconverter
SoundConverter 0.9.8
  using Gstreamer version: 0.10.18, Python binding version: 0.10.11
  using gnomevfssrc
output_mime_type_ogg_vorbis
Queue done in 0s
Queue done in 0s
Traceback (most recent call last):
  File "/usr/bin/soundconverter", line 809, in on_message
    self.found_tag(self, "", message.parse_tag())
  File "/usr/bin/soundconverter", line 966, in found_tag
    self.sound_file.add_tags(taglist)
  File "/usr/bin/soundconverter", line 407, in add_tags
    self.tags[key] = format_tag(taglist[key])
  File "/usr/bin/soundconverter", line 260, in format_tag
    tag = ", ".join(tag[:-1]) + " & " + tag[-1]
TypeError: sequence item 0: expected string, gst.Buffer found

Line 260 of /usr/bin/soundconverter:
tag = ", ".join(tag[:-1]) + " & " + tag[-1]
This gets rid of the error for me:
tag = tag[-1]

ProblemType: Crash
Architecture: i386
Date: Mon Mar 24 22:32:46 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/soundconverter
InterpreterPath: /usr/bin/python2.5
Package: soundconverter 0.9.8-0ubuntu1
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/soundconverter
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/soundconverter']
SourcePackage: soundconverter
Title: soundconverter crashed with TypeError in format_tag()
Uname: Linux 2.6.24-12-generic i686
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev video

Tags: apport-crash
Revision history for this message
Brian Hankins (bhankins) wrote :
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.