I was trying to start emulators in headless mode (using the -no-window) option, but they always segfaulted before they were booted up completely. Without -no-window they booted without problems.
We could provide a workaround by providing users with the ability to set this option. The problem seems very hard to detect, so fixing it for them does not seem like a viable option.
I was trying to start emulators in headless mode (using the
-no-window
) option, but they always segfaulted before they were booted up completely. Without-no-window
they booted without problems.After some experimentation, I found that either disabling hardware acceleration using
-no-accel
(see https://developer.android.com/studio/run/emulator-commandline#common) or setting the GPU acceleration to-gpu host
(see https://developer.android.com/studio/run/emulator-acceleration#command-gpu) resolved the problem. I am suspecting this is an issue with mesa, since I am running Fedora 40.Hardware-wise, I have an AMD Ryzen 9 and an AMD Raedon RX 6600.