Bluemindo - Suivi des bugs
| Rapport de bug 233 | |||
| Sujet : | Crash with unicode | ||
| Créé le : | 04/06/2008 - 13:41:24 | Temps écoulé : | 76 jours (1837 heures) |
| Statut : | Fermé | Participations : | 9 |
| Ouvert par : | xbright | Assigné à : | xbright |
| Crash with unicode | |
| xbright 04/06/2008 Temps écoulé : 76 jours (1837 heures) |
Follows up bug in comments of: http://www.gtk-apps.org/content/show.php/show.php?content=81940 Traceback (most recent call last): File "./bluemindo.py", line 499, in <module> main() File "./bluemindo.py", line 496, in main bluemindo = Bluemindo() File "./bluemindo.py", line 373, in __init__ plugin.load_event('OnBluemindoStarted', widgets) File "/home/fish/Desktop/bluemindo-0.2/src/modules/__init__.py", line 86, in load_event dct_(args[0]) File "/home/fish/Desktop/bluemindo-0.2/src/modules/explorer.py", line 144, in loadplugin self.load_songs(music_folder, scan_at_startup, view) File "/home/fish/Desktop/bluemindo-0.2/src/modules/explorer.py", line 244, in load_songs self.list_songs = sqlite.fetchall(cursor) File "/home/fish/Desktop/bluemindo-0.2/src/common/sqlite.py", line 79, in fetchall return cur.fetchall() sqlite3.OperationalError: Could not decode to UTF-8 column 'filename' with text '/mnt/music/Mot?rhead - Ace Of The Spades.mp3' |
| Résolu | |
| Re : Crash with unicode | |
| xbright 04/06/2008 Temps écoulé : 76 jours (1835 heures) |
Can't reproduce on the last svn revision. |
| Re : Crash with unicode | |
| MrFish 04/06/2008 Temps écoulé : 76 jours (1832 heures) |
I can reproduce this same error using latest svn version (39) Traceback (most recent call last): File "./bluemindo.py", line 512, in <module> main() File "./bluemindo.py", line 509, in main bluemindo = Bluemindo() File "./bluemindo.py", line 386, in __init__ extensions.load_event('OnBluemindoStarted', widgets) File "/home/fish/bluemindo/bluemindo/trunk/src/extensionsloader.py", line 118, in load_event dct_(args[0]) File "/home/fish/bluemindo/bluemindo/trunk/src/modules/explorer/__init__.py", line 144, in loadmodule self.load_songs(music_folder, scan_at_startup, view) File "/home/fish/bluemindo/bluemindo/trunk/src/modules/explorer/__init__.py", line 244, in load_songs self.list_songs = sqlite.fetchall(cursor) File "/home/fish/bluemindo/bluemindo/trunk/src/common/sqlite.py", line 76, in fetchall return cur.fetchall() sqlite3.OperationalError: Could not decode to UTF-8 column 'filename' with text '/mnt/music/Mot?rhead - Ace Of The Spades.mp3' |
| Re : Crash with unicode | |
| xbright 05/06/2008 Temps écoulé : 76 jours (1827 heures) |
What's the output of the command 'locale' in your prompt ? Your system is in UTF-8 ? |
| Re : Crash with unicode | |
| MrFish 05/06/2008 Temps écoulé : 75 jours (1808 heures) |
Yes. en_GB.UTF-8 As far as I can tell, this is because sqlite only supports UTF-8, yet a couple of my tracks have non-UTF-8 characters in them, which causes the error. Is there not some way of getting the program to acknowledge the error, but continue to build the database anyway. Then once finished advise that certain tracks could not be put into the database because of the non-UTF-8 characters? It's a work-around, at least :s |
| Re : Crash with unicode | |
| MrFish 05/06/2008 Temps écoulé : 75 jours (1808 heures) |
^ Actually, just looking at my library in Exaile (which used to have the same problem, but doesn't now), this may be what they have done, because that particular track isn't listed in it. |
| Re : Crash with unicode | |
| xbright 06/06/2008 Temps écoulé : 74 jours (1792 heures) |
Okay, I'll try to reproduce the bug and to put a try/except in order to continue the database building. Thank you for all your informations. Stay tuned ! ![]() |
| Re : Crash with unicode | |
| xbright 06/06/2008 Temps écoulé : 74 jours (1789 heures) |
Can you test with the last revision (40)? |
| Re : Crash with unicode | |
| MrFish 06/06/2008 Temps écoulé : 74 jours (1779 heures) |
Unfortunately it still isn't working Traceback (most recent call last): File "./bluemindo.py", line 512, in <module> main() File "./bluemindo.py", line 509, in main bluemindo = Bluemindo() File "./bluemindo.py", line 386, in __init__ extensions.load_event('OnBluemindoStarted', widgets) File "/home/fish/bluemindo/bluemindo/trunk/src/extensionsloader.py", line 118, in load_event dct_(args[0]) File "/home/fish/bluemindo/bluemindo/trunk/src/modules/explorer/__init__.py", line 144, in loadmodule self.load_songs(music_folder, scan_at_startup, view) File "/home/fish/bluemindo/bluemindo/trunk/src/modules/explorer/__init__.py", line 223, in load_songs unicode(tags_.genre), unicode(filename), UnicodeDecodeError: 'utf8' codec can't decode bytes in position 14-17: invalid data |
| Re : Crash with unicode | |
| xbright 15/06/2008 Temps écoulé : 65 jours (1571 heures) |
I'm afraid I still can't reproduce your initial bug. And not the last one :'( But I've commited something. Can you test? By the way, the rev40 introduced some new SQL treatment. |
| Postez une réponse à ce fil | |
|
Connectez vous pour participer ! | |
Retourner à la liste des rapports de bugs


