{"action":"created","issue":{"url":"https://api.github.com/repos/hanwen/go-mtpfs/issues/75","labels_url":"https://api.github.com/repos/hanwen/go-mtpfs/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/hanwen/go-mtpfs/issues/75/comments","events_url":"https://api.github.com/repos/hanwen/go-mtpfs/issues/75/events","html_url":"https://github.com/hanwen/go-mtpfs/issues/75","id":48618636,"number":75,"title":"Nexus 5, Android 4.4.4: \"fatal error got type 0 (CONTAINER_UNDEFINED) in response\"","user":{"login":"andreasf","id":490656,"avatar_url":"https://avatars.githubusercontent.com/u/490656?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasf","html_url":"https://github.com/andreasf","followers_url":"https://api.github.com/users/andreasf/followers","following_url":"https://api.github.com/users/andreasf/following{/other_user}","gists_url":"https://api.github.com/users/andreasf/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasf/subscriptions","organizations_url":"https://api.github.com/users/andreasf/orgs","repos_url":"https://api.github.com/users/andreasf/repos","events_url":"https://api.github.com/users/andreasf/events{/privacy}","received_events_url":"https://api.github.com/users/andreasf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2014-11-13T10:10:26Z","updated_at":"2015-04-02T23:09:58Z","closed_at":null,"body":"Affected version: 689b5b419172b04f88f70fee4b9a7a8dca7d01a3\r\nOS: Linux 3.17.2-300.fc21.x86_64\r\nRelated to issue: #23 \r\n\r\nAfter successfully mounting my phone, I try to rsync a folder to my computer. It works for a few files, until the connection is closed with the following errors:\r\n```\r\n2014/11/13 10:33:55 FUSE mounted\r\n2014/11/13 10:34:16 fatal error got type 0 (CONTAINER_UNDEFINED) in response, want CONTAINER_RESPONSE.; closing connection.\r\n2014/11/13 10:34:16 AndroidGetPartialObject64 failed: got type 0 (CONTAINER_UNDEFINED) in response, want CONTAINER_RESPONSE.\r\n2014/11/13 10:34:16 AndroidGetPartialObject64 failed: mtp: cannot run operation ANDROID_GET_PARTIAL_OBJECT64, device is not open\r\n2014/11/13 10:34:16 AndroidGetPartialObject64 failed: mtp: cannot run operation ANDROID_GET_PARTIAL_OBJECT64, device is not open\r\n2014/11/13 10:34:16 AndroidGetPartialObject64 failed: mtp: cannot run operation ANDROID_GET_PARTIAL_OBJECT64, device is not open\r\n2014/11/13 10:34:16 AndroidGetPartialObject64 failed: mtp: cannot run operation ANDROID_GET_PARTIAL_OBJECT64, device is not open\r\n...\r\n```\r\nApparently, this happens as a result to an ANDROID_GET_PARTIAL_OBJECT64 request:\r\n```\r\n2014/11/13 10:40:06 MTP request ANDROID_GET_PARTIAL_OBJECT64 [543 0 0 62964]\r\n2014/11/13 10:40:06 MTP data 0xf600 bytes\r\n2014/11/13 10:40:06 MTP bulk read 0x4000 bytes.\r\n2014/11/13 10:40:06 MTP bulk read 0x4000 bytes.\r\n2014/11/13 10:40:06 MTP bulk read 0x4000 bytes.\r\n2014/11/13 10:40:06 MTP bulk read 0x3400 bytes.\r\n2014/11/13 10:40:11 MTP response 0x0 []\r\n2014/11/13 10:40:11 fatal error got type 0 (CONTAINER_UNDEFINED) in response, want CONTAINER_RESPONSE.; closing connection.\r\n```\r\nDebug logs, created with --debug=fs,mtp,usb: \r\n* `rsync -av ...`: http://zentrale1.com/~an/debug-log.gz\r\n* `cp -ar ...`: http://zentrale1.com/~an/debug-log-cp.gz"},"comment":{"url":"https://api.github.com/repos/hanwen/go-mtpfs/issues/comments/89072943","html_url":"https://github.com/hanwen/go-mtpfs/issues/75#issuecomment-89072943","issue_url":"https://api.github.com/repos/hanwen/go-mtpfs/issues/75","id":89072943,"user":{"login":"andreasf","id":490656,"avatar_url":"https://avatars.githubusercontent.com/u/490656?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasf","html_url":"https://github.com/andreasf","followers_url":"https://api.github.com/users/andreasf/followers","following_url":"https://api.github.com/users/andreasf/following{/other_user}","gists_url":"https://api.github.com/users/andreasf/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasf/subscriptions","organizations_url":"https://api.github.com/users/andreasf/orgs","repos_url":"https://api.github.com/users/andreasf/repos","events_url":"https://api.github.com/users/andreasf/events{/privacy}","received_events_url":"https://api.github.com/users/andreasf/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T23:09:58Z","updated_at":"2015-04-02T23:09:58Z","body":"This is the result of go test:\r\n\r\n```\r\n$ go test\r\n2015/04/03 01:06:59 Found a device candidate\r\n2015/04/03 01:06:59 now selecting devices\r\n2015/04/03 01:06:59 device added\r\n2015/04/03 01:06:59 at offset: 1\r\n2015/04/03 01:06:59 ID retrieved\r\n2015/04/03 01:06:59 at offset: 2\r\n2015/04/03 01:06:59 ID retrieved\r\n2015/04/03 01:06:59 at offset: 3\r\n2015/04/03 01:06:59 ID retrieved\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 319 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 20 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 24 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 16 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 54 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 17 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 16 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 16 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 67 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 Found a device candidate\r\n2015/04/03 01:06:59 now selecting devices\r\n2015/04/03 01:06:59 device added\r\n2015/04/03 01:06:59 at offset: 1\r\n2015/04/03 01:06:59 ID retrieved\r\n2015/04/03 01:06:59 at offset: 2\r\n2015/04/03 01:06:59 ID retrieved\r\n2015/04/03 01:06:59 at offset: 3\r\n2015/04/03 01:06:59 ID retrieved\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 23 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 20 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 67 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 38 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 26 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 24 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 24 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 30 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 23 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 23 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 26 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 23 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 23 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 23 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 Found a device candidate\r\n2015/04/03 01:06:59 now selecting devices\r\n2015/04/03 01:06:59 device added\r\n2015/04/03 01:06:59 at offset: 1\r\n2015/04/03 01:06:59 ID retrieved\r\n2015/04/03 01:06:59 at offset: 2\r\n2015/04/03 01:06:59 ID retrieved\r\n2015/04/03 01:06:59 at offset: 3\r\n2015/04/03 01:06:59 ID retrieved\r\n2015/04/03 01:06:59 at offset: 1\r\n2015/04/03 01:06:59 ID retrieved\r\n2015/04/03 01:06:59 at offset: 2\r\n2015/04/03 01:06:59 ID retrieved\r\n2015/04/03 01:06:59 at offset: 3\r\n2015/04/03 01:06:59 ID retrieved\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 319 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 Found a device candidate\r\n2015/04/03 01:06:59 now selecting devices\r\n2015/04/03 01:06:59 device added\r\n2015/04/03 01:06:59 at offset: 1\r\n2015/04/03 01:06:59 ID retrieved\r\n2015/04/03 01:06:59 at offset: 2\r\n2015/04/03 01:06:59 ID retrieved\r\n2015/04/03 01:06:59 at offset: 3\r\n2015/04/03 01:06:59 ID retrieved\r\n2015/04/03 01:06:59 at offset: 1\r\n2015/04/03 01:06:59 ID retrieved\r\n2015/04/03 01:06:59 at offset: 2\r\n2015/04/03 01:06:59 ID retrieved\r\n2015/04/03 01:06:59 at offset: 3\r\n2015/04/03 01:06:59 ID retrieved\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 319 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 20 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 74 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 16 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 24 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 40 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 170 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 20 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 12 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:06:59 512 bytes received in fetchPacket\r\n2015/04/03 01:06:59 fetchPacket\r\n2015/04/03 01:07:01 0 bytes received in fetchPacket\r\n2015/04/03 01:07:01 fatal error got type 0 (CONTAINER_UNDEFINED) in response, want CONTAINER_RESPONSE.; closing connection.\r\n2015/04/03 01:07:01 fetchPacket\r\n2015/04/03 01:07:03 0 bytes received in fetchPacket\r\n--- FAIL: TestDeviceStorage (4.55s)\r\n\tdevice_test.go:301: device: LGE Nexus 5 072094d20b359dd6\r\n\tdevice_test.go:308: device info stdv: 64, ext: 6, mtp: v64, mtp ext: \"microsoft.com: 1.0; android.com: 1.0;\" fmod: 0 ops: GetDeviceInfo, OpenSession, CloseSession, GetStorageIDs, GetStorageInfo, GetNumObjects, GetObjectHandles, GetObjectInfo, GetObject, GetThumb, DeleteObject, SendObjectInfo, SendObject, GetDevicePropDesc, GetDevicePropValue, SetDevicePropValue, ResetDevicePropValue, GetPartialObject, MTP_GetObjectPropsSupported, MTP_GetObjectPropDesc, MTP_GetObjectPropValue, MTP_SetObjectPropValue, MTP_GetObjPropList, MTP_GetObjectReferences, MTP_SetObjectReferences, ANDROID_GET_PARTIAL_OBJECT64, ANDROID_SEND_PARTIAL_OBJECT, ANDROID_TRUNCATE_OBJECT, ANDROID_BEGIN_EDIT_OBJECT, ANDROID_END_EDIT_OBJECT evs: ObjectAdded, ObjectRemoved, StoreAdded, StoreRemoved, DevicePropChanged dprops: MTP_SynchronizationPartner, MTP_DeviceFriendlyName, ImageSize, BatteryLevel fmts:  capfmts: Undefined, Association, Text, HTML, WAV, MP3, MPEG, EXIF_JPEG, TIFF_EP, BMP, GIF, JFIF, PNG, TIFF, MTP_WMA, MTP_OGG, MTP_AAC, MTP_MP4, MTP_MP2, MTP_3GP, MTP_AbstractAudioVideoPlaylist, MTP_WPLPlaylist, MTP_M3UPlaylist, MTP_PLSPlaylist, MTP_XMLDocument, MTP_FLAC manu: \"LGE\" model: \"Nexus 5\" devv: \"1.0\" serno: \"072094d20b359dd6\"\r\n\tdevice_test.go:321: mtp.Uint32Array{Values:[]uint32{0x10001}}\r\n\tdevice_test.go:334: mtp.StorageInfo{StorageType:0x3, FilesystemType:0x2, AccessCapability:0x0, MaxCapability:0x3235af000, FreeSpaceInBytes:0xdcade000, FreeSpaceInImages:0x40000000, StorageDescription:\"Internal storage\", VolumeLabel:\"\"}\r\n\tdevice_test.go:341: num objects 0x20e2\r\n\tdevice_test.go:367: Sent objectinfo handle: 0x26b9\r\n\tdevice_test.go:401: info mtp.ObjectInfo{StorageID:0x10001, ObjectFormat:0x3000, ProtectionStatus:0x0, CompressedSize:0x3f4, ThumbFormat:0x0, ThumbCompressedSize:0x0, ThumbPixWidth:0x0, ThumbPixHeight:0x0, ImagePixWidth:0x0, ImagePixHeight:0x0, ImageBitDepth:0x0, ParentObject:0x0, AssociationType:0x0, AssociationDesc:0x0, SequenceNumber:0x0, Filename:\"go-mtp-testfcf46d0\", CaptureDate:time.Time{sec:63563620018, nsec:0, loc:(*time.Location)(0x867560)}, ModificationDate:time.Time{sec:63563620018, nsec:0, loc:(*time.Location)(0x867560)}, Keywords:\"\"}\r\n\tdevice_test.go:409: info mtp.Uint64Value{Value:0x3f4}\r\n\tdevice_test.go:419: GetObject failed: got type 0 (CONTAINER_UNDEFINED) in response, want CONTAINER_RESPONSE.\r\nFAIL\r\nexit status 1\r\nFAIL\tgithub.com/hanwen/go-mtpfs/mtp\t4.821s\r\n```\r\n\r\nNexus 5, Android 5.1, Build LMY47I (but it was the same with 5.0.1)"}}