remote-android / redroid-doc

redroid (Remote-Android) is a multi-arch, GPU enabled, Android in Cloud solution. Track issues / docs here
3.85k stars 282 forks source link

adb已连接上scrcpy连接不上 #500

Open hsdnh opened 7 months ago

hsdnh commented 7 months ago

scrcpy v2.2 https://github.com/Genymobile/scrcpy INFO: ADB device found: INFO: --> (tcpip) 154.666.662.2:5555 device redroid13_arm64_only C:\Users\Administrator\Desktop\scrcpy-win64-v2.2\scrcpy-se...file pushed, 0 skipped. 137.2 MB/s (64363 bytes in 0.000s) [server] INFO: Device: [redroid] redroid redroid13_arm64_only (Android 13) [server] ERROR: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference java.lang.AssertionError: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference at com.genymobile.scrcpy.wrappers.DisplayManager.getDisplayInfo(DisplayManager.java:86) at com.genymobile.scrcpy.Device.(Device.java:72) at com.genymobile.scrcpy.Server.scrcpy(Server.java:95) at com.genymobile.scrcpy.Server.internalMain(Server.java:235) at com.genymobile.scrcpy.Server.main(Server.java:190) at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference at com.genymobile.scrcpy.wrappers.DisplayManager.getDisplayInfo(DisplayManager.java:72) ... 6 more ERROR: Server connection failed 大佬,我这是什么原因

zhouziyang commented 7 months ago

Seems something wrong with redroid container. Please follow https://github.com/remote-android/redroid-doc#troubleshooting to collect debug blobs.

hsdnh commented 7 months ago

redroid 容器似乎有问题。请按照https://github.com/remote-android/redroid-doc#troubleshooting收集调试blob。

收集的调试内容 tmp.zip

用的是Oracle ubuntu20.04 ARM64

我根据该教程重新安装了一遍这次连adb都连不上了 教程链接

我在网上按照几篇教程都走了一遍反复安装没有一个成功连上显示出屏幕的大佬帮忙看看

zhouziyang commented 7 months ago

Try docker run ... androidboot.redroid_gpu_mode=guest

54shady commented 1 month ago

Try docker run ... androidboot.redroid_gpu_mode=guest

遇到同样的问题,设置了gpu guest也还是不行,问题依旧

zhouziyang commented 1 month ago

@54shady Please file an new issue with the debug blobs attached.

54shady commented 1 month ago

@54shady Please file an new issue with the debug blobs attached.

已解决