Crash when viewing Firefox profiler pages
Categories
(Core :: Graphics: CanvasWebGL, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox118 | --- | fixed |
People
(Reporter: gcp, Assigned: sotaro)
References
(Blocks 2 open bugs)
Details
Attachments
(2 files)
Current Nightly, Kubuntu 22.04, nvidia 525 drivers
Open:
This crashes the tab immediately after load for me and does not trigger the crash reporter.
I can reproduce it in debug mode, I notice a
[Child 2706959, Main Thread] WARNING: failed to duplicate file descriptor: Too many open files: file /home/morbo/hg/firefox/ipc/chromium/src/base/shared_memory_posix.cc:540
before the console gets spammed by thousands of lines of
[Parent 2706230, Renderer] WARNING: IPC Connection Error: [Parent][PCanvasManagerParent] RunMessage(msgname=PWebGL::Msg_DispatchCommands) Channel error: cannot send/recv: file /home/morbo/hg/firefox/ipc/glue/MessageChannel.cpp:1934
Monitoring file handles while the page loads:
orbo@alder:~/hg/firefox$ cat /proc/sys/fs/file-nr
19776 0 9223372036854775807
morbo@alder:~/hg/firefox$ cat /proc/sys/fs/file-nr
19536 0 9223372036854775807
morbo@alder:~/hg/firefox$ cat /proc/sys/fs/file-nr
19632 0 9223372036854775807
morbo@alder:~/hg/firefox$ cat /proc/sys/fs/file-nr
21648 0 9223372036854775807
morbo@alder:~/hg/firefox$ cat /proc/sys/fs/file-nr
23616 0 9223372036854775807
morbo@alder:~/hg/firefox$ cat /proc/sys/fs/file-nr
19680 0 9223372036854775807
Looks like an FD leak? That could explain why we don't get crash reports.
Reporter | ||
Comment 1•10 months ago
|
||
Going to set S2 as this is a crash that won't get reported.
Comment 2•10 months ago
|
||
@sotaro: This may be something that you have looked into recently.
Assignee | ||
Updated•10 months ago
|
Assignee | ||
Comment 3•10 months ago
|
||
:gcp, thank you for reporting the bug. Can you attach about:support to this bug? And can you check if the problem happen with the following?
- set pref webgl.out-of-process.async-present.force-sync = true in about:support
- Restart Firefox
Reporter | ||
Comment 4•10 months ago
|
||
Reporter | ||
Comment 5•10 months ago
|
||
And can you check if the problem happen with the following?
Same behavior.
Assignee | ||
Comment 7•10 months ago
•
|
||
I confirmed the problem on Linux when pref widget.dmabuf.force-enabled = true. I am going to look into it.
Assignee | ||
Updated•10 months ago
|
Assignee | ||
Comment 8•10 months ago
•
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #7)
I confirmed the problem on Linux when pref widget.dmabuf.force-enabled = true. I am going to look into it.
The crash happened also pref widget.dmabuf.force-enabled = false. The file descriptor seemed to be consumed by a lot of IPC messages by WebGLChild::FlushPendingCmds().
mFlushedCmdInfo.flushesSinceLastCongestionCheck did not work, since it is initialized in ClientWebGLContext::GetFrontBuffer() and the GetFrontBuffer() was not called. Then the problem happened also when gfx::gfxVars::WebglOopAsyncPresentForceSync() = true.
Assignee | ||
Comment 9•10 months ago
|
||
Comment 10•10 months ago
|
||
Pushed by sikeda.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d5ecff066ada Always enable IPC congestion check in WebGLChild::FlushPendingCmds() r=jgilbert,gfx-reviewers,lsalzman
Assignee | ||
Updated•10 months ago
|
Comment 11•10 months ago
|
||
bugherder |
Updated•9 months ago
|
Description
•