Add gfxCriticalNote for negative ANativeWindow size
Categories
(Core :: Graphics, task)
Tracking
()
People
(Reporter: jnicol, Assigned: jnicol)
References
Details
Attachments
(1 file)
48 bytes,
text/x-phabricator-request
|
dmeehan
:
approval-mozilla-beta+
|
Details | Review |
I have been able to reproduce bug 1772839 locally, and at least with my STR the failure appears to be caused by the Surface's BufferQueue having been abandoned. We can detect this situation ourselves because ANativeWindow_getWidth
returns a negative value in this state.
In this bug we'll therefore we add a gfxCriticalNote when ANativeWindow_getWidth/Height return a negative value. This will help us determine whether the crashes we are seeing are indeed due to abandoned BufferQueues, or something else.
Assignee | ||
Comment 1•2 years ago
|
||
One possible cause of the failures to create an EGLSurface we are
seeing in bug 1772839 is that the Surface's underlying BufferQueue has
already been abandoned. In such circumstances,
ANativeWindow_getWidth/Height will return a negative value. If this
occurs, ensure we annotate crash reports via gfxCriticalNote. This
will allow us to determine whether the crashes we are seeing are
indeed due to an abandoned BufferQueue, or some other reason.
Pushed by jnicol@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/39fecab5c852 Add gfxCriticalNote for negative ANativeWindow size r=gfx-reviewers,geckoview-reviewers,aosmond,owlish
Assignee | ||
Comment 3•2 years ago
|
||
Comment on attachment 9284660 [details]
Bug 1778651 - Add gfxCriticalNote for negative ANativeWindow size r?#gfx-reviewers
Beta/Release Uplift Approval Request
- User impact if declined: Will be slower to get useful information to help diagnose bug 1772839
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Just adds a simple annotation to crash reports
- String changes made/needed:
- Is Android affected?: Yes
Comment 4•2 years ago
|
||
bugherder |
Comment 5•2 years ago
|
||
Comment on attachment 9284660 [details]
Bug 1778651 - Add gfxCriticalNote for negative ANativeWindow size r?#gfx-reviewers
Approved for 103.0b7, thanks.
Comment 6•2 years ago
|
||
bugherder uplift |
Description
•