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: https://stackoverflow.com/questions/45392309/failed-to-create-egl-context

In addition, the issue was previously reported to the WebRTC developers, and at this time this issue is not going to be fixed https://bugs.chromium.org/p/webrtc/issues/detail?id=5933

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.