scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

Could not initialize SDL - No available video device

Open xxxxxxH opened this issue 4 years ago • 8 comments

Environment ubuntu 20.04 scrcpy 1.19 RedMi k20 Android 10 INFO: scrcpy 1.19 https://github.com/Genymobile/scrcpy /usr/local/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 44.5 MB/s (37330 bytes in 0.001s) error: XDG_RUNTIME_DIR not set in the environment. CRITICAL: Could not initialize SDL: No available video device [server] INFO: Device: Xiaomi Redmi K20 (Android 10) [server] ERROR: Exception on thread Thread[main,5,main] java.io.IOException: Connection refused at android.net.LocalSocketImpl.connectLocal(Native Method) at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:296) at android.net.LocalSocket.connect(LocalSocket.java:147) at com.genymobile.scrcpy.DesktopConnection.connect(DesktopConnection.java:40) at com.genymobile.scrcpy.DesktopConnection.open(DesktopConnection.java:63) at com.genymobile.scrcpy.Server.scrcpy(Server.java:57) at com.genymobile.scrcpy.Server.main(Server.java:255) at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:380)

xxxxxxH avatar Sep 29 '21 08:09 xxxxxxH

error: XDG_RUNTIME_DIR not set in the environment.
CRITICAL: Could not initialize SDL: No available video device

Do you just run scrcpy locally, or over SSH or in a VM or something?

rom1v avatar Sep 29 '21 08:09 rom1v

run in VM

xxxxxxH avatar Sep 29 '21 08:09 xxxxxxH

subsystm for windows 10 ubuntu 20.04 LTS

xxxxxxH avatar Sep 29 '21 08:09 xxxxxxH

hello hello Is there any solution

xxxxxxH avatar Oct 08 '21 01:10 xxxxxxH

Your VM seems to not have access to accelerated video output.

rom1v avatar Oct 08 '21 02:10 rom1v

So what should I do ths

xxxxxxH avatar Oct 08 '21 06:10 xxxxxxH

I meet the same question in 阿里云 arm64 Ubuntu VM , has anybody resolve this?

liukuo362573 avatar Nov 09 '22 03:11 liukuo362573

I meet the same question in 阿里云 arm64 Ubuntu VM , has anybody resolve this?

Finally, I change to other ROM version,the error disappear.

liukuo362573 avatar Nov 10 '22 06:11 liukuo362573

I meet the same question in 阿里云 arm64 Ubuntu VM , has anybody resolve this?

Finally, I change to other ROM version,the error disappear.

what kind of ROM version did you running successfully? i'm using azure Ubuntu 22 VM with arm64 and face the same error now....

pongpom avatar Aug 26 '23 19:08 pongpom

@pongpom other redroid version

liukuo362573 avatar Aug 27 '23 00:08 liukuo362573