-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
Can not push scrcpy-server, adb: error: failed to read copy response #4638
Comments
Even v2.1.1 should do that. Anyway, there is an option
That's an adb connection issue. Try |
Sorry Forgot to include that doing the following
Makes no difference. Still fails to push and I lose no other adb functionality. I can still run an adb shell, run commands and also push files to the phone so I can't see there is an issue with adb?? The only thing that is failing is pushing the scrcpy-server. |
If you reproduce the problem with adb only (without scrcpy), the issue is necessary with adb. (to push the file, scrcpy does nothing else than just executing an
Just for testing, what if you reboot the phone instead? What if you use another phone on this computer?
Even to the same target ( Try another adb version maybe? (there might be a bug in a specific version) |
For starters, I appreciate your help. I can't reproduce the problem without involving "scrcpy-server". That is the only file that fails to push when it gets in this state. If I turn the phone off and on, the problem still persists. There is no change. same error. From the same computer I still push the scrcpy-server to a different phone. But this is not the main phone I use scrcpy for so maybe over time it might do the same but I cant confirm that. I have tried pushing files fine but i havent tried pushing a file and naming it scrcpy.server.jar as per I was thinking it was to do with (I assume not knowing too much) it was some tcp connection issue scrcpy was trying to setup. If its purely a push issue, is there a way to pre push the scrcpy-server, start scrcpy via a adb command and then when I shut down scrcpy the scrcpy-server remains on the phone as an alternative? |
Ok I tested the commands above when it is in a broken state
|
After reboot. I tested new version. Took about 3 hrs to stop working.
|
Is there anything else I can try? |
I want to be able to prove the fault is only related to adb. To test this, When this error happens i will push the server to the phone by another computer. Then go back to the one I am having issues with. I then want to start the pushed server without pushing it because its already there and plus it will fail. How do I start it manually (so it does not try and push) then if its just a push error I should be able to run scrcpy. |
Remove this to avoid pushing the server: Line 940 in 5a6b831
And run with |
Thank you. Well I tried for almost the day on Windows and Linux just could not build get scrcpy to build. :-( I got this far and then could not get any further. I just can't get past this point.
|
Do not execute as root! (no |
Thank you again. There must have been some some permission issues and It could not create and delete folders. Once I sorted that It ran without root. I waited until scrcpy was no longer working on this computer and did the following. Left side original scrcpy | Right modified scrcpy with no push Since adb still works in this state and I can push any other file except the scrcpy-server. I am not sure what this proves if anything other than the issue is pushing the file scrcpy-server? |
Environment
Describe the bug
Scrcpy works fine for a period of time. Ranging from half a day to several days. I am always connecting and disconnecting constantly. Scrcpy then fails to start. Output from terminal is
I am unable to connect to the phone again with Scrcpy unless I reboot the computer (I don't need to touch the phone at all).
If I try to manually push "scrcpy-server" I get the same adb: error: failed to read copy response.
I can push any other file to the phone no problems at all??
If I use another computer - no problems at all. The problem lies solely with the pushing of the scrcpy-server after a period of connections and disconnections.
I have Changed sim cards (to rule this out) no difference.
Looking at the adb client code below this seems to be the issue
Full section of code and code location https://android.googlesource.com/platform/system/core/+/d427b54c535d3f56e9db947efa4878346541f890/adb/client/file_sync_client.cpp
I don't know enough to understand what it means.
Turning off and on the computer to fix the issue is no a valid option for me.
I have tried resetting the NETWORK on the computer and editing the TIMEWAIT for TCP but nothing I have done or can do will fix the problem without a reboot of the computer.
Any ideas or thoughts? There is this issue which is similar #3241 same error at least but connecting via USB cable where I am not and have worked out it's only related to pushing the scrcpy-server.
The text was updated successfully, but these errors were encountered: