-
-
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
MacOS Segmentation fault: 11 #1414
Comments
Which device? Which Android version? Try with the latest scrcpy version (1.13). |
I get the same. Using prebuild server 1.13 and scrcpy built in MacPorts: dependencies:
Running lldb on scrcpy, it seems that adb push fails for some reason
Android Debug Bridge version 1.0.41 |
|
|
I guess the segfault occurs on the device. Could you |
XIAO MI mix2 Android 9.0 |
Could you please execute these two commands manually (adapt adb push PATH/TO/YOUR/scrcpy-server /data/local/tmp/scrcpy-server.jar
adb shell CLASSPATH=/data/local/tmp/scrcpy-server.jar app_process / com.genymobile.scrcpy.Server 1.13 0 8000000 0 -1 false - true true 0 |
That seemed to work. Obviously the socket won't connect since there isn't anything listening.
|
Hmmm…
For some reason, it seems that Instead, could you enable ASAN: meson x -Db_sanitize=address
# or just reconfigure if x already exists: meson configure x -Db_sanitize=address
ninja -Cx
./run x It should print the stacktrace if the segfault occurs on the computer (not on the device). |
Ref #726 |
@Climax777 Does it give a stacktrace? |
|
Weird, it seems the problem is not in scrcpy, but in SDL :/ Could you build in debug mode and retry? meson configure x --buildtype=debug
ninja -Cx
./run x |
Could you build scrcpy "manually" and retry? |
Do you mean the server? |
Doesn't seem much different in terms of output. |
No, the client. But I'm not sure what "MacPorts" is :) |
MacPorts is just an alternative to Homebrew. I did build it manually, as per instructions in the README.md. |
What macOS version? |
Catalina, all dependencies up to date according to macports. Adb
(android-platform-tools) also from macports.
…On Tue, May 26, 2020 at 10:29 AM Romain Vimont ***@***.***> wrote:
What macOS version?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1414 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAF3XHMF4DXGJKONSXCKWDTRTN4XZANCNFSM4NGXMANA>
.
|
I also use Macports (instead of Homebrew) in Catalina and build it manually and not getting any error message. I use the latest version of scrcpy (1.14).
|
You don't build the latest client, this warning has been fixed by 7eb16ce, between v1.12 and v1.13. You should |
For any future readers, just to note that scrcpy is on MacPorts with binaries for 10.12+ (project page):
See #2256 (comment) for more details, and note that this also sorts out the adb tools for you. MacPorts can be installed from here. |
scrcpy for macOS |
/usr/local/Cellar/scrcpy/1.8/share/scr...shed. 0.6 MB/s (19850 bytes in 0.030s)
2020-05-21 18:31:56.356 scrcpy[30780:1970626] INFO: Initial texture: 1080x2160
Segmentation fault: 11
JokerWudeMacBook-Pro:~ jokerwu$ scrcpy -v
scrcpy 1.8
dependencies:
The text was updated successfully, but these errors were encountered: