Basic/SW-WR compositor becomes unresponsive on Wayland after a while (sooner when playing videos)
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr78 | --- | unaffected |
firefox87 | --- | disabled |
firefox88 | --- | wontfix |
firefox89 | --- | wontfix |
firefox90 | --- | fixed |
People
(Reporter: ke5trel, Unassigned)
References
(Blocks 2 open bugs, Regression)
Details
(Keywords: regression)
Attachments
(1 file)
(deleted),
text/plain
|
Details |
STR:
- Run with
MOZ_ENABLE_WAYLAND=1
andgfx.webrender.software = true
on Ubuntu 20.10. - Open multiple youtube videos in Picture-in-Picture.
- Continuously resize the main browser window for several minutes until it stops responding.
It can also occur after a few hours of browsing but it is much faster to reproduce with video.
The following terminal error sometimes occurs when the window is resized or when a video is scrolled out of view:
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer
Attached is log output for WAYLAND_DEBUG=1 MOZ_LOG="WidgetWayland:5"
.
It still happens on latest Nightly 88.0a1 (20210303215027) with SW-WR+Wayland. It does not happen with XWayland or HW-WR.
Updated•4 years ago
|
It also happens with Basic compositor.
Timeline:
2020-12-21: No freezing.
2020-12-22 (Bug 1648698): Freezes when opening a PiP window.
2021-01-13 (Bug 1685055): Freezes soon after startup.
2021-02-05 (Bug 1687212): Freezes after a while (current situation).
Originally regressed by Bug 1648698.
Updated•4 years ago
|
Updated•4 years ago
|
Comment 4•4 years ago
|
||
I think I've been experiencing the same bug (on sway compositor), and a workaround that works for me is layers.acceleration.force-enabled = true
.
Updated•4 years ago
|
layers.acceleration.force-enabled = true
enables OPENGL_COMPOSITING
but it still freezes for me on Ubuntu 20.10.
gfx.webrender.software.opengl = true
enables "WebRender (Software OpenGL)" which does not have this issue.
Comment 6•4 years ago
|
||
That's surprising, I definitely don't have webrender enabled (confirmed in about:support) and the opengl compositing alone fixed it for me. Perhaps we have slightly different bugs.
Comment 7•4 years ago
|
||
This got significantly better for me sometime recently. Kestrel, do you still see this?
No change for me, I can still easily freeze Nightly 90.0a1 (2021-04-24) on Ubuntu 21.04 within 10 minutes with several videos playing simultaneously. It never happens with hardware Webrender.
Updated•4 years ago
|
Comment 9•4 years ago
|
||
In the console I get these 3 errors, but not sure if one of them is related to the issue:
IPDL protocol error: Handler returned error code!
###!!! [Parent][DispatchAsyncMessage] Error: PMessagePort::Msg_PostMessages Processing error: message was deserialized, but the handler returned false (indicating failure)
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
Comment 10•4 years ago
|
||
I'm currently working on a new software buffer backend in bug 1708416. Can some(one) of you try the following build, which includes the patch among others, with SW-WR? Because I've seen similar behaviour in the past and am not able to reproduce it with that patch any more.
Direct download: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/ccwi_HfJSr22WhM3A3nyjw/runs/0/artifacts/public/build/target.tar.bz2
Comment 11•4 years ago
|
||
(In reply to Robert Mader [:rmader] from comment #10)
I'm currently working on a new software buffer backend in bug 1708416. Can some(one) of you try the following build, which includes the patch among others, with SW-WR? Because I've seen similar behaviour in the past and am not able to reproduce it with that patch any more.
Direct download: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/ccwi_HfJSr22WhM3A3nyjw/runs/0/artifacts/public/build/target.tar.bz2
I tested your patch using "GDK_BACKEND=wayland ./firefox". After a few hours with around 20 open tabs I ended up with a unresponsive window. The console did not print any warnings or errors when the error occurred.
Comment 12•4 years ago
|
||
(In reply to tobias47n9e from comment #11)
I tested your patch using "GDK_BACKEND=wayland ./firefox". After a few hours with around 20 open tabs I ended up with a unresponsive window. The console did not print any warnings or errors when the error occurred.
Thanks a lot for testing. That is super unfortunate, especially if whatever is happening is so hard to reproduce. Just for the record: this was on SW-WR, correct?
I wonder if this has to do with Wayland queue dispatching or something like that. Will try harder to reproduce here.
Comment 13•4 years ago
|
||
(In reply to Robert Mader [:rmader] from comment #12)
(In reply to tobias47n9e from comment #11)
I tested your patch using "GDK_BACKEND=wayland ./firefox". After a few hours with around 20 open tabs I ended up with a unresponsive window. The console did not print any warnings or errors when the error occurred.
Thanks a lot for testing. That is super unfortunate, especially if whatever is happening is so hard to reproduce. Just for the record: this was on SW-WR, correct?
I wonder if this has to do with Wayland queue dispatching or something like that. Will try harder to reproduce here.
Not sure if I am using SW-WR or hardware accelerated. I couldn't find that information in about:support
Comment 14•4 years ago
|
||
I think starting today I couldn't reproduce the issue. I am currently using: 90.0a1 (2021-05-20).
Comment 15•4 years ago
|
||
(In reply to tobias47n9e from comment #14)
I think starting today I couldn't reproduce the issue. I am currently using: 90.0a1 (2021-05-20).
Now using 90.0a1 (2021-05-25) (64-bit) and I could reproduce the last few days. My earlier message was from a day where i fully restarted my PC, so RM usage was low and SWAP was unused. So perhaps the issue only happens in combination with Gnome and the OS running out of memory? Currently my RAM usage is at ~85% and my small SWAP of 1 GB is full.
Updated•3 years ago
|
Reporter | ||
Comment 16•3 years ago
|
||
I've been using SW-WR on Nightly since Comment 10 (2021-05-17) and can no longer reproduce the issue on Ubuntu 20.10 or 21.04 (two computers, no memory constraints, one with swap disabled). I tested earlier builds and while it did occur, it was much more difficult to reproduce than before. This would suggest a combination of improvements in Nightly 90 and upstream that avoids the issue.
Description
•