scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

No display when connecting to Android Emulator running on remote Windows 10 machine with existing RDP session

Open guanzhangrtk opened this issue 3 years ago • 1 comments

  • [x] I have read the FAQ.
  • [x] I have searched in existing issues.

Environment

  • OS: macOS Big Sur 11.3.1
  • scrcpy version: 1.18
  • installation method: brew
  • device model: BlueStacks 4 running on remote Windows 10 machine with NVIDIA GPU
  • Android version: 7.1.1

Describe the bug I have a pretty convoluted setup. I'm running BlueStacks (Android Emulator) on a Windows 10 machine where I portforward the adb connection (127.0.0.1:5555) via the LAN address so that I can connect directly to BlueStacks adb from another computer running macOS.

This setup normally works, but if I have a remote RDP session to the computer, when I run scrcpy the screen will not show up, in fact I have to go to the menu bar up top, click on "About scrcpy", close that window before it shows the device window, with a black screen.

Attached is the adb logcat from the device. I enabled ADB_TRACE on the macOS side and didn't notice any issues.

If I execute tscon 1 /dest:console on Windows 10 to detach the remote console, it would start working again.

I know my setup is pretty convoluted and I think I kinda know why it's happening, but it'd be nice to see if there's a solution to fix/workaround this, thanks a lot in advance! scrcpy-1.log

guanzhangrtk avatar Jun 28 '21 02:06 guanzhangrtk

:ballot_box_with_check: if you see a black screen instead of the emulated device, click the navigation bar button on your laptop or desktop and you would see the device emulated

daUnknownCoder avatar Jul 02 '21 05:07 daUnknownCoder