libimobiledevice / usbmuxd

A socket daemon to multiplex connections from and to iOS devices
https://libimobiledevice.org
GNU General Public License v2.0
1.46k stars 352 forks source link

Client command received in the wrong state #61

Open ChillarAnand opened 8 years ago

ChillarAnand commented 8 years ago

usbmuxd keeps throwing this error message and restarts after 1024 seconds

Client 143 command received in the wrong state
Client 144 command received in the wrong state
Client 145 command received in the wrong state

After enabling verbose, it shows this error message

Sep 29 12:43:42 foo usbmuxd[7516]: [12:43:42.858][4] New client on fd 753
Sep 29 12:43:42 foo usbmuxd[7516]: [12:43:42.858][5] Client command in fd 753 len 16 ver 0 msg 3 tag 1
Sep 29 12:43:42 foo usbmuxd[7516]: [12:43:42.858][5] send_pkt fd 753 tag 1 msg 1 payload_length 4
Sep 29 12:43:42 foo usbmuxd[7516]: [12:43:42.858][5] Client 753 now LISTENING
Sep 29 12:43:42 foo usbmuxd[7516]: [12:43:42.858][5] send_pkt fd 753 tag 0 msg 4 payload_length 268
Sep 29 12:43:42 foo usbmuxd[7516]: [12:43:42.858][5] send_pkt fd 753 tag 0 msg 4 payload_length 268
Sep 29 12:43:42 foo usbmuxd[7516]: [12:43:42.860][4] New client on fd 754
Sep 29 12:43:42 foo usbmuxd[7516]: [12:43:42.861][5] Client command in fd 754 len 16 ver 0 msg 3 tag 1
Sep 29 12:43:42 foo usbmuxd[7516]: [12:43:42.861][5] send_pkt fd 754 tag 1 msg 1 payload_length 4
Sep 29 12:43:42 foo usbmuxd[7516]: [12:43:42.861][5] Client 754 now LISTENING
Sep 29 12:43:42 foo usbmuxd[7516]: [12:43:42.861][5] send_pkt fd 754 tag 0 msg 4 payload_length 268
Sep 29 12:43:42 foo usbmuxd[7516]: [12:43:42.861][5] send_pkt fd 754 tag 0 msg 4 payload_length 268
Sep 29 12:43:42 foo usbmuxd[7516]: [12:43:42.863][5] Client command in fd 754 len 24 ver 0 msg 2 tag 2
Sep 29 12:43:42 foo usbmuxd[7516]: [12:43:42.863][1] Client 754 command received in the wrong state
Sep 29 12:43:42 foo usbmuxd[7516]: [12:43:42.863][5] send_pkt fd 754 tag 2 msg 1 payload_length 4
Sep 29 12:43:42 foo usbmuxd[7516]: [12:43:42.863][4] Disconnecting client fd 754
Sep 29 12:43:43 foo usbmuxd[7516]: [12:43:43.157][6] usb_discover: scanning 15 devices
nsourligas commented 7 years ago

Hello ChillarAnand,

I have the same problem with you, usbmuxd returns that the command received in the wrong state. I have checked thoroughly the source code of my C program and everything seems fine with the handshake procedure. Did you manage to solve this issue or not? Could you please share with us your solution in case you succeeded to figure out this problem?

Thank you. Nikos.