|
From: Nyall D. <ny...@zo...> - 2009-09-09 01:28:22
|
OK, looking good now. mtp-albums runs through without crashing, and now correctly gets the number of tracks. And for the first time without hacky workarounds, banshee can connect to the player :D Not all good news though, it looks like a bug has sneaked in somewhere, because I can no longer transfer tracks to the player. Both Gnomad and mtp-sendtr give the error: " Error 2: PTP Layer error 02fe: LIBMTP_Get_Filelisting_With_Callback(): call to ptp_mtp_getobjectpropssupported() failed. Error 2: (Look this up in ptp.h for an explanation.) Error 2: PTP Layer error 02fe: LIBMTP_Get_Filelisting_With_Callback(): call to ptp_mtp_getobjectpropssupported() failed. Error 2: (Look this up in ptp.h for an explanation.) Error 2: PTP Layer error 02fe: LIBMTP_Get_Filelisting_With_Callback(): call to ptp_mtp_getobjectpropssupported() failed. Error 2: (Look this up in ptp.h for an explanation.) Error 2: PTP Layer error 02fe: LIBMTP_Get_Filelisting_With_Callback(): call to ptp_mtp_getobjectpropssupported() failed. Error 2: (Look this up in ptp.h for an explanation.) Error 2: PTP Layer error a803: send_file_object_info():Could not send object property list. Error 2: (Look this up in ptp.h for an explanation.) Error 1: LIBMTP_Send_Track_From_File_Descriptor(): subcall to LIBMTP_Send_File_From_File_Descriptor failed. " Similarly, banshee reports: " [Warn 21:20:34.634] Caught an exception - PTP Layer error 2002: add_object_to_cache(): couldn't add object to cache (in `') (Look this up in ptp.h for an explanation.) (in `') LIBMTP_Send_File_From_File_Descriptor(): Could not retrieve updated metadata. (in `') LIBMTP_Send_Track_From_File_Descriptor(): subcall to LIBMTP_Send_File_From_File_Descriptor failed. (in `Mtp') at Mtp.LibMtpException.CheckErrorStack (Mtp.MtpDeviceHandle handle) [0x0006f] in /home/nyall/Sources/banshee/src/Libraries/Mtp/Mtp/Error.cs:67 at Mtp.Track.SendTrack (Mtp.MtpDeviceHandle handle, System.String path, Mtp.TrackStruct& metadata, Mtp.ProgressFunction callback, IntPtr data) [0x00022] in /home/nyall/Sources/banshee/src/Libraries/Mtp/Mtp/Track.cs:228 at Mtp.MtpDevice.UploadTrack (System.String path, Mtp.Track track, Mtp.Folder folder, Mtp.ProgressFunction callback) [0x0004e] in /home/nyall/Sources/banshee/src/Libraries/Mtp/Mtp/MtpDevice.cs:266 at Banshee.Dap.Mtp.MtpSource.AddTrackToDevice (Banshee.Collection.Database.DatabaseTrackInfo track, Banshee.Base.SafeUri fromUri) [0x00030] in /home/nyall/Sources/banshee/src/Dap/Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs:356 at Banshee.Dap.DapSource.AttemptToAddTrackToDevice (Banshee.Collection.Database.DatabaseTrackInfo track, Banshee.Base.SafeUri fromUri) [0x00051] in /home/nyall/Sources/banshee/src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs:324 at Banshee.Dap.DapSource.AddTrackAndIncrementCount (Banshee.Collection.Database.DatabaseTrackInfo track) [0x0000c] in /home/nyall/Sources/banshee/src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs:367 at Banshee.Sources.PrimarySource.AddTrackList (System.Object cached_list) [0x00091] in /home/nyall/Sources/banshee/src/Core/Banshee.Services/Banshee.Sources/PrimarySource.cs:631 " But, apart from this, I think we're nearly there. :D Thanks for all your hard work on this, I think it's time I sent a donation through... Regards, Nyall On Tue, Sep 8, 2009 at 5:30 PM, Linus Walleij <lin...@gm...> wrote: > 2009/9/8 Linus Walleij <lin...@gm...>: > >> That is trying to get property 0xdc96 for album 0x00004203. 0xdc96 >> is "composer". So perhaps this buggy read messes up the internal >> logic of the PTP message parser so that the next read of the references >> get too long and totallt mess things up. >> >> This is not so strange. The mtp-detect log for SONY NWZ-E436F >> says it does not support composer but libmtp doesn't care >> about that and try to retrieve it anyway :-P >> >> SO I must put in some code to make the LIBMTP_Get_Album() >> etc not try to read this unless the device supports it. >> (OK will fix, wait.) > > OK I think I've fixed it, can you pull the latest CVS and see if it works? > > Linus > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Libmtp-discuss mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libmtp-discuss > |