AppRTCMobile crash with error: Failed to create EGL context: 0x3009

842 views
Skip to first unread message

Rex Lin

unread,
Aug 4, 2017, 2:35:35 AM8/4/17
to discuss-webrtc
I test AppRTCMobile run at Huawei P6, When I start the call, it will crash 100%. 

Here is the crash log:
07-31 16:57:06.600: E/AndroidRuntime(27405): Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Failed to create EGL context: 0x3009
07-31 16:57:06.600: E/AndroidRuntime(27405):    at org.webrtc.EglBase14.createEglContext(EglBase14.java:259)
07-31 16:57:06.600: E/AndroidRuntime(27405):    at org.webrtc.EglBase14.<init>(EglBase14.java:58)
07-31 16:57:06.600: E/AndroidRuntime(27405):    at org.webrtc.EglBase.create(EglBase.java:88)
07-31 16:57:06.600: E/AndroidRuntime(27405):    at org.webrtc.EglRenderer$3.run(EglRenderer.java:192)
07-31 16:57:06.600: E/AndroidRuntime(27405):    at org.webrtc.ThreadUtils$5.call(ThreadUtils.java:207)
07-31 16:57:06.600: E/AndroidRuntime(27405):    at org.webrtc.ThreadUtils$5.call(ThreadUtils.java:1)
07-31 16:57:06.600: E/AndroidRuntime(27405):    at org.webrtc.ThreadUtils$4.run(ThreadUtils.java:181)
07-31 16:57:06.600: E/AndroidRuntime(27405):    at android.os.Handler.handleCallback(Handler.java:733)
07-31 16:57:06.600: E/AndroidRuntime(27405):    at android.os.Handler.dispatchMessage(Handler.java:95)
07-31 16:57:06.600: E/AndroidRuntime(27405):    at android.os.Looper.loop(Looper.java:136)
07-31 16:57:06.600: E/AndroidRuntime(27405):    at android.os.HandlerThread.run(HandlerThread.java:61)
07-31 16:57:06.600: E/AndroidRuntime(27405):    at org.webrtc.ThreadUtils.invokeAtFrontUninterruptibly(ThreadUtils.java:192)
07-31 16:57:06.600: E/AndroidRuntime(27405):    at org.webrtc.ThreadUtils.invokeAtFrontUninterruptibly(ThreadUtils.java:204)
07-31 16:57:06.600: E/AndroidRuntime(27405):    at org.webrtc.EglRenderer.init(EglRenderer.java:181)
07-31 16:57:06.600: E/AndroidRuntime(27405):    at org.webrtc.SurfaceViewRenderer.init(SurfaceViewRenderer.java:98)
07-31 16:57:06.600: E/AndroidRuntime(27405):    at org.webrtc.SurfaceViewRenderer.init(SurfaceViewRenderer.java:79)

After view the appear.in android client code, I try to modify the code. It don't crash, but pipRenderer  go don't display local camea.

CallActivity.java:233
//pipRenderer.init(rootEglBase.getEglBaseContext(), null);
pipRenderer
.init(null, null);

//fullscreenRenderer.init(rootEglBase.getEglBaseContext(), null);
fullscreenRenderer.init(null, null);

PeerConnectionClient.java:623
//factory.setVideoHwAccelerationOptions(renderEGLContext, renderEGLContext);

Other devices don't occur this problem. I think may is the P6 HW problem.
Any one can give me some help about this crash.

More device info about Huawei P6 see here

thx.

mbon...@webrtc.org

unread,
Aug 4, 2017, 3:27:01 AM8/4/17
to discuss-webrtc, Sami Kalliomäki
+sakal who has some context on this.

Christoffer Jansson

unread,
Aug 4, 2017, 3:32:35 AM8/4/17
to discuss-webrtc, Sami Kalliomäki
Hi,

Could you please file a bug at bugs.webrtc.org? Thanks!

/Chris

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/0aa0d3b7-483b-460a-9bcf-64d03a37d117%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
/Chris

Rex Lin

unread,
Aug 4, 2017, 5:02:57 AM8/4/17
to discuss-webrtc, sa...@webrtc.org
 Issue 8071

在 2017年8月4日星期五 UTC+8下午3:32:35,Christoffer Jansson写道:

Christoffer Jansson

unread,
Aug 4, 2017, 5:12:28 AM8/4/17
to discuss-webrtc, sa...@webrtc.org
Thank you! Someone in the mobile team will take a look!

/Chris


For more options, visit https://groups.google.com/d/optout.
--
/Chris
Reply all
Reply to author
Forward
0 new messages