android-file-transfer-linux icon indicating copy to clipboard operation
android-file-transfer-linux copied to clipboard

timeout issue

Open apple-corps opened this issue 4 years ago • 4 comments

Hello,

Just downloaded the latest appimage.

Android_File_Transfer-14cdedc-x86_64.AppImage
upload worker started 
current text color value:  0 , guessed theme:  "light" 
probing device...
probing device...
probing device...
probing device...
probing device...
probing device...
device found, opening session... 
10009 ms since the last poll call
timed out getting device info:  "timeout reaping usb urb" , retrying... 
10008 ms since the last poll call
timed out getting device info:  "timeout reaping usb urb" , retrying... 
got unknown urb: 0x7fff5fa5ab00 of size 1604692896
10008 ms since the last poll call
terminate called after throwing an instance of 'mtp::usb::TimeoutException'
  what():  timeout reaping usb urb
Aborted

apple-corps avatar Apr 20 '20 09:04 apple-corps

this is known issue and I suspect it's race condition in linux kernel. You can check with wireshark, ACK from device will appear when file closes. I never reported it to LKLM, but tried to find the problem myself and failed :stuck_out_tongue:

I'm not sure if appimage allows you to pass options, but if you figure out how, try resetting your device before opening by using -R option to android-file-transfer binary

whoozle avatar Jun 07 '20 21:06 whoozle

I think I have a similar issue using AFT 3.9 with a Pixel 4a. I tried using the -R option before mounting, but I just get an error:

aft-mtp-mount -d /mnt/android/
probing device 06cb:00bd
error: Permission denied
probing device 04f2:b67c
error: Permission denied
probing device 8087:0aaa
error: Permission denied
probing device 062a:4102
error: Permission denied
probing device 18d1:4ee1
capabilities = 0x000001fd
page size = 4096
<zero-packet>
<no-packet-size-limit>
<bulk-scatter-gather>
<reap-after-disconnect>
<mmap>
<drop-privileges>
<unknown capability 0x180>
Device usb interface: 0:0, index: 0, enpoints: 3
read control 80 06 0300 0000
languages[4]:
00000000: 04 03 09 04                                     ....

descriptor[75]:
00000000: 12 01 20 03 00 00 00 09 d1 18 e1 4e 40 04 01 02 .. ........N@...
00000010: 03 01 09 02 39 00 01 01 04 c0 00 09 04 00 00 03 ....9...........
00000020: 06 01 01 05 07 05 81 02 00 04 00 06 30 06 00 00 ............0...
00000030: 00 07 05 01 02 00 04 00 06 30 06 00 00 00 07 05 .........0......
00000040: 82 03 1c 00 06 06 30 00 00 00 00                ......0....

read control 80 06 0305 0409
interface name[8]:
00000000: 08 03 4d 00 54 00 50 00                         ..M.T.P.

10006 ms since the last poll call
connect failed: timeout reaping usb urb

akvadrako avatar Oct 29 '20 15:10 akvadrako

BTW, I works with jmtpfs, at least for a while.

akvadrako avatar Oct 29 '20 15:10 akvadrako

I think I have a similar issue using AFT 3.9

Can you try using master? there's quite a few bugfixes since then

whoozle avatar Oct 30 '20 15:10 whoozle