64-x86 Android emulator freezes at boot time

I am using 64 bit Debian, and when I try to run this:

$ emulator64-x86 -verbose -avd cocos2dx-emulator -gpu on -qemu -m 2047 -enable-kvm 

The process just hangs, and the only way to stop it is to use kill -9 , these are the last output lines that it prints:

 [...] emulator: trying to find: /home/victor/lab/androidr16/android-sdk-linux/tools/bios.bin emulator: trying to find: /home/victor/lab/androidr16/android-sdk-linux/tools/lib/pc-bios/bios.bin emulator: trying to find: /home/victor/lab/androidr16/android-sdk-linux/tools/vgabios-cirrus.bin emulator: trying to find: /home/victor/lab/androidr16/android-sdk-linux/tools/lib/pc-bios/vgabios-cirrus.bin 

If I use x86 emulator, it works fine:

 $ emulator-x86 -verbose -avd cocos2dx-emulator -gpu on -qemu -m 2047 -enable-kvm [...] emulator: trying to find: /home/victor/lab/androidr16/android-sdk-linux/tools/bios.bin emulator: trying to find: /home/victor/lab/androidr16/android-sdk-linux/tools/lib/pc-bios/bios.bin emulator: trying to find: /home/victor/lab/androidr16/android-sdk-linux/tools/vgabios-cirrus.bin emulator: trying to find: /home/victor/lab/androidr16/android-sdk-linux/tools/lib/pc-bios/vgabios-cirrus.bin emulator: autoconfig: -scale 1 emulator: Could not open file: (null)/system/build.prop: No such file or directory emulator: sent '0012host:emulator:5555' to ADB server [...] 

I have no information about what is happening, and I cannot find any possible related errors in the system logs.

Any ideas?

+7
android linux android-emulator
source share
1 answer

A similar error was filed in AOSP (see below), although most of us experience the same result with the x86 emulator.

As a workaround, try uninstalling KVM and see if the emulator is working. Obviously, it will be slower because it does not use your processor’s VT extensions, but it can narrow down the source of the problem.

Problem 33817: emulator-x86 + kvm starts an endless loop in qemu-setup.c https://code.google.com/p/android/issues/detail?id=33817

Then again, you will need to run 32-bit emulators, and that might not be the problem.

Edit: The problem is apparently caused by clone () in the pulseaudio code called from external /qemu/audio/paaudio.c. A patch that adds BEGIN_NOSIGALRM protection is available on the Issue 33817 thread, message 16: https://code.google.com/p/android/issues/detail?id=33817#c16

+7
source share

All Articles