scrcpy: 1.21 failed to execute error on Windows 7

  • [ Y] I have read the FAQ.
  • [Y ] I have searched in existing issues.

Environment

  • OS: WIN7 64
  • scrcpy version: 1.21
  • installation method: release
  • device model:
  • Android version: [e.g. 10]

Describe the bug run scrcpy-console.bat without any params, it seems no serial was gotten. at the same time, 1.20 is working fine. any suggestion is appreciated, thx. scrcpy1 21error

scrcpy 1.21 <https://github.com/Genymobile/scrcpy>
ERROR: Failed to execute: [adb], [get-serialno]
ERROR: Could not execute "adb get-serialno"
ERROR: Could not get device serial
ERROR: Server connection failed

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 43

Commits related to this issue

Most upvoted comments

It works, thanks.

I submitted a PR (#2840) and referenced it from the release page.

I probably won’t publish a new (minor) version just for this (it would increment the version for everyone, whereas only Windows 7 is impacted), I will wait more changes (or at least a few days or more). Windows 7 users could just download the binary from #2840 😉

For Windows 10 via cygwin, overwriting scrcpy.exe with the one from #2840 like fusionneur said also fixed this problem for me. It doesn’t only happen on Windows 7 or Windows 11.

yes, overwriting scrpcy.exe with the one from #2840 makes it work again under Win 11 via cygwin

@guadeifel Your problem is different:

ERROR: Failed to execute: [C:\Users\gusta\AppData\Local\Android\Sdk\platform-tools], [get-serialno]

You set the ADB environment variable to a wrong value: it must point to the adb.exe executable, not its directory (C:\Users\gusta\AppData\Local\Android\Sdk\platform-tools\adb.exe).

Could you please test this one?

  • scrcpy.exe sha256:8c41744d76ba9003d4a5e5ac7c0e4d42bc136349076b4db099888fdc06f0bb5a

I ran into a similar issue, which would also be solved by this patch.

scrcpy 1.21 <https://github.com/Genymobile/scrcpy>
ERROR: Failed to execute: [adb], [-s], [5e0ed092], [push], ["J:\Toolkit\srcrpy\bin\scrcpy\scrcpy-server"], ["/data/local/tmp/scrcpy-server.jar"]
ERROR: Could not execute "adb push"
ERROR: Server connection failed

ERROR: CreateProcessW failed: 1450

https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes--1300-1699-

ERROR_NO_SYSTEM_RESOURCES 1450 (0x5AA) Insufficient system resources exist to complete the requested service

🤔