Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6GB video file transfers as 0 byte file. #304

Open
Techwolf opened this issue Apr 13, 2022 · 3 comments
Open

6GB video file transfers as 0 byte file. #304

Techwolf opened this issue Apr 13, 2022 · 3 comments

Comments

@Techwolf
Copy link

MTP device is a Canon 1DX mark II. 6GB video file is listed in file listing, but when downloaded, is zero bytes. Using the USB 3.x cable to a USB 3.x host on the computer running android-file-transfer-linux version 4.2.

@whoozle
Copy link
Owner

whoozle commented Dec 30, 2022

Oh my, I'm really sorry I missed your issue, could you please try
./cli/aft-mtp-cli -v
and send the output here.

I think I know what could cause a problem. PTP spec requires that object data should be sent in separate USB packet. Although any MTP enabled phone just freezes on that.

@Techwolf
Copy link
Author

Oh my!! I complety forgot about this issue I opened.

aft-mtp-cli -v
creating device descriptor at /sys/bus/usb/devices/1-2
creating device descriptor at /sys/bus/usb/devices/1-9
creating device descriptor at /sys/bus/usb/devices/3-3
creating device descriptor at /sys/bus/usb/devices/7-1
creating device descriptor at /sys/bus/usb/devices/3-4
creating device descriptor at /sys/bus/usb/devices/1-14
creating device descriptor at /sys/bus/usb/devices/7-2
creating device descriptor at /sys/bus/usb/devices/1-13
creating device descriptor at /sys/bus/usb/devices/4-1
probing device 043d:0349
error: Permission denied
descriptor->TryOpen() failed
probing device 8087:0aa7
error: Permission denied
descriptor->TryOpen() failed
probing device 8089:0004
error: Permission denied
descriptor->TryOpen() failed
probing device 1395:005e
error: Permission denied
descriptor->TryOpen() failed
probing device 1095:0400
error: Permission denied
descriptor->TryOpen() failed
probing device 048d:1345
error: Permission denied
descriptor->TryOpen() failed
probing device 1532:0067
error: Permission denied
descriptor->TryOpen() failed
probing device 0c70:f001
error: Permission denied
descriptor->TryOpen() failed
probing device 04a9:3292
capabilities = 0x000001fd
page size = 4096
<zero-packet> 
<no-packet-size-limit> 
<bulk-scatter-gather> 
<reap-after-disconnect> 
<mmap> 
<drop-privileges> 
<conninfo-ex> 
<suspend> 
configurations: 1
interfaces: 1
Device usb interface: 0:0, index: 0, endpoints: 3
read control 80 06 0300 0000
languages[4]:
00000000: 04 03 09 04                                     ....

read control 80 06 03ee 0409
winusb handshake failed: ioctl: Broken pipe
descriptor[75]:
00000000: 12 01 10 03 00 00 00 09 a9 04 92 32 02 00 01 02 ...........2....
00000010: 00 01 09 02 39 00 01 01 00 c0 01 09 04 00 00 03 ....9...........
00000020: 06 01 01 00 07 05 81 02 00 04 00 06 30 07 00 00 ............0...
00000030: 00 07 05 02 02 00 04 00 06 30 0f 00 00 00 07 05 .........0......
00000040: 83 03 08 00 0a 06 30 00 00 08 00                ......0....

read control 80 06 0300 0409
interface name[4]:
00000000: 04 03 09 04                                     ....

skipping interface with name Љ
selected storage 65537  CF
android file transfer for linux version v4.2-snapshot
Canon.Inc Canon EOS-1D X Mark II 3-1.1.8
extensions: 
supported op codes: OpenSession CloseSession GetDeviceInfo GetStorageIDs JanusGetSecureTimeChallenge GetStorageInfo JanusSetSecureTimeResponse GetNumObjects GetObjectHandles GetObjectInfo JanusSetLicenseResponse OpenMediaSession GetObject JanusGetSyncList CloseMediaSession GetThumb FormatStore JanusGetMeterChallenge GetDevicePropDesc SetDevicePropValue GetPartialObject SendObjectInfo SendObject JanusSetMeterResponse GetNextDataBlock 912c 9174 9114 9115 9116 9117 JanusGetLicenseState SetCurrentTimePosition JanusSendCommand 9132 9033 9068 9069 906a 906b 911a 911d 911e 911f ProcessWCFObject 9123 9124 9131 9133 9134 9135 913c 913e 913f 9140 9154 9155 9157 9158 9159 915a 915b 9160 91fe 91ff 906c 906d 906e 906f JanusCleanDataStore 9110 912b 9130 913d 915c 915d 911b 911c 9153 9128 9129 902f 910c 910e 91f0 9127 91f1 91e1 91e2 91e3 91e4 91e6 91e7 91e8 91e9 91ea 91eb 91ec 91ed 91ee 91ef 91f8 91f9 9144 9145 91d3 91d4 9136 9137 9146 9147 9148 9149 91df 91fb 91fc 914a 910f 914b 9141 9143 DeleteObject JanusSendMeterChallengeQuery 912d 912e 912f 914c 9139 913a 913b 914e 91d7 91d8 91d9 91da 91db 91dc 91dd 91de 91d5 9138 9118 91f5 91f6 917f 914d 914f 9150 91f2 91f3 91f4 91fd 9050 9051 905c 905d 9052 9053 9057 9058 9059 905a 905b 905f 
supported capture formats: ExifJpeg 
supported image formats: Association Script Dpof Avi Wav ExifJpeg b101 b103 bf02 UndefinedImage b104 b105 
supported properties: DeviceFriendlyName PerceivedDeviceType SessionInitiatorVersionInfo d303 BatteryLevel 

error: Operation code GetDevicePropValue not supported.

If need be, I can reload a 6GB file and test again.

@whoozle
Copy link
Owner

whoozle commented Jul 29, 2024

Interesting, I never seen a situation when device says "I support device property X" and does not support GetDevicePropValue 🙈

fixed in 35ab08b

Can you try downloading it again please? (ideally using cli with verbose switch)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants