remote-android / redroid-doc

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

Connection failed #394

Open yunzimo opened 1 year ago

yunzimo commented 1 year ago

Describe the bug When running Redroid on Debian, I am able to start the container, but I am unable to establish a stable ADB connection and experience significant lag when attempting to do so for an extended period of time. Initially, when I tried to access the settings interface, it crashed, and since then, I have been unable to reconnect. When I enter the container's command line and attempt to view the logs using the logcat command, I encounter numerous "Connection failed" errors. I'm not sure if this is due to my device's performance or some other reason.

make sure the required kernel modules present

armbian:~:# grep binder /proc/filesystems
nodev   binder

collect debug logs tmp.rMxpOG4B2O.zip

Screenshots K)WKE`VU~3T}VL6$G83%4~N

zhouziyang commented 1 year ago

Only cgroupv2 mounted? A lot of lmkd crashed logs, try to enable CONFIG_PSI in your kernel. Since panfrost KMD is used, try enforce rendering with GPU (docker run ... androidboot.redroid_gpu_mode=host)

zhouziyang commented 1 year ago

And, please collect the full logs (append redroid container name while running debug.sh)

yunzimo commented 1 year ago

Only cgroupv2 mounted? A lot of lmkd crashed logs, try to enable CONFIG_PSI in your kernel. Since panfrost KMD is used, try enforce rendering with GPU (docker run ... androidboot.redroid_gpu_mode=host)

I recompiled the kernel and added the parameters you mentioned. I also included the parameters you provided during startup. It's running much better now. Thank you very much! However, I'm experiencing crashes or the inability to open certain software. I'm pasting a portion of the error here for you to review. I wanted to know if it's due to my machine's configuration or insufficient memory.Since my machine is based on the ARM architecture, Native Bridge Support is not necessary for me, right?

06-25 12:30:19.892  8973  9052 I VideoCapabilities: Unsupported profile 4 for video/mp4v-es
06-25 12:30:19.941  8973  9040 I tv.danmaku.bil: Waiting for a blocking GC ClassLinker
06-25 12:30:19.952  8973  9040 I tv.danmaku.bil: WaitForGcToComplete blocked ClassLinker on ClassLinker for 11.170ms
06-25 12:30:20.029  8973  8989 W System  : A resource failed to call close.
06-25 12:30:20.154  8973  8973 D DelayTaskController: shouldBlock = true
06-25 12:30:20.375   235   923 E TaskPersister: File error accessing recents directory (directory doesn't exist?).
06-25 12:30:20.447    19    19 E lowmemorykiller: /proc/zoneinfo parse error
06-25 12:30:20.447    19    19 E lowmemorykiller: Failed to parse zoneinfo!
06-25 12:30:23.677   235  9018 D SntpClient: request time failed: java.net.SocketTimeoutException: Poll timed out
06-25 12:30:23.677   235  9018 E NtpTimeHelper: requestTime failed
06-25 12:30:26.449  8973  8995 I tv.danmaku.bil: Waiting for a blocking GC ProfileSaver
06-25 12:30:26.583    21    21 I hwservicemanager: getTransport: Cannot find entry android.hardware.memtrack@1.0::IMemtrack/default in either framework or device manifest.
06-25 12:30:26.585  8973  9012 E memtrack: Couldn't load memtrack module
06-25 12:30:26.810  8973  9035 E preassemble: channel xiaomidevices [Ljava.lang.String;@6831dba preassemble isPreassemble=false
06-25 12:30:26.810  8973  9035 E preassemble: channel vivodevices [Ljava.lang.String;@be846b preassemble isPreassemble=false
06-25 12:30:26.811  8973  9035 E preassemble: channel oppodevices [Ljava.lang.String;@3392bc8 preassemble isPreassemble=false
06-25 12:30:26.811  8973  9035 E preassemble: channel huaweidevices [Ljava.lang.String;@f355b86 preassemble isPreassemble=false
06-25 12:30:26.812  8973  9035 E preassemble: channel sanxingdevices [Ljava.lang.String;@b3efc47 preassemble isPreassemble=false
06-25 12:30:26.812  8973  9035 E preassemble: channel rongyaodevices [Ljava.lang.String;@993c74 preassemble isPreassemble=false
06-25 12:30:26.814  8973  9035 E preassemble: channel heishadevices [Ljava.lang.String;@762459d preassemble isPreassemble=false
06-25 12:30:26.814  8973  9035 E preassemble: channel nbydevices [Ljava.lang.String;@6515e3 preassemble isPreassemble=false
06-25 12:30:26.815  8973  9035 E preassemble: channel sonydevices [Ljava.lang.String;@847abe0 preassemble isPreassemble=false
06-25 12:30:26.816  8973  9035 E preassemble: channel lenovodevices [Ljava.lang.String;@a66555e preassemble isPreassemble=false
06-25 12:30:26.817  8973  9035 E preassemble: channel meizudevices [Ljava.lang.String;@492d3f preassemble isPreassemble=false
06-25 12:30:26.818  8973  9035 E preassemble: channel coolpaddevices [Ljava.lang.String;@8aba60c preassemble isPreassemble=false
06-25 12:30:26.819  8973  9035 E preassemble: channel coolpaddevices [Ljava.lang.String;@6f58b55 preassemble isPreassemble=false
06-25 12:30:26.819  8973  9035 E preassemble: channel masterdevices [Ljava.lang.String;@fbe696a preassemble isPreassemble=false
06-25 12:30:26.819  8973  9035 E preassemble: channel zhongxingdevices [Ljava.lang.String;@a2d5e5b preassemble isPreassemble=false
06-25 12:30:26.820  8973  9035 E preassemble: preassemble isHuaweiPhone=false, condition = false, emuiVersion = , harmonyVersion =
06-25 12:30:27.238  8973  9012 I tv.danmaku.bil: Waiting for a blocking GC ClassLinker
06-25 12:30:27.333   235   255 W ActivityTaskManager: Launch timeout has expired, giving up wake lock!
06-25 12:30:27.656    81   111 D hwcomposer: VSYNC event status:1
06-25 12:30:27.753    19    19 E lowmemorykiller: /proc/zoneinfo parse error
06-25 12:30:27.753    19    19 E lowmemorykiller: Failed to parse zoneinfo!
06-25 12:30:27.763    19    19 E lowmemorykiller: /proc/zoneinfo parse error
06-25 12:30:27.763    19    19 E lowmemorykiller: Failed to parse zoneinfo!
06-25 12:30:27.852    81   111 D hwcomposer: VSYNC event status:0
06-25 12:30:27.868    19    19 E lowmemorykiller: /proc/zoneinfo parse error
06-25 12:30:27.868    19    19 E lowmemorykiller: Failed to parse zoneinfo!
06-25 12:30:27.879    19    19 E lowmemorykiller: /proc/zoneinfo parse error
06-25 12:30:27.879    19    19 E lowmemorykiller: Failed to parse zoneinfo!
06-25 12:31:00.004   379   379 D KeyguardClockSwitch: Updating clock: 1231
06-25 12:31:00.013    81   111 D hwcomposer: VSYNC event status:1
06-25 12:31:00.018    81   109 D hwcomposer: hw_composer sent 18 syncs in 61s
06-25 12:31:00.185    81   111 D hwcomposer: VSYNC event status:0

tmp.RyuK2XC8LK.zip

zhouziyang commented 1 year ago

Crash on com.coolapk.market?

I install this app in my environment, and it worked as expected.

## Installed in my environment
    versionCode=2306161 minSdk=21 targetSdk=30
    versionName=13.2.1

## installed in yours
    versionCode=2304201 minSdk=21 targetSdk=30
    versionName=13.1.3
yunzimo commented 1 year ago

是的,但是我却无法打开。我想你是否可以提供你的版本,让我测试一下