-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
"zsh: illegal hardware instruction scrcpy" #1239
Comments
It seems the binary you're running uses CPU instructions not supported by your CPU :/ It should work if you build it from your computer directly: https://github.com/Genymobile/scrcpy/blob/master/BUILD.md |
Unless you trigger some undefined behavior :/ If you can build it in debug and reproduce, I'm interested. |
do I need to build the server? [edit] and to install Android SDK, do I need to download and install the whole Android IDE? [edit2] this problem seems to be related to Catalina as I had run older versions of scrcpy on this same iMac when it was running High Sierra. Anyway, I'm trying to build it and the server now. |
No: https://github.com/Genymobile/scrcpy/blob/master/BUILD.md#prebuilt-server |
I am in way over my head:
results in:
now I'm trying to figure out how to install JDK... |
Your Either use |
how do I know I'm using the compiled version as opposed to the brew version? [edit] I guess because it's running server out of .../share/... instead of .../Cellar/...? |
Once you Then, to run, execute:
|
everytime it aborts it leaves a copy s̶c̶r̶c̶p̶y̶ adb running which I need to manually kill or else I get a could not listen error. Anyway, after doing that:
|
Use the
OK, great, so you reproduce with your own build 👍 Now, build in debug mode and run with gdb: meson d -Dprebuilt_server=/Users/[edit]/scrcpy/server-prebuilt/scrcpy-server-v1.12.1
ninja -Cd
export SCRCPY_SERVER_PATH=d/server/scrcpy-server
gdb d/app/scrcpy In the When it crashes, type |
I got so close:
|
|
justs sits there not crashing:
|
|
|
Before debugging, it must at least work "normally":
(without |
|
I am running Catalina on (technically) unsupported Mac. See the message about Failed to obtain Metal device? That might be the clue. Something in the toolchain you're using is not compatible with my patched Catalina install :-( |
But I don't understand why you get |
should I get gdb running instead of lldb? |
I'm trying to build the dev branch but getting this error:
same when I build the release version of the main branch:
[edit] uninstalling JDK14 and installing JDK8 in the hopes that building will work...and I'm getting further:
ugh, still erroring out in debug mode with adb push |
I just did a |
relatively fresh Catalina install with fresh Homebrew and scrcpy install is throwing the following error:
The text was updated successfully, but these errors were encountered: