Android emulator crash linux with error?

我只是一个虾纸丫 提交于 2019-12-11 06:24:50

问题


Basically, I've been using Ubuntu with Android Studio, I have a very simple App which I am attempting to run on an emulator.

Now, the app actually starts inside the emulator just fine but the issue arises when the on-screen keyboard shows up. Once it has shown up, and you click a key, the emulator crashes with this error:

emulator64-arm: ../../sdk/emulator/opengl//host/libs/Translator/include/GLcommon/GLutils.h:48: unsigned int SafeUIntFromPointer(const void*): Assertion `(uintptr_t)(ptr) == (unsigned int)(uintptr_t)(ptr)' failed.

I have tried engaging the keyboard outside the App, and the issue is still there so I think it is safe to assume it isn't the app that is causing it.

Other things I've tried are:

  • noaudio (Started the emulator without audio, as I found a few posts suggesting it can cause freezing. This of course didn't help)
  • Unticked 'use host GPU' (This actually caused the emulator to black-screen)

Anyone aware of any work-around?


回答1:


This issue was fixed in the Android Open Source Project (AOSP) repo but hasn't been ported to 4.0.3 yet so you will notice this issue when using emulators built with API 15.

The workaround is to turn off "Use Host GPU"

if you're using android studio, then this option is here:

Of course, this really slows down the emulator but it's better to have a slow emulator than one that is unusable because it constantly crashes. As of Dec 11, 2014, the latest update is:

we are going to release updates for older system image, stay tuned...



来源:https://stackoverflow.com/questions/26912055/android-emulator-crash-linux-with-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!