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

Emulators segfault in headless mode due to misconfigured hardware acceleration #53

Open
zner0L opened this issue Oct 21, 2024 · 1 comment
Assignees

Comments

@zner0L
Copy link
Contributor

zner0L commented Oct 21, 2024

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.

@zner0L zner0L self-assigned this Oct 21, 2024
@zner0L
Copy link
Contributor Author

zner0L commented Oct 21, 2024

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.

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

No branches or pull requests

1 participant