Android emulator error: std::bad_alloc

android, android-emulator, eclipse

Solution

Sorry my reputation is not high enough, this should be a comment, since it is not a real solution.

I'm having the same issues, but it stops when I disable 'Use Host GPU'. I think it must be an error in of the emulator, since I can also generate the issue when I play around in the emulator (without using my own app).

Problem

I'm using Eclipse Juno and the Android emulator (SDK Tools 21.1) and I'm having this error a lot of times (well, two or three times in 6 hours): ``` [2013-03-22 11:41:19 - Emulator] terminate called after throwing an instance of 'std::bad_alloc' [2013-03-22 11:41:19 - Emulator] what(): std::bad_alloc [2013-03-22 11:41:19 - Emulator] [2013-03-22 11:41:19 - Emulator] This application has requested the Runtime to terminate it in an unusual way. [2013-03-22 11:41:19 - Emulator] Please contact the application's support team for more information. ``` I've googled it but it seems to be an C++ error. I don't know if it's an error of my application or if is an error of Eclipse or the emulator. (The LogCat does not show any error).

Original source