Start a conversation

Why do I get a ‘Failed to create EGL context’ error message on the Android SDK?

Usually the issue is caused by exceeding the limit of contexts created. Creating an EGL context several times leads to this crash on the EglBase.create() method when the limit point is reached.

Make sure that there are more than 2-3 created eglContexts. The limit of created eglContexts depends on a type of device. According to WebRTC's documentation, calling .release() should handle that issue in some cases.

Here is the link to Stackoverflow for reference:

In addition, the issue was previously reported to the WebRTC developers, and at this time this issue is not going to be fixed

The issue usually (it depends from the gathered logs) happens in org.webrtc.EglBase14.createEglContext which is called from org.webrtc.EglRenderer.init which is called by org.webrtc.SurfaceViewRenderer.init and finally is called by your application and QuickBlox SDK (org.webrtc.SurfaceViewRenderer).

Feel free to check our official documentation for more information that will help you to integrate QuickBlox services into your applications / projects or contact our Support team by submitting a ticket if you have any other questions.

Choose files or drag and drop files
Was this article helpful?
  1. Maksym Pidhorbunskyi

  2. Posted
  3. Updated