Skip to content
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

Segmentation fault #174

Closed
eku opened this issue Jun 13, 2018 · 8 comments
Closed

Segmentation fault #174

eku opened this issue Jun 13, 2018 · 8 comments
Labels

Comments

@eku
Copy link

eku commented Jun 13, 2018

Compiled and running scrcpy on Fedora 28 against an M3 SM10 device. scrcpy crashes with

$ ninja run
[0/1] Running external command run.
/home/.../scrcpy/x/server/scrcpy-server.jar: 1 file pushed. 1.2 MB/s (19342 bytes in 0.016s)
error: closed
ERROR: "adb reverse" returned with value 1
WARN: 'adb reverse' failed, fallback to 'adb forward'
Segmentation fault 

I did not find any coredump, even Fedora's coredumpctl did not list any.

@rom1v
Copy link
Collaborator

rom1v commented Jun 13, 2018

What is your Android version? Is it at least Android 5?

@eku
Copy link
Author

eku commented Jun 13, 2018

It's running Android 4.3. I know scrcpy's device component requires at least Lollipop. Anyway, a hint instead of a segmentation fault would be helpful. Feel free to close this issue.

@rom1v
Copy link
Collaborator

rom1v commented Jun 13, 2018

Anyway, a hint instead of a segmentation fault would be helpful.

The segmentation fault occurs on the device, not in scrcpy (the client).

Avoiding it would require to check the Android version before starting the server… Why not, but don't know if it is worth it.

@eku
Copy link
Author

eku commented Jun 13, 2018

Min API 21 - what requires it? Is lowering the API possible?

@rom1v
Copy link
Collaborator

rom1v commented Jun 13, 2018

See discussion for API 19: #98

@eku
Copy link
Author

eku commented Jun 13, 2018

ty

@eku eku closed this as completed Jun 13, 2018
@Lokawn
Copy link

Lokawn commented Aug 28, 2018

My device is running Android 7.0 and still scrcpy crashed 2 times back to back.
Device is Moto G5 Plus 4GB variant.

 $ scrcpy -m 1280 -b 6M
 321 KB/s (18570 bytes in 0.056s)
 INFO: Initial texture: 720x1280
 INFO: FPS counter started
 INFO: 13 fps
 INFO: 44 fps
 Segmentation fault

@rom1v
Copy link
Collaborator

rom1v commented Aug 28, 2018

My device is running Android 7.0 and still scrcpy crashed 2 times back to back.

Interesting. How did it crash (which error messages)?

Segmentation fault? Error logs in adb logcat?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants