Consider not using GL_CONTEXT_FLAG_NO_ERROR_BIT to avoid crashes in Mesa
Categories
(Core :: Graphics: CanvasWebGL, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox122 | --- | fixed |
People
(Reporter: jrmuizel, Assigned: nical)
References
(Regressed 1 open bug)
Details
Attachments
(2 files)
| Reporter | ||
Comment 1•2 years ago
|
||
This comes from here: https://searchfox.org/mozilla-central/rev/aa8a99510c0686cdf9d42fb4b8f6d968884c961d/dom/canvas/WebGLContext.cpp#275
Thoughts Kelsey?
| Reporter | ||
Updated•2 years ago
|
Comment 2•2 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #1)
This comes from here: https://searchfox.org/mozilla-central/rev/aa8a99510c0686cdf9d42fb4b8f6d968884c961d/dom/canvas/WebGLContext.cpp#275
Thoughts Kelsey?
That just got added in bug 1841050 and the pref is flipped on Windows only right now. Perhaps we flip the pref on linux as well?
Comment 3•2 years ago
|
||
It seems to me that the pref is enabled on macOS and Linux but not on Windows, see here. Maybe the intention was to only enable it on Windows and not vice-versa?
Comment 4•2 years ago
|
||
I think false + no_error = error, ie return an error in the case of something invalid instead of not checking and letting it through.
Comment 5•2 years ago
|
||
We should blocklist to prevent using no_error on unfixed mesa.
| Reporter | ||
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 6•2 years ago
|
||
Comment 8•2 years ago
|
||
Backed out for causing GLContext related crashes.
Failure logs:
- https://treeherder.mozilla.org/logviewer?job_id=435645407&repo=autoland
- https://treeherder.mozilla.org/logviewer?job_id=435650113&repo=autoland
Backout link: https://hg.mozilla.org/integration/autoland/rev/bd03120d6db1fc7c053cc1430f6e6f071432dae1
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
Comment 10•2 years ago
|
||
Backed out for causing mochitest failure on test_2_conformance2__transform_feedback__transform_feedback.html
| Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 11•2 years ago
|
||
The severity field is not set for this bug.
:jgilbert, could you have a look please?
For more information, please visit BugBot documentation.
Comment 12•2 years ago
|
||
Comment 13•2 years ago
|
||
I believe this bug is affecting me, not 100% sure but it smells the same, however FF crashes so bad I never get any crash info, so that may not be entirely identical. Still I wanted to chime in because it means automated crash report would not show this.
I'm on a fairly recent ubuntu 23.10 install and using firefox from mozilla stable PPA.
On a freshly created profile I quickly get a freeze loading youtube in a few tabs, seeing a few videos, switching out of FF to another app (something the failed test mentioned in #10 seems to care about), and on the command line I get:
MESA: error: Failed to query drm device.
libEGL warning: egl: failed to create dri2 screen
MESA: error: Failed to query drm device.
libEGL warning: egl: failed to create dri2 screen
I started to experience the bug fairly recently, or at least it started to hit me really bad a couple days ago and I may not have bothered before.
Attached is the about:config report copied listerally just before a freeze.
Updated•2 years ago
|
| Assignee | ||
Comment 15•2 years ago
|
||
There are a couple of tests that fail if GL_CONTEXT_FLAG_NO_ERROR_BIT is set (they generate an error). I haven't investigated that much. I should probably have marked them as failing on linux and re-landed but it fell of the radar.
Comment 16•2 years ago
|
||
(In reply to François from comment #13)
I believe this bug is affecting me, not 100% sure but it smells the same, however FF crashes so bad I never get any crash info, so that may not be entirely identical. Still I wanted to chime in because it means automated crash report would not show this.
I'm on a fairly recent ubuntu 23.10 install and using firefox from mozilla stable PPA.
On a freshly created profile I quickly get a freeze loading youtube in a few tabs, seeing a few videos, switching out of FF to another app (something the failed test mentioned in #10 seems to care about), and on the command line I get:MESA: error: Failed to query drm device. libEGL warning: egl: failed to create dri2 screen MESA: error: Failed to query drm device. libEGL warning: egl: failed to create dri2 screenI started to experience the bug fairly recently, or at least it started to hit me really bad a couple days ago and I may not have bothered before.
Attached is the about:config report copied listerally just before a freeze.
Release 120.0.1 seems to have fixed my issue which most likely was not related to this ticket.
Comment 17•2 years ago
|
||
Comment 18•2 years ago
|
||
| bugherder | ||
Description
•