Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lyg2024 opened this issue Aug 26, 2024 · 8 comments
Labels

Comments

@lyg2024
Copy link

lyg2024 commented Aug 26, 2024

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 lyg2024 added the bug label Aug 26, 2024
@lyg2024
Copy link
Author

lyg2024 commented Aug 26, 2024

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
Copy link
Author

lyg2024 commented Aug 26, 2024

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

@slavawar
Copy link

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

@lyg2024
Copy link
Author

lyg2024 commented Aug 28, 2024

image

@lyg2024
Copy link
Author

lyg2024 commented Aug 28, 2024

@slavawar is READY

@lyg2024
Copy link
Author

lyg2024 commented Aug 28, 2024

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
Copy link
Author

lyg2024 commented Aug 28, 2024

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

@mm8m6m7m
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants