Closed Bug 1882449 Opened 2 years ago Closed 2 years ago

wayland-session.log spammed with "WaylandMessage::Write()" error messages

Categories

(Core :: Widget: Gtk, defect, P2)

Firefox 123
defect

Tracking

()

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: voiceroy, Assigned: stransky)

References

(Blocks 1 open bug)

Details

Attachments

(5 files)

Attached file wayland-session.log

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0

Steps to reproduce:

  1. Lauch Firefox
  2. CPU usage rises to 80-90%
  3. The ~/.local/share/sddm/wayland-session.log grows in size very fastly, consuming large amounts of disk space.
  4. 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.

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.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

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

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.

Flags: needinfo?(stransky)

Can you mind looking at this issue: https://github.com/swaywm/sway/issues/8006

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

It's because we write max MAX_LIBWAY_FDS-1 fds.

Assignee: nobody → stransky
Blocks: wayland
Priority: -- → P2
  • Make Error()/Warning() always print errno
  • Use ErrorPlain() to print all warnings without errno
Pushed by stransky@redhat.com: https://hg.mozilla.org/integration/autoland/rev/aef095e096ff [Wayland Proxy] Use ErrorPlain() to print all errors without errno r=emilio https://hg.mozilla.org/integration/autoland/rev/7d0c24d09691 [Wayland Proxy] Allow to read/write up to MAX_LIBWAY_FDS fds num r=emilio https://hg.mozilla.org/integration/autoland/rev/44c183650174 [Wayland Proxy] Remove redundant mLoaded flag r=emilio
Flags: needinfo?(stransky)
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
Duplicate of this bug: 1882295
Duplicate of this bug: 1884429
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: