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):
我正在使用Eclipse Juno和Android模拟器(SDK工具21.1),我经常出现这种错误(嗯,6小时内会出现两三次):
[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).
我在谷歌上搜索过,但似乎是c++错误。我不知道这是我的应用程序的错误,还是Eclipse或模拟器的错误。(LogCat没有显示任何错误)。
3 个解决方案
#1
13
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).
我也有同样的问题,但当我禁用“使用主机GPU”时,它就停止了。我想一定是模拟器出错了,因为我在模拟器中玩的时候也会产生问题(不用我自己的app)。
#2
0
As stated by RobinDeCroon, I only have this issue when using "Use Host GPU". From Related, it's possibly a bug/problem with older Intel graphics cards
正如RobinDeCroon所说,我只在使用“使用主机GPU”时遇到这个问题。从相关的角度来看,这可能是旧的英特尔显卡的问题
#3
0
I Had the exactly same error message while using Android Studio and Fixed it by changing the Boot option from Quick Boot to Cold Boot. In Android Studio you can go into Tools > Android > AVD Manager > Edit (The Pencil) > Show Advanced Settings > And changed from Quick Boot to Cold Boot.
在使用Android Studio时,我得到了完全相同的错误信息,并通过改变启动选项从快速引导到冷启动来修复。在Android Studio中,你可以进入工具> Android > AVD Manager > Edit(铅笔)>显示高级设置>,并从快速引导改为冷启动。
I don't know how to do that only with only the emulator, but this may be a clue of how to solve this.
我不知道如何只使用模拟器,但这可能是解决这个问题的线索。
#1
13
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).
我也有同样的问题,但当我禁用“使用主机GPU”时,它就停止了。我想一定是模拟器出错了,因为我在模拟器中玩的时候也会产生问题(不用我自己的app)。
#2
0
As stated by RobinDeCroon, I only have this issue when using "Use Host GPU". From Related, it's possibly a bug/problem with older Intel graphics cards
正如RobinDeCroon所说,我只在使用“使用主机GPU”时遇到这个问题。从相关的角度来看,这可能是旧的英特尔显卡的问题
#3
0
I Had the exactly same error message while using Android Studio and Fixed it by changing the Boot option from Quick Boot to Cold Boot. In Android Studio you can go into Tools > Android > AVD Manager > Edit (The Pencil) > Show Advanced Settings > And changed from Quick Boot to Cold Boot.
在使用Android Studio时,我得到了完全相同的错误信息,并通过改变启动选项从快速引导到冷启动来修复。在Android Studio中,你可以进入工具> Android > AVD Manager > Edit(铅笔)>显示高级设置>,并从快速引导改为冷启动。
I don't know how to do that only with only the emulator, but this may be a clue of how to solve this.
我不知道如何只使用模拟器,但这可能是解决这个问题的线索。