question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

get "Failed to create EGL context: 0x3003" on android

See original GitHub issue

Hi,

import { RTCPeerConnection, RTCMediaStream, RTCIceCandidate, RTCSessionDescription, RTCView, MediaStreamTrack, getUserMedia, } from 'react-native-webrtc'; I added above code to App.js and double pressed R in andorid simulator. Then the error occurred:

Failed to create EGL context: 0x3003 createEglContext EglBase14.java:260 <init> EglBase14.java:58 create EglBase.java:86 create EglBase.java:97 setVideoHwAccelerationOptions PeerConnectionFactory.java:182 <init> WebRTCModule.java:68 createNativeModules WebRTCModulePackage.java:23 processPackage NativeModuleRegistryBuilder.java:106 processPackage ReactInstanceManager.java:1191 processPackages ReactInstanceManager.java:1161 createReactContext ReactInstanceManager.java:1094 access$800 ReactInstanceManager.java:112 run ReactInstanceManager.java:922 run Thread.java:761

  • React Native version: 0.50.4
  • Plugin version: 1.58.3
  • OS: Android
  • OS version: 7.1.0

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
saghulcommented, Dec 19, 2017

This is known. There is a global EGL context, which we’ll leak if you reload the app bundle in debug mode. This does not happen in release mode, since this context will be alive for the lifetime of the application.

4reactions
lyubomircommented, Dec 4, 2017

0x3003 is EGL_BAD_ALLOC.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java.lang.RuntimeException: Failed to create EGL context
So , as I get crashes while trying to create multiple Egl contexts, I used to check how many EGL contexts I can...
Read more >
Failed to create EGL context - java - Stack Overflow
The problem is related with the number of contexts created. Creating egl context several times leads to this crash on EglBase.create() ...
Read more >
Why do I get a 'Failed to create EGL context' error message on ...
Usually the issue is caused by exceeding the limit of contexts created. Creating an EGL context several times leads to this crash on...
Read more >
Android踩坑Failed to create EGL context:0x3003
The problem is related with the number of contexts created. Creating egl context several times leads to this crash on EglBase.create() method ...
Read more >
[Solved]-Failed to create EGL context-webrtc - appsloveworld
0x3003 is EGL_BAD_ALLOC . This is known. There is a global EGL context, which we'll leak if you reload the app bundle in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found