GNOME Bugzilla – Bug 564772
MTP plugin crash when I plug-in my Creative Zen 32Gb
Last modified: 2009-10-21 20:17:49 UTC
Steps to reproduce: I start rhythmbox 0.11.6 on Ubuntu Intrepid I plug in my Creative Zen 32Gb Crash with : PTP: Opening session ** RhythmDB:ERROR:rhythmdb.c:3155:rhythmdb_entry_set_internal: assertion failed: (g_utf8_validate (g_value_get_string (value), -1, NULL)) Stack trace: I've installed rhythmbox-dbg, and bug-buddy, but it seems that it doesn't works.. Ask me if you need this information Other information:
It looks like one (or more) of the tracks on the device has broken track metadata. How did you add them? I don't think we need a stack trace for this one.
Everything has been synchronized with the original Creative Zen application on Windows XP
Created attachment 125309 [details] backtrace Its the backtrace when I plug in my Creative Zen. The icon of the Zen shows up, and then the program crash.
Can you also install debug packages for libglib2 (or however Ubuntu calls it)? That part is missing in the backtrace.
I don't think we need that information. It's clear what's going on here - we're expecting to get a utf8 string from libmtp, but we're getting something else. What's not clear is how that's happening. The mtp/ptp protocol seems to use utf16, which libmtp then converts to utf8, so I don't really see how we could end up with invalid utf8 data.. Output from the 'mtp-tracks' program (from the mtp-tools package) might help.
Created attachment 125603 [details] output of mtp-tracks command (zipped) Here it is. I've got it with the command : mtp-tracks > mtp-tracks.txt Ask me if you need more informations
I'm only looking at song titles here, because that's what caused the crash according to the stack trace.. These look like they have been damaged in conversion at some point: Title: Ma première ligne (part 1) Title: Ma première ligne (part 2) Title: Ma première ligne (part 3) Title: Mr Issaïa Title: Ouverture facile à la con Removing these songs from the device will probably stop it crashing. If so, then we need to process the strings we get from libmtp to ensure they're valid utf8. These are the only other songs that use non-ascii characters, but they're not likely to cause problems: Title: 108… Title: Comptine d'été n°1 Title: Comptine d'été n°2 Title: Comptine d'été n°3 Title: Lamb‚ An Dro <- not a comma Title: LumiÞre du jour Title: Prière n°2 Title: Prière n°3 Title: Suis ta musique o¨ elle va
commit 4ed644acc178c0319cb2217dd26132e82b0eed97 Author: Jonathan Matthew <jonathan@d14n.org> Date: Sun Oct 11 07:55:24 2009 +1000 mtp: ignore non-utf8 strings we get from libmtp (bug #564772)
*** Bug 592224 has been marked as a duplicate of this bug. ***