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

Pixel2 XL crashes on every PC / Mac #916

Closed
Entropiks opened this issue Nov 7, 2019 · 5 comments
Closed

Pixel2 XL crashes on every PC / Mac #916

Entropiks opened this issue Nov 7, 2019 · 5 comments

Comments

@Entropiks
Copy link

I've been trying to figure this issue out since I found scrcpy a few months back. It almost always run but at random it will simple close without any errors - Almost as if a user closed the window. I am getting the same exactly issue on a 2011 macbook pro with Yosemite, 2017 mac with Catalina, Surface Pro, my windows10 desktop all have the exact same issue happening. I have tried with multiple different USB-C cables as well. Thinking this may be a phone issue if constant across all computers?

Cheers

@rom1v
Copy link
Collaborator

rom1v commented Nov 7, 2019

It almost always run but at random it will simple close without any errors - Almost as if a user closed the window.

This happens when the connection between the device and the computer ends.

To know if it comes from adb, run in a separate console adb logcat. If, when scrcpy closes itself, adb logcat also terminates, then the device has been disconnected (from an adb point of view).

This may also happen if USB is reconfigured (for example switches between MTP/PTP/etc).

Sometimes, it's the USB port/cable (#281 #283), but you already tested with several cables and several computers.

@Entropiks
Copy link
Author

Entropiks commented Nov 8, 2019

This is kind of what I was getting towards was that my ADB connection keeps failing / something keeps switching over on the device. Will run the logcat and report back.

EDIT:: logcat terminates when scrcpy does - seems to be in my adb device list it constantly switches between attached and not. This does not seem like a scrcpy issue rather than pixel2xl issue.

@rom1v
Copy link
Collaborator

rom1v commented Nov 8, 2019

Maybe try with still another cable.

When it disconnects, does the vendorId:productId of your device changes? (as displayed by lsusb on linux, I don't know how to get this information easily on Windows)

It can also depend on the throughput, so try with a lower bitrate:

scrcpy -m1024 -b2M

Also, does it work without disconnecting over wifi?

@Entropiks
Copy link
Author

Yes wifi works fine - have tried 4 cables. Have tried with that exact throughput on all devices with same error. Will report back regarding productid chaging.

@Entropiks
Copy link
Author

Update ( Fixed ):

Using a usb hub on both PC as well as Mac OS Catalina has fixed the constant random disconnecting using the same cords that all didn't work with direct connection.

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

No branches or pull requests

2 participants