wayland-session.log spammed with "WaylandMessage::Write()" error messages
Categories
(Core :: Widget: Gtk, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox125 | --- | fixed |
People
(Reporter: voiceroy, Assigned: stransky)
References
(Blocks 1 open bug)
Details
Attachments
(5 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0
Steps to reproduce:
- Lauch Firefox
- CPU usage rises to 80-90%
- The ~/.local/share/sddm/wayland-session.log grows in size very fastly, consuming large amounts of disk space.
- The log file is spammed with the message "Error: WaylandMessage::Write() too many files to send
: "
Actual results:
This only happens whenever I start firefox on sway (wayland), regardless of whether I reload swaywm using mod+shift+c. CPU usage stays at 80-90% and the log file starts to consume disk space. At the time I noticed it, the log file was ~140GB with all of the lines being "Error: WaylandMessage::Write() too many files to send
: "
Expected results:
CPU usage should be normal.
Log files shouldn't consume large amount of space in a very short period of time.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•2 years ago
|
||
I've seen this happen to my /var/log/syslog file. There are some upstream bugs in several distros: https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/2051838
| Assignee | ||
Comment 3•2 years ago
|
||
That's interesting, Thanks. Do you see that on Sway only? Can you test Mutter for instance?
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Testing_different_Wayland_compositor
It looks like Sway sends too many files over IPC so we can't handle it.
As a workaround you can run Firefox with MOZ_DISABLE_WAYLAND_PROXY=1 env variable set.
| Reporter | ||
Comment 4•2 years ago
|
||
Can you mind looking at this issue: https://github.com/swaywm/sway/issues/8006
| Reporter | ||
Comment 5•2 years ago
|
||
| Reporter | ||
Comment 6•2 years ago
|
||
By running firefox in mutter, I get these logs
01:09:40.053 [ERROR] [wlr] [types/xdg_shell/wlr_xdg_surface.c:169] A configure is scheduled for an uninitialized xdg_surface 0x5f107dcb2440
01:09:41.877 [ERROR] [wlr] [types/xdg_shell/wlr_xdg_surface.c:169] A configure is scheduled for an uninitialized xdg_surface 0x5f107d4f9230
With lots of space and newline characters in the file.
I've attached the file
| Assignee | ||
Comment 7•2 years ago
|
||
It's because we write max MAX_LIBWAY_FDS-1 fds.
| Assignee | ||
Comment 8•2 years ago
|
||
- Make Error()/Warning() always print errno
- Use ErrorPlain() to print all warnings without errno
| Assignee | ||
Comment 9•2 years ago
|
||
Depends on D203107
| Assignee | ||
Comment 10•2 years ago
|
||
Depends on D203108
Comment 11•2 years ago
|
||
| Assignee | ||
Updated•2 years ago
|
Comment 12•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/aef095e096ff
https://hg.mozilla.org/mozilla-central/rev/7d0c24d09691
https://hg.mozilla.org/mozilla-central/rev/44c183650174
Description
•