Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
111.74k stars 10.7k forks source link

not support redroid #4765

Open doom-man opened 7 months ago

doom-man commented 7 months ago

Environment

Describe the bug

 docker run -itd --rm --privileged \
    --pull always \
    -v ~/data:/data \
    -p 5555:5555 \
    redroid/redroid:11.0.0-latest
adb connect 127.0.0.1:5555
scrcpy
scrcpy 2.4 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     --> (tcpip)  172.28.0.10:5555                device  redroid11_arm64
/opt/homebrew/Cellar/scrcpy/2.4/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 92.1 MB/s (69007 bytes in 0.001s)
[server] INFO: Device: [redroid] redroid redroid11_arm64 (Android 11)
[server] ERROR: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
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:89)
    at com.genymobile.scrcpy.Device.<init>(Device.java:73)
    at com.genymobile.scrcpy.Server.scrcpy(Server.java:121)
    at com.genymobile.scrcpy.Server.internalMain(Server.java:259)
    at com.genymobile.scrcpy.Server.main(Server.java:214)
    at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
    at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:399)
CodeFish711 commented 2 weeks ago

hi~i meet the same problem. have u got any solution yet?