tweaselORG / cyanoacrylate

Toolkit for large-scale automated traffic analysis of mobile apps on Android and iOS.
MIT License
5 stars 1 forks source link

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

Open zner0L opened 1 month ago

zner0L commented 1 month ago

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 commented 1 month ago

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.