GNOME Bugzilla – Bug 639598
[mtp] Samsung Galaxy S not detected
Last modified: 2011-11-28 16:40:39 UTC
using libmtp 1.0.4 and git master on x86_64 I get this every time I insert my Galaxy S while in MTP mode (media player mode on the phone). I have applied the patch from: https://bugzilla.gnome.org/show_bug.cgi?id=633840 This is likely related to: https://bugs.launchpad.net/ubuntu/+source/libmtp/+bug/696301 [21 Warn 14:41:45.523] Caught an exception - System.ArgumentNullException: Argument cannot be null. Parameter name: s (in `mscorlib') at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0 at Banshee.Hardware.Gio.UsbDevice.GetDeviceNumber (IUsbDevice device) [0x00007] in /home/david/Projekter/banshee/src/Backends/Banshee.Gio/Banshee.Hardware.Gio/UsbDevice.cs:84 at Banshee.Hardware.Gio.UsbDevice.get_DeviceNumber () [0x00000] in /home/david/Projekter/banshee/src/Backends/Banshee.Gio/Banshee.Hardware.Gio/UsbDevice.cs:149 at Banshee.Hardware.Gio.Device.ResolveUsbPortInfo () [0x0000d] in /home/david/Projekter/banshee/src/Backends/Banshee.Gio/Banshee.Hardware.Gio/Device.cs:91 at Banshee.Dap.Mtp.MtpSource.DeviceInitialize (IDevice device) [0x00007] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs:68 at Banshee.Dap.DapService.FindDeviceSource (IDevice device) [0x00025] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap/Banshee.Dap/DapService.cs:162 [21 Warn 14:41:50.449] Caught an exception - GLib.GException: Fejl ved oprettelse af mappen: Adgang nægtet (in `gio-sharp') at GLib.FileAdapter.MakeDirectoryWithParents (GLib.Cancellable cancellable) [0x00000] in <filename unknown>:0 at Banshee.IO.Gio.Directory.Create (System.String directory) [0x00012] in /home/david/Projekter/banshee/src/Backends/Banshee.Gio/Banshee.IO.Gio/Directory.cs:46 at Banshee.IO.Directory.Create (System.String directory) [0x00000] in /home/david/Projekter/banshee/src/Core/Banshee.Core/Banshee.IO/Directory.cs:45 at Banshee.Dap.MassStorage.MassStorageSource.get_PlaylistsPath () [0x0007e] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs:249 at Banshee.Dap.MassStorage.MassStorageSource.get_CanSyncPlaylists () [0x00000] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs:304 at Banshee.Dap.MassStorage.MassStorageSource.get_PlaylistTypes () [0x00089] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs:284 at Banshee.Dap.MassStorage.MassStorageSource.AddDapProperties () [0x000e8] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs:130 at Banshee.Dap.MassStorage.MassStorageSource.DeviceInitialize (IDevice device) [0x0014c] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs:104 at Banshee.Dap.DapService.FindDeviceSource (IDevice device) [0x00025] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap/Banshee.Dap/DapService.cs:162 [1 Warn 14:42:25.978] Failed to load media-player-info file for 1 [1 Warn 14:42:25.984] Failed to load media-player-info file for 1 Device 0 (VID=04e8 and PID=68a9) is a Samsung Vibrant SGH-T959. [1 Warn 14:42:27.779] Failed to load media-player-info file for 1 PTP_ERROR_IO: failed to open session, trying again after resetting USB interface LIBMTP libusb: Attempt to reset device LIBMTP PANIC: failed to open session on second attempt [22 Debug 14:42:37.654] Failed to connect to mtp device. Trying 4 more times... PTP_ERROR_IO: failed to open session, trying again after resetting USB interface inep: usb_get_endpoint_status(): Enheden eller ressourcen optaget outep: usb_get_endpoint_status(): Enheden eller ressourcen optaget usb_clear_halt() on IN endpoint: Enheden eller ressourcen optaget usb_clear_halt() on OUT endpoint: Enheden eller ressourcen optaget usb_clear_halt() on INTERRUPT endpoint: Enheden eller ressourcen optaget LIBMTP libusb: Attempt to reset device LIBMTP PANIC: failed to open session on second attempt [22 Debug 14:42:44.074] Failed to connect to mtp device. Trying 3 more times... PTP_ERROR_IO: failed to open session, trying again after resetting USB interface inep: usb_get_endpoint_status(): Enheden eller ressourcen optaget outep: usb_get_endpoint_status(): Enheden eller ressourcen optaget usb_clear_halt() on IN endpoint: Enheden eller ressourcen optaget usb_clear_halt() on OUT endpoint: Enheden eller ressourcen optaget usb_clear_halt() on INTERRUPT endpoint: Enheden eller ressourcen optaget LIBMTP libusb: Attempt to reset device LIBMTP PANIC: failed to open session on second attempt [22 Debug 14:42:56.080] Failed to connect to mtp device. Trying 2 more times... PTP_ERROR_IO: failed to open session, trying again after resetting USB interface LIBMTP libusb: Attempt to reset device LIBMTP PANIC: failed to open session on second attempt [22 Debug 14:43:18.085] Failed to connect to mtp device. Trying 1 more times... PTP_ERROR_IO: failed to open session, trying again after resetting USB interface LIBMTP libusb: Attempt to reset device LIBMTP PANIC: failed to open session on second attempt [22 Debug 14:43:40.090] Failed to connect to mtp device. Trying 0 more times... [22 Warn 14:43:45.537] Caught an exception - System.ArgumentNullException: Argument cannot be null. Parameter name: path1 (in `mscorlib') at System.IO.Path.Combine (System.String path1, System.String path2) [0x00000] in <filename unknown>:0 at Banshee.Dap.MassStorage.MassStorageSource.get_PlaylistsPath () [0x00037] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs:244 at Banshee.Dap.MassStorage.MassStorageSource.get_CanSyncPlaylists () [0x00000] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs:304 at Banshee.Dap.MassStorage.MassStorageSource.get_PlaylistTypes () [0x00089] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs:284 at Banshee.Dap.MassStorage.MassStorageSource.AddDapProperties () [0x000e8] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs:130 at Banshee.Dap.MassStorage.MassStorageSource.DeviceInitialize (IDevice device) [0x0014c] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs:104 at Banshee.Dap.DapService.FindDeviceSource (IDevice device) [0x00025] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap/Banshee.Dap/DapService.cs:162 [22 Info 14:43:45.538] AppleDeviceSource is ignoring unmounted volume SAMSUNG_Android [22 Warn 14:43:45.554] Caught an exception - System.InvalidOperationException: Operation is not valid due to the current state of the object (in `Banshee.Dap.AppleDevice') at Banshee.Dap.AppleDevice.AppleDeviceSource.DeviceInitialize (IDevice device) [0x0026b] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs:119 at Banshee.Dap.DapService.FindDeviceSource (IDevice device) [0x00025] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap/Banshee.Dap/DapService.cs:162 Device 0 (VID=04e8 and PID=68a9) is a Samsung Vibrant SGH-T959. PTP_ERROR_IO: failed to open session, trying again after resetting USB interface LIBMTP libusb: Attempt to reset device LIBMTP PANIC: failed to open session on second attempt [22 Debug 14:44:05.566] Failed to connect to mtp device. Trying 4 more times... PTP_ERROR_IO: failed to open session, trying again after resetting USB interface LIBMTP libusb: Attempt to reset device LIBMTP PANIC: failed to open session on second attempt [22 Debug 14:44:27.572] Failed to connect to mtp device. Trying 3 more times... PTP_ERROR_IO: failed to open session, trying again after resetting USB interface LIBMTP libusb: Attempt to reset device LIBMTP PANIC: failed to open session on second attempt [22 Debug 14:44:49.578] Failed to connect to mtp device. Trying 2 more times... PTP_ERROR_IO: failed to open session, trying again after resetting USB interface LIBMTP libusb: Attempt to reset device LIBMTP PANIC: failed to open session on second attempt [22 Debug 14:45:11.584] Failed to connect to mtp device. Trying 1 more times... PTP_ERROR_IO: failed to open session, trying again after resetting USB interface LIBMTP libusb: Attempt to reset device LIBMTP PANIC: failed to open session on second attempt [22 Debug 14:45:33.590] Failed to connect to mtp device. Trying 0 more times... [22 Warn 14:45:38.943] Caught an exception - System.ArgumentNullException: Argument cannot be null. Parameter name: path1 (in `mscorlib') at System.IO.Path.Combine (System.String path1, System.String path2) [0x00000] in <filename unknown>:0 at Banshee.Dap.MassStorage.MassStorageSource.get_PlaylistsPath () [0x00037] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs:244 at Banshee.Dap.MassStorage.MassStorageSource.get_CanSyncPlaylists () [0x00000] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs:304 at Banshee.Dap.MassStorage.MassStorageSource.get_PlaylistTypes () [0x00089] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs:284 at Banshee.Dap.MassStorage.MassStorageSource.AddDapProperties () [0x000e8] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs:130 at Banshee.Dap.MassStorage.MassStorageSource.DeviceInitialize (IDevice device) [0x0014c] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs:104 at Banshee.Dap.DapService.FindDeviceSource (IDevice device) [0x00025] in /home/david/Projekter/banshee/src/Dap/Banshee.Dap/Banshee.Dap/DapService.cs:162 [1 Warn 14:45:38.945] Failed to load media-player-info file for 1
Created attachment 178389 [details] udevadm output
Created attachment 178390 [details] gvfs-mount output
Although I have a Samsung Galaxy S II, I hope i can post here. 1. Starting Banshee with 'banshee -v' from console. 2. Connecting the phone with USB. 3. The result: [Warn 14:44:13.050] Caught an exception - GLib.GException: Error creating directory: -1: Unspecified error (in `gio-sharp') at GLib.FileAdapter.MakeDirectoryWithParents (GLib.Cancellable cancellable) [0x00000] in <filename unknown>:0 at Banshee.IO.Gio.Directory.Create (System.String directory) [0x00000] in <filename unknown>:0 at Banshee.IO.Directory.Create (System.String directory) [0x00000] in <filename unknown>:0 at Banshee.Dap.MassStorage.MassStorageSource.get_PlaylistsPath () [0x00000] in <filename unknown>:0 at Banshee.Dap.MassStorage.MassStorageSource.get_CanSyncPlaylists () [0x00000] in <filename unknown>:0 at Banshee.Dap.MassStorage.MassStorageSource.get_PlaylistTypes () [0x00000] in <filename unknown>:0 at Banshee.Dap.MassStorage.MassStorageSource.AddDapProperties () [0x00000] in <filename unknown>:0 at Banshee.Dap.MassStorage.MassStorageSource.DeviceInitialize (IDevice device) [0x00000] in <filename unknown>:0 at Banshee.Dap.DapService.FindDeviceSource (IDevice device) [0x00000] in <filename unknown>:0 [Info 14:44:13.096] Received device command: action = Activate, Play, device = /home/torger/.gvfs/gphoto2 mount on usb%3A002,038 4. No device appears within Banshee. PS. The first time I connected it, all was well. After that it gets mounted in Ubuntu, but no device Appear in Banshee.
The problem appears to be lack of support for this model in libmtp. http://sourceforge.net/tracker/?func=detail&aid=3159038&group_id=158745&atid=809061 Closing as NOTGNOME