black screen in Android emulator in Ubuntu VM in Windows 7

783 Views Asked by At

I built AOSP 5.1.0_r5 (LMY47O) with no modifications done to the source code. The build process ends with "success" and I get bunch of *.img files in out/target/product/deb. Sadly, executing emulator -verbose produces the generic emulator window with an empty screen and following output in the console. I see nothing that would explain the black screen. (I am looking at the black screen for tens of minutes, hence I doubt it is "merely very slow.")

My environment is Ubuntu 16.04 running in VirtualBox under Windows 7, no IDE involved.

1

There are 1 best solutions below

5
On BEST ANSWER

Just an assumption. You have a line in your output: Failed to create Context 0x3005 Could not initialize emulated framebufferemulator: Can't start OpenGLES renderer? It seems that this is the cause of the problem. Could you please install the following libraries sudo apt-get install mesa-utils-extra and run your emualator once again?

P.S. What is the target deb? Try to build the AOSP using a recommended target, e.g., aosp_arm-eng.