scrcpy: 1.21 failed to execute error on Windows 7
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.
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
- Log CreateProcessW() error code on Windows Refs #2838 <https://github.com/Genymobile/scrcpy/issues/2838> — committed to Genymobile/scrcpy by rom1v 3 years ago
- Fix process execution on Windows 7 According to this bug report on Firefox: <https://bugzilla.mozilla.org/show_bug.cgi?id=1460995> > CreateProcess fails with ERROR_NO_SYSTEM_RESOURCES on Windows 7. ... — committed to Genymobile/scrcpy by rom1v 3 years ago
- Fix process execution on Windows 7 According to this bug report on Firefox: <https://bugzilla.mozilla.org/show_bug.cgi?id=1460995> > CreateProcess fails with ERROR_NO_SYSTEM_RESOURCES on Windows 7. ... — committed to Genymobile/scrcpy by rom1v 3 years ago
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:
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
).I ran into a similar issue, which would also be solved by this patch.
https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes--1300-1699-
🤔