budtmo / docker-android

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

[🐛 Bug ]: "Segmentation fault (core dumped)" when run emulator -avd *** #411

Open AinzLimuru opened 4 months ago

AinzLimuru commented 4 months ago

Operating System

Ubuntu 20.04

Docker Image

budtmo/docker-android:emulator_11.0 budtmo/docker-android:emulator_13.0

Expected behaviour

start the emulator succefully

Actual behaviour

I can't start the emulator. I try docker exec -it ** /bin/bash and emulator -avd ***. After that I get the Segmentation fault (core dumped). I search the issus and try -gpu off and other options. But I can't solve the problem. I can't find any useful log in the log file. kvm-ok is successful.

Logs

My CPU is Intel Xeon E5-2696 v3 * 2. Where can I get the log about why the emulator return the Segmentation fault (core dumped).

nahidErgun commented 3 months ago

I got the same error too after kubernetes deployment for the same image. When i tried to run emulator command, i got this error then emulator closed with Segmentation fault (core dumped) error.

[

Screenshot 2024-03-13 at 08 56 49

](url)

AinzLimuru commented 3 months ago

I got the same error too after kubernetes deployment for the same image. When i tried to run emulator command, i got this error then emulator closed with Segmentation fault (core dumped) error.

Screenshot 2024-03-13 at 08 56 49

I just see the green "docker android" background. I don't see the phone、keyboard or the GPU Driver issue in the webpage.

nahidErgun commented 3 months ago

I tried to use these parameters on my deployment file then emulator launched successfully, can you try to use these arguments for your docker run command? Maybe it helps you too.

AinzLimuru commented 3 months ago

I tried to use these parameters on my deployment file then emulator launched successfully, can you tried to use this arguments for your docker run command? Maybe it helps you too.

  • name: EMULATOR_DATA_PARTITION value: 4096m
  • name: EMULATOR_ADDITIONAL_ARGS value: '-noaudio -gpu host'

Thankyou. But I failed to launch the emulator. If any body know how to get more information about the "Segmentation fault (core dumped)", please tell me, thank you very much.

nahidErgun commented 3 months ago

Sorry for that, you are welcome :) I did not use WEB_LOG_PORT and WEB_LOG but maybe it helps you to get more logs like in this url

https://github.com/budtmo/docker-android/blob/master/documentations/CUSTOM_CONFIGURATIONS.md#log-sharing