Improve error handling in GLContextEGL::CreateCompatibleSurface
Categories
(Core :: Graphics: CanvasWebGL, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox98 | --- | fixed |
People
(Reporter: aosmond, Assigned: aosmond)
References
Details
Attachments
(1 file)
There is a somewhat common crash in nightly/beta/release for Android users as tracked in bug 1746354 here:
If we just returned nullptr, we would just gracefully tear down the context:
which is probably more user friendly than just crashing. However it would be good to collect why this is failing. If we crash via gfxCriticalError
, we could crash nightly and dump the error code to the critical log, and just lose the context on beta/release.
Assignee | ||
Comment 1•3 years ago
|
||
Rather than just crashing, if we return a nullptr in
CreateCompatibleSurface, then we will just cause a context loss for
WebGL instances. This would be better for beta/release than just
crashing the content process on the user.
So that we can get a sense of what errors are causing this, we should
record it to the critical log. This will still crash on nightly as well
so we should get the reports.
Comment 3•3 years ago
|
||
bugherder |
Description
•