Closed
Bug 1228687
Opened 9 years ago
Closed 9 years ago
"Assertion failure: gl->IsCurrent()"
Categories
(Core :: Graphics: CanvasWebGL, defect)
Core
Graphics: CanvasWebGL
Tracking
()
RESOLVED
FIXED
mozilla48
People
(Reporter: jruderman, Assigned: milan, NeedInfo)
References
Details
(Keywords: assertion, regression, testcase, Whiteboard: gfx-noted)
Attachments
(3 files)
412 bytes,
text/html
|
Details | |
11.86 KB,
text/plain
|
Details | |
58 bytes,
text/x-review-board-request
|
jgilbert
:
review+
ritu
:
approval-mozilla-aurora+
lizzard
:
approval-mozilla-beta+
|
Details |
This assertion is part of code added at:
https://hg.mozilla.org/mozilla-central/diff/7d1c223f397c/dom/canvas/WebGLContextDraw.cpp#l1.502
changeset: https://hg.mozilla.org/mozilla-central/rev/7d1c223f397c
user: Jeff Gilbert
date: Tue Nov 24 20:15:29 2015 -0800
summary: Bug 1221822 - Finish the WebGL texture refactor. r=kamidphish,mattwoodrow,bz
Reporter | ||
Comment 1•9 years ago
|
||
Updated•9 years ago
|
Flags: needinfo?(jgilbert)
Whiteboard: gfx-noted
Assignee | ||
Comment 2•9 years ago
|
||
DrawElements_check is responsible for making the context current, but in two places in WebGLContextDraw.cpp, we create a ScopedResolveTexturesForDraw before we make that call to DrawElements_check. On the other hand, ScopedResolveTexturesForDraw creates and binds a FakeBlackTexture, which wants the context to be current.
Assignee | ||
Comment 3•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/38221/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/38221/
Attachment #8726744 -
Flags: review?(jmuizelaar)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → milan
Comment 4•9 years ago
|
||
https://reviewboard.mozilla.org/r/38221/#review34779
::: dom/canvas/WebGLContextDraw.cpp:52
(Diff revision 1)
> + mWebGL->MakeContextCurrent();
Don't MakeCurrent here. MakeCurrent should be in the calling code.
This should just assert that it's current.
::: dom/canvas/WebGLContextDraw.cpp:224
(Diff revision 1)
> - MakeContextCurrent();
> + // Right now, the creation of ScopedResolveTexturesForDraw make the context current
Don't hide the MakeCurrent like this.
Updated•9 years ago
|
Attachment #8726744 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 5•9 years ago
|
||
Comment on attachment 8726744 [details]
MozReview Request: Bug 1228687: ScopedResolveTexturesForDraw needs the context to be current, so make those calls earlier. r?jrmuizel
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38221/diff/1-2/
Attachment #8726744 -
Attachment description: MozReview Request: Bug 1228687: ScopedResolveTexturesForDraw needs the context to be current. r?jrmuizel → MozReview Request: Bug 1228687: ScopedResolveTexturesForDraw needs the context to be current, so make those calls earlier. r?jrmuizel
Attachment #8726744 -
Flags: review?(jmuizelaar)
Comment 6•9 years ago
|
||
tracking, figuring we may want to uplift this after it lands.
status-firefox46:
--- → affected
status-firefox47:
--- → affected
status-firefox48:
--- → affected
tracking-firefox46:
--- → +
tracking-firefox47:
--- → +
tracking-firefox48:
--- → +
Comment 7•9 years ago
|
||
Comment on attachment 8726744 [details]
MozReview Request: Bug 1228687: ScopedResolveTexturesForDraw needs the context to be current, so make those calls earlier. r?jrmuizel
https://reviewboard.mozilla.org/r/38221/#review35435
This LGTM, unless jrmuizel is on the hook for a particular reason.
Attachment #8726744 -
Flags: review+
Updated•9 years ago
|
Flags: needinfo?(jgilbert)
Assignee | ||
Comment 8•9 years ago
|
||
(In reply to Jeff Gilbert [:jgilbert] from comment #7)
> Comment on attachment 8726744 [details]
> MozReview Request: Bug 1228687: ScopedResolveTexturesForDraw needs the
> context to be current, so make those calls earlier. r?jrmuizel
>
> https://reviewboard.mozilla.org/r/38221/#review35435
>
> This LGTM, unless jrmuizel is on the hook for a particular reason.
I was trying to deal with time difference and get things taken care of earlier, but that backfired :)
Comment 9•9 years ago
|
||
David, any chance you could land this, or get it landed, for Milan given that he's still out for a few more days? Both Jeff's are at GDC IIRC, otherwise I would ask them...
Flags: needinfo?(dvander)
Yup, will do.
Flags: needinfo?(dvander)
Comment 11•9 years ago
|
||
Comment 12•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
Updated•9 years ago
|
Attachment #8726744 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 14•9 years ago
|
||
Low risk, but I don't know what this looks like in the wild, outside the fuzzing, so it may be better to just let it ride 48?
Flags: needinfo?(milan)
Comment 15•9 years ago
|
||
(In reply to Milan Sreckovic [:milan] from comment #14)
> Low risk, but I don't know what this looks like in the wild, outside the
> fuzzing, so it may be better to just let it ride 48?
We should take this at least in Aurora47.
Comment 16•9 years ago
|
||
Comment on attachment 8726744 [details]
MozReview Request: Bug 1228687: ScopedResolveTexturesForDraw needs the context to be current, so make those calls earlier. r?jrmuizel
Approval Request Comment
[Feature/regressing bug #]: -
[User impact if declined]: Bad behavior, possible crashiness.
[Describe test coverage new/current, TreeHerder]: no specific tests
[Risks and why]: Very low. (well-understood)
[String/UUID change made/needed]: none
Attachment #8726744 -
Flags: approval-mozilla-aurora?
Hi Jesse, can you please verify this issue is fixed as expected on a latest Nightly build? Thanks!
Flags: needinfo?(jruderman)
Assignee | ||
Comment 19•9 years ago
|
||
Also see bug 1247977 comment 14 and bug 1247977 comment 15 for indications that this is fixed.
Assignee | ||
Comment 20•9 years ago
|
||
Comment on attachment 8726744 [details]
MozReview Request: Bug 1228687: ScopedResolveTexturesForDraw needs the context to be current, so make those calls earlier. r?jrmuizel
Approval Request Comment
[Feature/regressing bug #]: 1221822. This first shipped with 45.
[User impact if declined]: High frequency crash (see duplicated bug 1247977)
[Describe test coverage new/current, TreeHerder]:
[Risks and why]: Low. See aurora request comments as well.
[String/UUID change made/needed]:
Attachment #8726744 -
Flags: approval-mozilla-beta?
Comment on attachment 8726744 [details]
MozReview Request: Bug 1228687: ScopedResolveTexturesForDraw needs the context to be current, so make those calls earlier. r?jrmuizel
(Potential) Crash fix, Aurora47+
Attachment #8726744 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 22•9 years ago
|
||
bugherder uplift |
Assignee | ||
Comment 23•9 years ago
|
||
Regarding the conversation in bug 1247977 that was originally marked as a duplicate of this, but has since one solitary crash since the fix - the steps to reproduce from this bug still pass, the one reproducible example we had locally for bug 1247977 still passes, and the configuration of the machine that did exhibit the crash is an unsupported one. So, I'm still comfortable with the original user impact and risk claims for the uplifts.
Comment 24•9 years ago
|
||
Comment on attachment 8726744 [details]
MozReview Request: Bug 1228687: ScopedResolveTexturesForDraw needs the context to be current, so make those calls earlier. r?jrmuizel
Crash fix cleanup, ok to uplift for beta 9.
Attachment #8726744 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 25•9 years ago
|
||
bugherder uplift |
You need to log in
before you can comment on or make changes to this bug.
Description
•