budtmo / docker-android

Android in docker solution with noVNC supported and video recording
Other
8.81k stars 1.19k forks source link

[🐛 Bug ]: Android emulator is crashing often, any idea what could be the reason or how to debug? #366

Open lhimo opened 1 year ago

lhimo commented 1 year ago

Operating System

Ubuntu 22.04 LTS (Bare Metal cloud server)

Docker Image

budtmo/docker-android:emulator_13.0

Expected behaviour

Emulator can run several hours without crashing

Actual behaviour

Quite often, our Appium test suite is interrupted as the emulator crashes

Logs

No response

lhimo commented 1 year ago

Maybe it could be good to add a device.stderr.log file besides device.stdout.log

lhimo commented 12 months ago

Couldn't find a reason for the crash but using Appium avd capability we could get it to restart. Nonetheless, we had to add -read-only flag, as we were getting this error upon restart:

ERROR   | Running multiple emulators with the same AVD 
ERROR   | is an experimental feature.
ERROR   | Please use -read-only flag to enable this feature.

Probably it's due to some leftover files from the crashed emulator.