Closed
Bug 1415020
Opened 7 years ago
Closed 5 years ago
Compositor crash in libX11.so.6.3.0@0x39099
Categories
(Core :: Graphics: WebRender, defect, P3)
Tracking
()
RESOLVED
FIXED
mozilla66
People
(Reporter: jan, Assigned: sotaro)
References
(Blocks 1 open bug)
Details
(Keywords: crash, nightly-community, regression, Whiteboard: [wr-reserve])
Crash Data
Attachments
(1 file, 2 obsolete files)
Nightly 58 x64 20171106100122 de_DE 179dae92e4d794e7f45ad080ff01908c80691f31 @ Debian Testing (KDE, Radeon RX480) main profile: gpu process, layers force accel, webrender, blob-images, stylo-chrome bp-4a57e40b-8663-46f0-910d-177270171107 07.11.17 02:08 (The other libX11 crash that can happen is bug 1372243 comment 9. Apart from these and bug 1412545, everything is fine.)
Comment 1•7 years ago
|
||
Sotaro any idea what this might?
Component: Graphics: Layers → Graphics: WebRender
Flags: needinfo?(sotaro.ikeda.g)
Comment 2•7 years ago
|
||
Most of these crash reports don't contain WR+? https://crash-stats.mozilla.com/report/index/d5768cc1-0bc5-44e0-bc6a-af2460171006 Started on WR but had to fall back (from the graphics critical log). I believe I have produced similar reports in the past, but only when it has gone into fallback.
Updated•7 years ago
|
Whiteboard: [wr-mvp] [triage]
Assignee | ||
Comment 3•7 years ago
|
||
(In reply to Jan Andre Ikenmeyer [:darkspirit] from comment #0) > Nightly 58 x64 20171106100122 de_DE 179dae92e4d794e7f45ad080ff01908c80691f31 > @ Debian Testing (KDE, Radeon RX480) > main profile: gpu process, layers force accel, webrender, blob-images, > stylo-chrome > > bp-4a57e40b-8663-46f0-910d-177270171107 07.11.17 02:08 > > (The other libX11 crash that can happen is bug 1372243 comment 9. Apart from > these and bug 1412545, everything is fine.) Crash stack has TextureImageTextureSourceOGL::~TextureImageTextureSourceOGL it means CompositorOGL is used and WebRender is not used.
Reporter | ||
Comment 4•7 years ago
|
||
main profile: gpu process (max 5000 restarts), layers force accel, webrender, blob-images, stylo-chrome > bp-75bb7765-3ede-43ac-bd25-aec230171107 07.11.17 02:32 > bp-4a57e40b-8663-46f0-910d-177270171107 07.11.17 02:08 <--- the quoted crash. standalone > bp-fcb1d337-8eae-4091-bb32-447840171106 06.11.17 19:21 Hm. Thoughts: A) I disable webrender (but not layers.acceleration.force-enabled) for some minutes to test something and get this crash without noticing. If I temporarily disable webrender in my main profile, I will also disable layers.acceleration.force-enabled in the future. (Why don't you switch this internally for Linux? ;-) B) Without any corresponding crash, WebRender sometimes lets me fall back to OpenGL Compositing which is a bit buggy(?) and crashes. How could this be prevented? My understanding is that I should only use WebRender and in special cases mixed with BasicLayerManager (bug 1390741 on Windows, and maybe bug 1377321 later), but never OpenGL or mixed with OpenGL. The crash report speaks of the gpu process: It's unclear to me whether my main WebRender or a panel of a webextension (for example) could have caused this. My crash report from comment 0 lets me think it's B: https://crash-stats.mozilla.com/report/index/4a57e40b-8663-46f0-910d-177270171107#tab-metadata > GraphicsCriticalError |[G0][GFX1-]: Failed GL context creation for WebRender: 0 (t=1060.77) |[G16][GFX1-]: [OPENGL] Failed to init compositor with reason: FEATURE_FAILURE_OPENGL_CREATE_CONTEXT (t=2987.38) |[G2][GFX1-]: [OPENGL] Failed to init compositor with reason: FEATURE_FAILURE_OPENGL_CREATE_CONTEXT (t=1062.19) |[G3][GFX1-]: [OPENGL] Failed to init compositor with reason: FEATURE_FAILURE_OPENGL_CREATE_CONTEXT (t=1091.21) |[G4][GFX1-]: [OPENGL] Failed to init compositor with reason: FEATURE_FAILURE_OPENGL_CREATE_CONTEXT (t=1182.59) |[G5][GFX1-]: [OPENGL] Failed to init compositor with reason: FEATURE_FAILURE_OPENGL_CREATE_CONTEXT (t=1211.51) |[G6][GFX1-]: [OPENGL] Failed to init compositor with reason: FEATURE_FAILURE_OPENGL_CREATE_CONTEXT (t=1284.35) |[G7][GFX1-]: [OPENGL] Failed to init compositor with reason: FEATURE_FAILURE_OPENGL_CREATE_CONTEXT (t=1323.58) |[G8][GFX1-]: [OPENGL] Failed to init compositor with reason: FEATURE_FAILURE_OPENGL_CREATE_CONTEXT (t=1326.13) |[G9][GFX1-]: [OPENGL] Failed to init compositor with reason: FEATURE_FAILURE_OPENGL_CREATE_CONTEXT (t=1331.01) |[G10][GFX1-]: [OPENGL] Failed to init compositor with reason: FEATURE_FAILURE_OPENGL_CREATE_CONTEXT (t=1336.8) |[G11][GFX1-]: [OPENGL] Failed to init compositor with reason: FEATURE_FAILURE_OPENGL_CREATE_CONTEXT (t=1342.08) |[G12][GFX1-]: [OPENGL] Failed to init compositor with reason: FEATURE_FAILURE_OPENGL_CREATE_CONTEXT (t=1392.53) |[G13][GFX1-]: [OPENGL] Failed to init compositor with reason: FEATURE_FAILURE_OPENGL_CREATE_CONTEXT (t=1403.07) |[G14][GFX1-]: [OPENGL] Failed to init compositor with reason: FEATURE_FAILURE_OPENGL_CREATE_CONTEXT (t=1406.21) |[G15][GFX1-]: [OPENGL] Failed to init compositor with reason: FEATURE_FAILURE_OPENGL_CREATE_CONTEXT (t=2965.43) https://crash-stats.mozilla.com/report/index/4a57e40b-8663-46f0-910d-177270171107#tab-telemetryenvironment > "compositor": "webrender" So am I still using WebRender(?), but either Awesomebar, a webextension panel, about:profiles>Create new profile or Help>About falls back to OpenGL and crashes then? (Because of bug 1411503 comment 3 I think that they are different instances of WebRender.)
Reporter | ||
Comment 5•7 years ago
|
||
I have seen something like this in bug 1406230 comment 3, but it's not exactly the same. OOP Webextensions are not enabled and we don't see "Compositors might be mixed" in the quoted log. I can't help here because of lack of competence, so I will shut up now.
Assignee | ||
Comment 6•7 years ago
|
||
(In reply to Jan Andre Ikenmeyer [:darkspirit] from comment #4) > > https://crash-stats.mozilla.com/report/index/4a57e40b-8663-46f0-910d- > 177270171107#tab-metadata > > GraphicsCriticalError |[G0][GFX1-]: Failed GL context creation for WebRender: 0 (t=1060.77) The log says that gecko failed to create GL context for WebRender, it trigger to fallback to normal compositor. > [G3][GFX1-]: [OPENGL] Failed to init compositor with reason: FEATURE_FAILURE_OPENGL_CREATE_CONTEXT (t=1091.21) The error log is related to CompositorOGL. https://dxr.mozilla.org/mozilla-central/source/gfx/layers/opengl/CompositorOGL.cpp#242
Flags: needinfo?(sotaro.ikeda.g)
Assignee | ||
Comment 7•7 years ago
|
||
The crash seemed to happen because gdk window was destroyed before related GLContextGLX::~GLContextGLX() was called. I saw such a crash at early stage of WebRenderBridgeParent implemntation.
Assignee | ||
Comment 8•7 years ago
|
||
STR |
I could easily reproduce the crash with the following STR on Linux [1] Enable CompositorOGL and GPU process, then restart Firefox [2] Open multiple tabs on a window. [3] Drag one tab and open new window. [4] Close the opened window. [4] caused crash.
Assignee | ||
Comment 9•7 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #8) > I could easily reproduce the crash with the following STR on Linux > [1] Enable CompositorOGL and GPU process, then restart Firefox > [2] Open multiple tabs on a window. > [3] Drag one tab and open new window. > [4] Close the opened window. > > [4] caused crash. Destruction of GLContextGLX was deferred because BufferTextureHost held TextureImageTextureSourceOGL as TextureSource.
Updated•7 years ago
|
Reporter | ||
Updated•7 years ago
|
Blocks: wr-stability
Updated•7 years ago
|
Whiteboard: [wr-mvp] [triage] → [wr-mvp]
Updated•7 years ago
|
Priority: P2 → P3
Whiteboard: [wr-mvp] → [wr-reserve]
Reporter | ||
Comment 10•6 years ago
|
||
Seen on Socorro: > compositor": "webrender", bp-5745ec6c-961c-47a3-b2aa-fb20c0171213
Crash Signature: [@ libX11.so.6.3.0@0x39099 ] → [@ libX11.so.6.3.0@0x39099 ]
[@ libX11.so.6.3.0@0x431cb ]
Reporter | ||
Comment 11•6 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #8) > I could easily reproduce the crash with the following STR on Linux > [1] Enable CompositorOGL and GPU process, then restart Firefox > [2] Open multiple tabs on a window. > [3] Drag one tab and open new window. > [4] Close the opened window. > > [4] caused crash. layers.acceleration.force-enabled + layers.gpu-process.enabled = bp-302940d2-68e1-465e-8e88-8b8290180606 But it doesn't seem to happen with WR anymore? Maybe I find a range.
Crash Signature: [@ libX11.so.6.3.0@0x39099 ]
[@ libX11.so.6.3.0@0x431cb ] → [@ libX11.so.6.3.0@0x39099 ]
[@ libX11.so.6.3.0@0x431cb ]
[@ libX11.so.6.3.0@0x39c49 ]
Flags: needinfo?(jan)
Reporter | ||
Comment 12•6 years ago
|
||
> Maybe I find a range. I don't think so. bp-3ad61087-9b92-4bf9-a1ec-92bc00180520 (2018-05-18) may have been the last crash so far. https://crash-stats.mozilla.com/search/?app_notes=~WR%2B&signature=%5ElibX11.so&proto_signature=~_fini&product=Firefox&date=%3E%3D2018-03-06T15%3A53%3A35.000Z&date=%3C2018-06-06T17%3A53%3A35.000Z&_sort=-date&_facets=signature&_columns=date&_columns=signature&_columns=product&_columns=version&_columns=build_id&_columns=platform#facet-signature
Flags: needinfo?(jan)
Comment 14•6 years ago
|
||
Closing because no crashes reported for 12 weeks.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Reporter | ||
Comment 15•6 years ago
|
||
(In reply to Release mgmt bot [:sylvestre / :calixte] from comment #14) > Closing because no crashes reported for 12 weeks. Not reported and just being patient. (Sotaro Ikeda [:sotaro] from comment #8) > I could easily reproduce the crash with the following STR on Linux > [1] Enable CompositorOGL and GPU process, then restart Firefox > [2] Open multiple tabs on a window. > [3] Drag one tab and open new window. > [4] Close the opened window. > > [4] caused crash. bp-854d6d37-15a0-4f8e-95fe-84a5a0181124
Status: RESOLVED → REOPENED
Crash Signature: [@ libX11.so.6.3.0@0x39099 ]
[@ libX11.so.6.3.0@0x431cb ]
[@ libX11.so.6.3.0@0x39c49 ] → [@ libX11.so.6.3.0@0x39099 ]
[@ libX11.so.6.3.0@0x431cb ]
[@ libX11.so.6.3.0@0x39c49 ]
[@ libX11.so.6.3.0@0x3a009 ]
status-firefox63:
--- → disabled
status-firefox64:
--- → disabled
status-firefox65:
--- → disabled
Resolution: WONTFIX → ---
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → sotaro.ikeda.g
Assignee | ||
Comment 16•6 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #9) > (In reply to Sotaro Ikeda [:sotaro] from comment #8) > > I could easily reproduce the crash with the following STR on Linux > > [1] Enable CompositorOGL and GPU process, then restart Firefox > > [2] Open multiple tabs on a window. > > [3] Drag one tab and open new window. > > [4] Close the opened window. > > > > [4] caused crash. > > Destruction of GLContextGLX was deferred because BufferTextureHost held > TextureImageTextureSourceOGL as TextureSource. We could avoid the problem by using WeakPtr<gl::GLContext> in TextureImageTextureSourceOGL.
Assignee | ||
Comment 17•6 years ago
|
||
Comment hidden (obsolete) |
Assignee | ||
Comment 19•6 years ago
|
||
attachment 9028169 [details] [diff] [review] removes RefPtr<gl::GLContext>, but TextureImageTextureSourceOGL still holds RefPtr<gl::TextureImage> that holds RefPtr<gl::GLContext> :(
Assignee | ||
Updated•6 years ago
|
Attachment #9028169 -
Attachment is obsolete: true
Comment hidden (obsolete) |
Assignee | ||
Comment 21•6 years ago
|
||
I have another idea for addressing it. I am going to try it.
Assignee | ||
Comment 22•6 years ago
|
||
I confirmed that the patch address the crash.
Assignee | ||
Comment 23•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=55a1764fd01fb4638575eb5213c0d828e76f81e4
Assignee | ||
Updated•6 years ago
|
Attachment #9028549 -
Flags: review?(nical.bugzilla)
Updated•6 years ago
|
Attachment #9028549 -
Flags: review?(nical.bugzilla) → review+
Reporter | ||
Comment 24•6 years ago
|
||
checkin-needed?
Assignee | ||
Comment 25•6 years ago
|
||
I am thinking to check-in after becoming Firefox 66.
Assignee | ||
Comment 26•5 years ago
|
||
Rebased.
Attachment #9028549 -
Attachment is obsolete: true
Attachment #9030387 -
Flags: review+
Comment 27•5 years ago
|
||
Pushed by sikeda@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/ceee7e820638 Deallocate device data of TextureImageTextureSourceOGL during destroying CompositorOGL r=nical
Comment 28•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ceee7e820638
Status: REOPENED → RESOLVED
Closed: 6 years ago → 5 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
Updated•5 years ago
|
status-firefox-esr60:
--- → unaffected
Updated•5 years ago
|
Flags: qe-verify+
Whiteboard: [wr-reserve] → [wr-reserve][qa-triaged]
Updated•5 years ago
|
QA Whiteboard: [qa-triaged]
Whiteboard: [wr-reserve][qa-triaged] → [wr-reserve]
Comment 29•5 years ago
|
||
I could not reproduce this issue using Fx Nightly 58 x64 (20171106100122), on Ubuntu 16.04 LTS (Radeon RX480). Is it a Debian specific issue?
Flags: needinfo?(jan)
Reporter | ||
Comment 30•5 years ago
|
||
Sorry, I can only point to comment 11. Try with build 2018-06-06 or 2018-12-10. You don't need to enable WebRender for this, the GPU process was just incredible helpful for WebRender stability.
Flags: needinfo?(jan)
Updated•5 years ago
|
Keywords: regression
Comment 31•5 years ago
|
||
Unfortunately I could not reproduce this issue, I suspect it is due to the environmental differences.
Flags: qe-verify+
You need to log in
before you can comment on or make changes to this bug.
Description
•