Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
109.62k stars 10.53k forks source link

Device disconnects during scrolling #5326

Open lordofscripts opened 19 hours ago

lordofscripts commented 19 hours ago

I got scrcpy version 2.7 (somewhat) running on my Raspberry Pi (Debian Bullseye). My device's screen is a tad longer than FHD and my Linux desktop is FHD, so I got it to display like this:

scrcpy --max-size 1024

Environment

Describe the bug

WARN: Device disconnected
lordofscripts commented 19 hours ago

Usually after it crashes like this then it becomes impossible to reconnect even after killing & restarting the server:

scrcpy 2.7 <https://github.com/Genymobile/scrcpy>
ERROR: Device could not be connected (state=offline)
ERROR: Server connection failed
rom1v commented 12 hours ago

At first it runs well but as soon as I use the mouse scroll wheel it crashes

WARN: Device disconnected

Scrcpy closes automatically when it gets disconnected, and it seems.mouse movements (which probably cause more video changes) cause adb to be disconnected. (Technically, it not a scrcpy crash, but I understand it can look like it is a crash.)

Btw, if you run adb shell or adb logcat in a separate terminal, they will terminate at the same time as scrcpy.

Given that the device is considered offline after that, it might be a USB cable/port issue, or a power issue (especially on raspi, not enough power for the Android device). Reducing the resolution/bit rate might help (or not).