redroid-doc icon indicating copy to clipboard operation
redroid-doc copied to clipboard

启动 5 分钟以上仍无法透过 adb 连接

Open UraraChiya opened this issue 1 year ago • 3 comments

Describe the bug 按照此文档在 Fedora 39 部署后,启动 5 分钟后仍然无法透过 adb 连接到 Android

make sure the required kernel modules present

  • grep binder /proc/filesystems
[chiya@fedora ~]$ grep binder /proc/filesystems
nodev   binder
  • grep ashmem /proc/misc
[chiya@fedora ~]$ grep ashmem /proc/misc
[chiya@fedora ~]$

collect debug logs curl -fsSL https://raw.githubusercontent.com/remote-android/redroid-doc/master/debug.sh | sudo bash -s -- [CONTAINER] omit CONTAINER if not exist any more. tmp.orx6TAHRaX.tgz.zip

Screenshots If applicable, add screenshots to help explain your problem. image

UraraChiya avatar Mar 25 '24 03:03 UraraChiya

换Ubuntu,一点问题没有

ohyeah521 avatar Mar 25 '24 05:03 ohyeah521

Seems something wrong with the graphics driver (mesa3d). As a workaround, try use software rendering (docker run ... androidboot.redroid_gpu_mode=guest)

03-25 03:24:36.358  6940  6940 F DEBUG   : Revision: '0'
03-25 03:24:36.358  6940  6940 F DEBUG   : ABI: 'x86_64'
03-25 03:24:36.358  6940  6940 F DEBUG   : Timestamp: 2024-03-25 03:24:36+0000
03-25 03:24:36.358  6940  6940 F DEBUG   : pid: 6917, tid: 6917, name: surfaceflinger  >>> /system/bin/surfaceflinger <<<
03-25 03:24:36.358  6940  6940 F DEBUG   : uid: 1000
03-25 03:24:36.358  6940  6940 F DEBUG   : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
03-25 03:24:36.359  6940  6940 F DEBUG   : Abort message: 'eglQueryStringImplementationANDROID(EGL_VERSION) failed'
03-25 03:24:36.359  6940  6940 F DEBUG   :     rax 0000000000000000  rbx 0000000000001b05  rcx 00007f6a761e36c8  rdx 0000000000000006
03-25 03:24:36.359  6940  6940 F DEBUG   :     r8  00007ffdfff01c60  r9  00007ffdfff01c60  r10 00007ffdfff01ac0  r11 0000000000000246
03-25 03:24:36.359  6940  6940 F DEBUG   :     r12 00007ffdfff025e0  r13 0000000000000001  r14 00007ffdfff01ab8  r15 0000000000001b05
03-25 03:24:36.359  6940  6940 F DEBUG   :     rdi 0000000000001b05  rsi 0000000000001b05
03-25 03:24:36.359  6940  6940 F DEBUG   :     rbp 00007ffdfff02520  rsp 00007ffdfff01aa8  rip 00007f6a761e36c8
03-25 03:24:36.366  6940  6940 F DEBUG   : backtrace:
03-25 03:24:36.366  6940  6940 F DEBUG   :       #00 pc 000000000005a6c8  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+24) (BuildId: 367a43aefd68123bf118851437b2730e)
03-25 03:24:36.366  6940  6940 F DEBUG   :       #01 pc 000000000005d632  /apex/com.android.runtime/lib64/bionic/libc.so (abort+194) (BuildId: 367a43aefd68123bf118851437b2730e)
03-25 03:24:36.366  6940  6940 F DEBUG   :       #02 pc 00000000000071fa  /system/lib64/liblog.so (__android_log_default_aborter+10) (BuildId: 8209228312a47a9d8fd4cc4e859b9b6d)
03-25 03:24:36.366  6940  6940 F DEBUG   :       #03 pc 0000000000007e88  /system/lib64/liblog.so (__android_log_assert+376) (BuildId: 8209228312a47a9d8fd4cc4e859b9b6d)
03-25 03:24:36.366  6940  6940 F DEBUG   :       #04 pc 00000000001bb4da  /system/lib64/libsurfaceflinger.so (android::renderengine::gl::GLESRenderEngine::create(android::renderengine::RenderEngineCreationArgs const&)+5546) (BuildId: 56407a00aa767a604693463f3d6dd2b1)

zhouziyang avatar Mar 25 '24 12:03 zhouziyang

Using software rendering doesn't seem to work either

docker run -itd --rm --privileged     --pull always     -v ~/data11:/data     -p 5555:5555     --name redroid11   
  redroid/redroid:11.0.0-latest androidboot.redroid_gpu_mode=guest

tmp.uqLKbhzokd.tgz.zip

UraraChiya avatar Mar 25 '24 13:03 UraraChiya

Just noted, you are using pretty old redroid image. ("Created": "2021-12-01T15:29:21.582054537Z",)

Try sync the latest image (skip mirror), or specify the exact release (redroid/redroid-11.0.0-231201 currently).

zhouziyang avatar Mar 26 '24 13:03 zhouziyang

Tried the latest version and it worked! ♥ image

UraraChiya avatar Mar 26 '24 15:03 UraraChiya