EGL_emulation failed to establish connection to host – android

I am trying to run a simple OpenGL program in Android. I am running this in an Android 4.1 emulator. I switched on its GPU emulation and it worked fine yesterday. When I ran that today, initially it was hanging saying, OpenGL taking time to render - Wait or Close dialog box. After few runs again it was crashing saying

E/EGL_emulation(2637): Failed to establish connection with the host

followed by

  • Does changing the background also change the padding of a LinearLayout?
  • Saving nested foreign objects with ORMLite on Android
  • Allow unstable Android Gradle builds on Jenkins
  • How to create a social network app on Android
  • Android: resume app from previous position
  • most lightweight ViewGroup for containers
  • 11-30 11:48:10.787: E/AndroidRuntime(2637): FATAL EXCEPTION: main
    11-30 11:48:10.787: E/AndroidRuntime(2637): java.lang.IllegalArgumentException: eglChooseConfig failed EGL_NOT_INITIALIZED
    11-30 11:48:10.787: E/AndroidRuntime(2637):     at android.view.HardwareRenderer$GlRenderer.chooseEglConfig(HardwareRenderer.java:852)
    11-30 11:48:10.787: E/AndroidRuntime(2637):     at android.view.HardwareRenderer$GlRenderer.initializeEgl(HardwareRenderer.java:804)
    11-30 11:48:10.787: E/AndroidRuntime(2637):     at android.view.HardwareRenderer$GlRenderer.initialize(HardwareRenderer.java:747)
    11-30 11:48:10.787: E/AndroidRuntime(2637):     at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1505)
    11-30 11:48:10.787: E/AndroidRuntime(2637):     at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:998)
    11-30 11:48:10.787: E/AndroidRuntime(2637):     at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4212)
    

    I guess the emulator is not able to take control of the GPU of the system, so how do I avoid this error? How do I rectify this problem?

    Thanks in advance. 🙂

    Related posts:

    group similar rows in listview based on their content
    AbstractMethodError with Firebase Cloud Messaging
    Getting a OAuth2 authorization code that can be shared with a server
    Android app crashes with SIGABRT Signal 6 only while Eclipse debugging
    ADB, Wifi and Eclipse: how I can configure?
    How to draw a circle inside a circle using Android xml shapes?
  • SSL Broken Pipe
  • “This app won't run unless you update google play services” alert
  • Gradle: How to customize Android Manifest permissions?
  • Vibrate when hold down button
  • android usb requestWait not return
  • Multiline EditText with Done SoftInput Action Label on 2.3
  • 2 Solutions collect form web for “EGL_emulation failed to establish connection to host – android”

    This happens to me when my computer came out standby. Restart your virtual device.

    I was having the same problem in my Genymotion emulator while running a webview based application,I have restarted the emulator and it worked fine

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.