remote-android / redroid-doc

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

adb shell 能连接成功, scrcpy连接报空指针 #681

Closed 54shady closed 6 months ago

54shady commented 6 months ago

启动参数: docker run -d --privileged --name android \ -p 5554:5555 -v /data:/data \ d51192b100cb androidboot.redroid_gpu_mode=guest

adb shell 能连接成功, scrcpy连接报空指针 A clear and concise description of what the bug is.

已开启下面的内核功能

收集调试日志(ZH_CN) log.zip

$ scrcpy -s 10.0.0.101:5554 [8/344] scrcpy 1.21 https://github.com/Genymobile/scrcpy /usr/share/scrcpy/scrcpy-server: 1.... 6.5 MB/s (39473 bytes in 0.006s) WARNING: linker: Warning: "[vdso]" unused DT entry: unknown processor-specific (type 0x70000001 arg 0x0) (ignoring) WARNING: linker: Warning: "[vdso]" unused DT entry: unknown processor-specific (type 0x70000001 arg 0x0) (ignoring) [server] INFO: Device: redroid redroid11_arm64 (Android 11) [server] ERROR: Exception on thread Thread[main,5,main] 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:30) at com.genymobile.scrcpy.Device.(Device.java:64) at com.genymobile.scrcpy.Server.scrcpy(Server.java:63) at com.genymobile.scrcpy.Server.main(Server.java:309) at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:399) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object referen ce at com.genymobile.scrcpy.wrappers.DisplayManager.getDisplayInfo(DisplayManager.java:17) ... 5 more ERROR: Server connection failed

开cgroup v1 root@debian:/# mount | grep cgroup tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,size=4096k,nr_inodes=1024,mode=755) cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate) cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd) cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event) cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio) cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids) cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct) cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory) cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) root@debian:/#

root@debian:/# grep binder /proc/filesystems nodev binder root@debian:/# grep ash /proc/misc 123 ashmem root@debian:/#

root@debian:/# zgrep PSI /proc/config.gz CONFIG_PSI=y

qingpengchen2011 commented 5 months ago

最终是怎么解决的?