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

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

Open AinzRimuru opened this issue 1 year ago • 5 comments

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).

AinzRimuru avatar Mar 05 '24 02:03 AinzRimuru

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

nahidesngr avatar Mar 13 '24 05:03 nahidesngr

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.

AinzRimuru avatar Mar 13 '24 06:03 AinzRimuru

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.

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

nahidesngr avatar Mar 15 '24 07:03 nahidesngr

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.

AinzRimuru avatar Mar 15 '24 07:03 AinzRimuru

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

nahidesngr avatar Mar 15 '24 07:03 nahidesngr