DatabaseTracks::add: 'utf-8' codec can't encode character […] surrogates not allowed
Created by: Sidosido
Hey there. I guess this is not a direct lollypop bug, but :
- it prevents from starting.
- I have no clue to clean up the guilty files.
DatabaseTracks::add: 'utf-8' codec can't encode character '\udc82' in position 5: surrogates not allowed
DatabaseTracks::add: 'utf-8' codec can't encode character '\udc88' in position 11: surrogates not allowed
DatabaseTracks::add: 'utf-8' codec can't encode character '\udc8a' in position 12: surrogates not allowed
Unhandled exception in thread started by <bound method CollectionScanner._scan of <CollectionScanner object at 0xb525f3ec (lollypop+collectionscanner+CollectionScanner at 0x9dd8b00)>>
Traceback (most recent call last):
File "/usr/local/xstow/lollypop/lib/python3.4/site-packages/lollypop/collectionscanner.py", line 127, in _scan
self._add2db(filepath, mtime, tag, sql)
File "/usr/local/xstow/lollypop/lib/python3.4/site-packages/lollypop/collectionscanner.py", line 274, in _add2db
Objects.albums.set_path(album_id, path, sql)
File "/usr/local/xstow/lollypop/lib/python3.4/site-packages/lollypop/database_albums.py", line 60, in set_path
sql.execute("UPDATE albums SET path=? WHERE rowid=?", (path, album_id))
UnicodeEncodeError: 'utf-8' codec can't encode character '\udcc0' in position 76: surrogates not allowed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/xstow/lollypop/lib/python3.4/site-packages/lollypop/collectionscanner.py", line 140, in _scan
print(filepath)
UnicodeEncodeError: 'utf-8' codec can't encode character '\udcc0' in position 76: surrogates not allowed
Exception ignored in: <module 'threading' from '/usr/lib/python3.4/threading.py'>
Traceback (most recent call last):
File "/usr/lib/python3.4/threading.py", line 1296, in _shutdown
_main_thread._delete()
File "/usr/lib/python3.4/threading.py", line 1019, in _delete
del _active[get_ident()]
KeyError: -1313957056