Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Issue 2991863002: ObjC RTCEAGLVideoVideo: Check GL context is non-nil in constructor (Closed)

Created:
3 years, 4 months ago by magjed_webrtc
Modified:
3 years, 4 months ago
Reviewers:
tkchin_webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

ObjC RTCEAGLVideoVideo: Check GL context is non-nil in constructor RTCEAGLVideoVideo ensureGLContext has been observed to fail because the GL context is nil. This CL checks the GL context is non-nil in the ctor instead. BUG=b/62865840 Review-Url: https://codereview.webrtc.org/2991863002 Cr-Commit-Position: refs/heads/master@{#19189} Committed: https://chromium.googlesource.com/external/webrtc/+/1c12b818b3b1ca12689d7fcbb6f629dfc80bc8d0

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add log #

Patch Set 3 : RTCLogError #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -3 lines) Patch
M webrtc/sdk/objc/Framework/Classes/UI/RTCEAGLVideoView.m View 1 2 3 chunks +12 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
magjed_webrtc
Zeke - please take a look.
3 years, 4 months ago (2017-07-27 13:37:04 UTC) #7
tkchin_webrtc
yeah I don't know what more we can do. Don't know if a retry would ...
3 years, 4 months ago (2017-07-27 20:42:13 UTC) #8
magjed_webrtc
On 2017/07/27 20:42:13, tkchin_webrtc wrote: > yeah I don't know what more we can do. ...
3 years, 4 months ago (2017-07-31 15:23:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2991863002/20001
3 years, 4 months ago (2017-07-31 15:24:34 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2991863002/40001
3 years, 4 months ago (2017-07-31 15:25:35 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/external/webrtc/+/1c12b818b3b1ca12689d7fcbb6f629dfc80bc8d0
3 years, 4 months ago (2017-07-31 16:11:53 UTC) #19
tkchin_webrtc
3 years, 4 months ago (2017-07-31 17:40:14 UTC) #20
Message was sent while issue was closed.
On 2017/07/31 15:23:23, magjed_webrtc wrote:
> On 2017/07/27 20:42:13, tkchin_webrtc wrote:
> > yeah I don't know what more we can do. Don't know if a retry would help
> either.
> > I wonder if this is happening because we are trying to create an EAGLContext
> > while the app is backgrounded. Would you mind trying that to see if that's
the
> > root cause of the crash?
> 
> How do I easily try that? I'm landing this CL so we can verify that the
> EAGLContext creation was indeed the problem (I can't see what else could go
> wrong from looking at the code).
> 
>
https://codereview.webrtc.org/2991863002/diff/1/webrtc/sdk/objc/Framework/Cla...
> File webrtc/sdk/objc/Framework/Classes/UI/RTCEAGLVideoView.m (right):
> 
>
https://codereview.webrtc.org/2991863002/diff/1/webrtc/sdk/objc/Framework/Cla...
> webrtc/sdk/objc/Framework/Classes/UI/RTCEAGLVideoView.m:148: return NO;
> On 2017/07/27 20:42:12, tkchin_webrtc wrote:
> > nit: add an error log
> 
> Done.

Can try adding a hook to AppRTCMobile in the app backgrounded handler to create
the view and add it somewhere to the hierarchy in non-zero size and see if the
context is nil.
If it was indeed the problem, now we will instead have a blank view instead of a
crash (due to nil return), so better, but still not great.

Powered by Google App Engine
This is Rietveld 408576698