Android emulator crashing with error?

Basically I am using Ubuntu with Android Studio, I have a very simple application that I am trying to run on an emulator.

Now the app does launch inside the emulator just fine, but the problem occurs when the on-screen keyboard appears. After it has appeared and you press a key, the emulator will exit with an 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 tried to use the keyboard outside of the application and the problem is still there, so I think it's safe to assume that it is not the application calling it.

Other things I've tried:

  • noaudio (emulator started with no sound, as I found several posts suggesting it might cause freezing. This of course didn't help)
  • Unticked 'use host GPU' (This actually caused the emulator to black screen)

Does anyone know of any work?

+1


source to share


1 answer


This issue has been fixed in the Project Open Source Project (AOSP) repository , but has not been ported to 4.0.3, but you will notice this issue when using emulators built using API 15.

The workaround is to disable "Use Main GPU"

if you are using android studio then this parameter is located here:



Turn off host GPU option in AVD settings for device

Of course this really slows down the emulator, but it's better to have a slow emulator than one that is unusable because it keeps crashing. Last update as of December 11, 2014 :

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

+2


source







All Articles