#11 ✓fixed
Virgil Dupras

Crash on bad unicode decoding

Reported by Virgil Dupras | November 11th, 2010 @ 12:01 PM

Application Name: musicGuru
Version: 1.4.3

Traceback (most recent call last):
 File "/usr/local/share/musicguru/core/sqlfs/_sql.py", line 194, in update
   new = self[reffile.name]
 File "/usr/local/share/musicguru/hsfs/tree.py", line 160, in __getitem__
   return self.__dict[self._do_hash(key)]
KeyError: '10 - La So\udcf1adora.mp3'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "/usr/local/share/musicguru/hscommon/job.py", line 219, in _async_run
   target(*args)
 File "/usr/local/share/musicguru/app.py", line 138, in do
   MusicGuruBase.AddLocation(self, path, name, removeable, j)
 File "/usr/local/share/musicguru/core/app.py", line 43, in AddLocation
   self.collection.add_volume(ref, name, vol_type, job)
 File "/usr/local/share/musicguru/core/sqlfs/music.py", line 135, in add_volume
   result.update(ref, job)
 File "/usr/local/share/musicguru/core/sqlfs/music.py", line 63, in update
   super(Volume, self).update(ref, job=job)
 File "/usr/local/share/musicguru/core/sqlfs/_sql.py", line 215, in update
   new.update(refdir, commit=False, job=job)
 File "/usr/local/share/musicguru/core/sqlfs/_sql.py", line 215, in update
   new.update(refdir, commit=False, job=job)
 File "/usr/local/share/musicguru/core/sqlfs/_sql.py", line 215, in update
   new.update(refdir, commit=False, job=job)
 File "/usr/local/share/musicguru/core/sqlfs/_sql.py", line 196, in update
   new = self.new_file(reffile.name, commit=False)
 File "/usr/local/share/musicguru/core/sqlfs/_sql.py", line 173, in new_file
   return self.__new_item(NODE_TYPE_FILE, name, commit)
 File "/usr/local/share/musicguru/core/sqlfs/_sql.py", line 138, in __new_item
   cur = self.con.execute(sql, (self.id, node_type, name))
 File "/usr/local/share/musicguru/hscommon/sqlite.py", line 131, in execute
   result = self._t.execute(sql, values)
 File "/usr/local/share/musicguru/hscommon/sqlite.py", line 75, in execute
   raise result
 File "/usr/local/share/musicguru/hscommon/sqlite.py", line 106, in run
   cur = con.execute(sql, values)
UnicodeEncodeError: 'utf-8' codec can't encode character '\udcf1' in position 10: surrogates not allowed

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Tags

Pages