docker-android icon indicating copy to clipboard operation
docker-android copied to clipboard

[🐛 Bug ]: How to check if the Android emulator disappears on VNC after running normally for a period of time

Open lyg2024 opened this issue 1 year ago • 8 comments

Operating System

Linux version 6.8.0-41-generic (buildd@lcy02-amd64-100) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #41-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 2 20:41:06 UTC 2024

Docker Image

budtmo/docker-android:emulator_11.0

Expected behaviour

Simulator run all the time

Actual behaviour

image

Logs

No response

lyg2024 avatar Aug 26 '24 08:08 lyg2024

version: '3.7'

x-android-container: &default-android-container build: context: . privileged: true environment: - EMULATOR_DEVICE=Samsung Galaxy S10 - EMULATOR_ADDITIONAL_ARGS=-memory 3500 - WEB_VNC=true - WEB_LOG=true - WEB_LOG_PORT=9000 - ENV_LOG_PATH=/var/log/ devices: - "/dev/kvm:/dev/kvm" restart: always

services: android-container-1: <<: *default-android-container container_name: android-container-1-FFF-10-10-8-116 mem_limit: 4096M # 设置内存限制为3072MB volumes: - data-1:/home/androidusr - root-1:/root ports: - "6080:6080" - "7000:9000" - "5555:5555" android-container-2: <<: *default-android-container container_name: android-container-2-FFF-10-10-8-116 mem_limit: 4096M # 设置内存限制为3072MB volumes: - data-2:/home/androidusr - root-2:/root ports: - "6081:6080" - "7001:9000" - "5556:5555" android-container-3: <<: *default-android-container container_name: android-container-3-FFF-10-10-8-116 mem_limit: 4096M # 设置内存限制为3072MB volumes: - data-3:/home/androidusr - root-3:/root ports: - "6082:6080" - "7002:9000" - "5557:5555" android-container-4: <<: *default-android-container container_name: android-container-4-FFF-10-10-8-116 mem_limit: 4096M # 设置内存限制为3072MB volumes: - data-4:/home/androidusr - root-4:/root ports: - "6083:6080" - "7003:9000" - "5558:5555" android-container-5: <<: *default-android-container container_name: android-container-5-FFF-10-10-8-116 mem_limit: 4096M # 设置内存限制为3072MB volumes: - data-5:/home/androidusr - root-5:/root ports: - "6084:6080" - "7004:9000" - "5559:5555" android-container-6: <<: *default-android-container container_name: android-container-6-FFF-10-10-8-116 mem_limit: 4096M # 设置内存限制为3072MB volumes: - data-6:/home/androidusr - root-6:/root ports: - "6085:6080" - "7005:9000" - "5560:5555"

volumes: data-1: root-1: data-2: root-2: data-3: root-3: data-4: root-4: data-5: root-5: data-6: root-6:

lyg2024 avatar Aug 26 '24 08:08 lyg2024

Server information: The server has 32GB of memory and a CPU with Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz.

lyg2024 avatar Aug 26 '24 08:08 lyg2024

try sudo docker exec -it android-container cat device_status response ok - 'READY'

slavawar avatar Aug 27 '24 08:08 slavawar

image

lyg2024 avatar Aug 28 '24 09:08 lyg2024

@slavawar is READY

lyg2024 avatar Aug 28 '24 09:08 lyg2024

2024-08-28T17:34:21.104198+08:00 android-01 kernel: oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=docker-c2f1c229d80c3ea65401aa65ed88678c51c33905d1f69c895dd2efc6358b84d6.scope,mems_allowed=0,oom_memcg=/system.slice/docker-c2f1c229d80c3ea65401aa65ed88678c51c33905d1f69c895dd2efc6358b84d6.scope,task_memcg=/system.slice/docker-c2f1c229d80c3ea65401aa65ed88678c51c33905d1f69c895dd2efc6358b84d6.scope,task=qemu-system-x86,pid=1316938,uid=1300 2024-08-28T17:34:21.104649+08:00 android-01 kernel: Memory cgroup out of memory: Killed process 1316938 (qemu-system-x86) total-vm:7567352kB, anon-rss:4110020kB, file-rss:90752kB, shmem-rss:3072kB, UID:1300 pgtables:11088kB oom_score_adj:0 2024-08-28T17:34:21.114302+08:00 android-01 systemd[1]: docker-c2f1c229d80c3ea65401aa65ed88678c51c33905d1f69c895dd2efc6358b84d6.scope: A process of this unit has been killed by the OOM killer.

lyg2024 avatar Aug 28 '24 09:08 lyg2024

Oom, how do I look at the log, my app is very simple,I'm running Python Automation Test

lyg2024 avatar Aug 28 '24 09:08 lyg2024

me too. docker-android unstable. This is a bug that must be fixed

mm8m6m7m avatar Nov 26 '24 03:11 mm8m6m7m