GNOME Bugzilla – Bug 551311
Regression: Device no longer loads
Last modified: 2008-09-26 03:00:43 UTC
After revision 4477 (http://svn.gnome.org/viewvc/banshee?view=revision&revision=4477), I can no longer load my media player in Banshee. 4476 is fine. Any device-specific info you need, let me know. :)
Anything in the log? What type of player (ipod/mtp/mass storage)?
Created attachment 118308 [details] Output of `make run` It's a mass storage device (Cowon iAudio X5). Sorry, I really don't know why I blanked and didn't provide any logged info. O_o Here's the output of `make run`; looks like there's a trace coming from some of the DapService code. I don't have time to look closely at it now, but I might later; feel free to beat me to it. ;)
Not sure why I didn't reopen this; the trace is in the log.
This is really a bug in managed dbus - no application or library should every throw "Array index is out of range". I've worked around it in Banshee and alerted alp to this issue.
This is not a bug in managed dbus, really. The problem is that the property that is being queried is listed in /usr/share/hal/fdi/information/10freedesktop/10-usb-music-players.fdi as being of the type "strlist", and not of the type "string". In fact, half of the players have this property as a string type, and half have it as a strlist type (half is exagerating, but you get the picture). Managed dbus can hardly guess as what the real type is, since iirc it goes by what the interface describes (which I'm guessing says it's a string?). Can't begin to imagine why this property is so schizoid in the hal file :P I guess the only way to deal with this is to catch the exception in this case and try querying the property again with a different type :P @Andrew: A dirty quick fix would probably be to change the type from "strlist" to "string" in the Cowon entry on the fdi file and try it out
In fact, the hal specification states that the portable_audio_player.playlist_path property is of type string, so I guess half the entries on the fdi file are wrong...? :)
Well, the HAL stuff is over my head, but it's working now. That's enough to please me. :) Thanks a bunch Gabe!