Hello,
I have a problem with Wayland since 2 months and i want to ask your help.
I stream on Twitch, and i record videos with OBS Studio. I use the flatpak version of OBS Studio to have web sources official plugin, not the webkit source by fedora which didn’t work correctly.
Environment : Fedora Workstation 42 (with GNOME on Wayland)
After lots of diags, the issue not the Graphic card (i changed it).
It looks like an issue with the last OBS version, because downgrading the flatpak from 31.1.2 to 31.0.4 no issue.
The issue is random (after 3 hours of streaming yesterday), i streamed my screen (shared with pipewire)
In some seconds, my terminal (ptyxis) crashed, obs freeze, and lots of apps crashed (Guake for example), but the desktop environment was always up, and my browser too (Vivaldi, i think it works on XWayland)
Unable to restart ptyxis to do the diag, i logoff and logon and my apps works again. (i didn’t reboot the computer)
In the logs, we can see i lost wayland display) :
sept. 10 23:12:39 superlinux gnome-shell[4896]: meta_drm_timeline_set_sync_point failed: Failed to import syncfd at specified point
sept. 10 23:12:40 superlinux gnome-shell[4896]: Failed to get sync fd: eventfd() failed: Too many open files
sept. 10 23:12:40 superlinux gnome-shell[4896]: WL: error marshalling arguments for format_table: dup failed: Too many open files
sept. 10 23:12:40 superlinux gnome-shell[4896]: WL: error in client communication (pid 7347)
sept. 10 23:12:40 superlinux ptyxis[7347]: vkGetPhysicalDeviceSurfaceFormatsKHR(): A surface is no longer available. (VK_ERROR_SURFACE_LOST_KHR) (-1000000000)
sept. 10 23:12:40 superlinux ptyxis[7347]: Error 32 (Broken pipe) dispatching to Wayland display.
sept. 10 23:12:40 superlinux systemd[4719]: ptyxis-spawn-487fc51d-a800-4b10-8d37-f26dbb16e573.scope: Consumed 1.200s CPU time, 7.2M memory peak, 512K memory swap peak.
sept. 10 23:12:40 superlinux systemd[4719]: dbus-:1.2-org.gnome.Ptyxis@0.service: Main process exited, code=exited, status=1/FAILURE
sept. 10 23:12:40 superlinux systemd[4719]: dbus-:1.2-org.gnome.Ptyxis@0.service: Failed with result 'exit-code'.
sept. 10 23:12:40 superlinux systemd[4719]: dbus-:1.2-org.gnome.Ptyxis@0.service: Consumed 41.375s CPU time, 102.3M memory peak, 35.8M memory swap peak.
sept. 10 23:13:14 superlinux systemd[4719]: Started dbus-:1.2-org.gnome.Ptyxis@1.service.
sept. 10 23:13:14 superlinux gnome-shell[4896]: WL: error in client communication (pid 32006)
sept. 10 23:13:14 superlinux ptyxis[32006]: Lost connection to Wayland compositor.
sept. 10 23:13:14 superlinux systemd[4719]: dbus-:1.2-org.gnome.Ptyxis@1.service: Main process exited, code=exited, status=1/FAILURE
sept. 10 23:13:14 superlinux systemd[4719]: dbus-:1.2-org.gnome.Ptyxis@1.service: Failed with result 'exit-code'.
sept. 10 23:13:14 superlinux systemd[4719]: dbus-:1.2-org.gnome.Ptyxis@1.service: Consumed 381ms CPU time, 151M memory peak.
sept. 10 23:13:33 superlinux systemd[4719]: Started dbus-:1.2-org.gnome.Ptyxis@2.service.
sept. 10 23:13:33 superlinux gnome-shell[4896]: WL: error in client communication (pid 32067)
sept. 10 23:13:33 superlinux ptyxis[32067]: Lost connection to Wayland compositor.
sept. 10 23:13:33 superlinux systemd[4719]: dbus-:1.2-org.gnome.Ptyxis@2.service: Main process exited, code=exited, status=1/FAILURE
sept. 10 23:13:33 superlinux systemd[4719]: dbus-:1.2-org.gnome.Ptyxis@2.service: Failed with result 'exit-code'.
sept. 10 23:13:53 superlinux systemd[4719]: app-flatpak-com.obsproject.Studio-3736686112.scope: Consumed 6h 9min 56.186s CPU time, 3.2G memory peak, 805.9M memory swap peak.
sept. 10 23:13:53 superlinux systemd[4719]: ptyxis-spawn-03d794b1-13b3-40e7-8aad-4ef80d4b2d94.scope: Consumed 7min 32.259s CPU time, 251.1M memory peak, 2.1M memory swap peak.
sept. 10 23:13:56 superlinux systemd[4719]: Started dbus-:1.2-org.gnome.Ptyxis@3.service.
sept. 10 23:13:56 superlinux systemd[4719]: Started ptyxis-spawn-5b62fdb6-23b4-4d2a-b252-7a7695bd83ba.scope - [systemd-run] /usr/bin/bash.
sept. 10 23:13:59 superlinux systemd[4719]: Started app-flatpak-com.obsproject.Studio-171423386.scope.
sept. 10 23:14:04 superlinux gnome-shell[4896]: meta_drm_timeline_create_syncobj failed: drmSyncobjHandleToFD failed: Too many open files
sept. 10 23:14:04 superlinux pipewire[4855]: pw.mem: 0x56150e729300: cannot import invalid fd:-1
sept. 10 23:14:04 superlinux pipewire[4855]: pw.port: 0x56150e56b360: mix use buffers failed: -22 (Invalid argument)
sept. 10 23:14:04 superlinux pipewire[4855]: pw.link: (112.0.0 -> 124.0.0) allocating -> error (error use input buffers: -22 (Invalid argument)) (paused-paused)
sept. 10 23:14:04 superlinux gnome-shell[4896]: Failed to remove DRM timeline syncobj
sept. 10 23:14:04 superlinux gnome-shell[4896]: pipewire remote error: id:2 error use input buffers: -22 (Invalid argument)
sept. 10 23:14:08 superlinux systemd[1]: fwupd.service: Deactivated successfully.
sept. 10 23:14:08 superlinux audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=fwupd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? ad>
sept. 10 23:14:08 superlinux audit: BPF prog-id=111 op=UNLOAD
sept. 10 23:14:11 superlinux gnome-shell[4896]: Can't update stage views actor input only grab actor [ClutterInputOnlyActor] is on because it needs an allocation.
sept. 10 23:14:14 superlinux gnome-shell[4896]: WL: file descriptor expected, object (6), message create_pool(nhi)
sept. 10 23:14:14 superlinux gnome-shell[4896]: WL: error in client communication (pid 4896)
sept. 10 23:14:14 superlinux gnome-shell[5378]: XWAYLAND: wl_display#1: error 1: invalid arguments for wl_shm#6.create_pool
sept. 10 23:14:14 superlinux gnome-shell[5378]: (EE) failed to dispatch Wayland events: Invalid argument
sept. 10 23:14:14 superlinux vivaldi-snapshot.desktop[8129]: [8257:8308:0910/231414.485533:ERROR:chromium/ui/gfx/x/connection.cc:65] X connection error received.
sept. 10 23:14:14 superlinux vivaldi-snapshot.desktop[8129]: X connection to :0 broken (explicit kill or server shutdown).
sept. 10 23:14:14 superlinux gnome-shell[4896]: Connection to xwayland lost
sept. 10 23:14:14 superlinux gnome-shell[4896]: X Wayland crashed; attempting to recover
sept. 10 23:14:14 superlinux systemd[4719]: Stopped target gnome-session-x11-services-ready.target - GNOME session X11 services.
sept. 10 23:14:14 superlinux systemd[4719]: Stopping org.gnome.SettingsDaemon.XSettings.service - GNOME XSettings service...
sept. 10 23:14:14 superlinux gnome-shell[4896]: Using public X11 display :0, (using :1 for managed services)
sept. 10 23:14:14 superlinux systemd[4719]: org.gnome.SettingsDaemon.XSettings.service: Main process exited, code=exited, status=1/FAILURE
sept. 10 23:14:14 superlinux systemd[4719]: vte-spawn-d56a8ff1-63fa-4b2d-a409-efe4fe84efa6.scope: Consumed 5.356s CPU time, 152.2M memory peak.
sept. 10 23:14:14 superlinux systemd[4719]: app-gnome-guake-5117.scope: Consumed 1.278s CPU time, 38M memory peak, 13.8M memory swap peak.
sept. 10 23:14:14 superlinux systemd[4719]: org.gnome.SettingsDaemon.XSettings.service: Failed with result 'exit-code'.
sept. 10 23:14:14 superlinux systemd[4719]: Stopped org.gnome.SettingsDaemon.XSettings.service - GNOME XSettings service.
sept. 10 23:14:14 superlinux systemd[4719]: Stopped target gnome-session-x11-services.target - GNOME session X11 services.
sept. 10 23:14:14 superlinux systemd[4719]: app-com.vivaldi.Vivaldi-12994.scope: Consumed 5min 35.277s CPU time, 1.1G memory peak, 133.6M memory swap peak.
sept. 10 23:14:14 superlinux systemd[4719]: app-gnome-vivaldi\x2dstable-12994.scope: Consumed 30min 23.924s CPU time, 2.2G memory peak, 1.1G memory swap peak.
sept. 10 23:14:14 superlinux systemd[4719]: app-com.vivaldi.Vivaldi-8124.scope: Consumed 1min 57.132s CPU time, 926.6M memory peak, 236.6M memory swap peak.
sept. 10 23:14:14 superlinux systemd[4719]: app-gnome-vivaldi\x2dsnapshot-8124.scope: Consumed 2h 12min 22.084s CPU time, 3G memory peak, 1.1G memory swap peak.
sept. 10 23:14:19 superlinux gnome-shell[4896]: error: Failed to launch “Vivaldi (snapshot)”: Too many open files
sept. 10 23:14:26 superlinux gnome-shell[4896]: Can't update stage views actor input only grab actor [ClutterInputOnlyActor] is on because it needs an allocation.
sept. 10 23:14:26 superlinux gnome-shell[4896]: WL: file descriptor expected, object (5), message create_pool(nhi)
sept. 10 23:14:26 superlinux gnome-shell[4896]: WL: error in client communication (pid 32217)
sept. 10 23:14:27 superlinux gnome-shell[4896]: Failed to get sync fd: eventfd() failed: Too many open files
sept. 10 23:14:27 superlinux gnome-shell[4896]: Failed to get sync fd: eventfd() failed: Too many open files
sept. 10 23:14:27 superlinux gnome-shell[4896]: Failed to get sync fd: eventfd() failed: Too many open files
sept. 10 23:14:27 superlinux systemd[4719]: app-flatpak-com.obsproject.Studio-171423386.scope: Consumed 57.695s CPU time, 2.1G memory peak.
After session closed, and opened again :
sept. 10 23:14:33 superlinux gnome-shell[32695]: Running GNOME Shell (using mutter 48.4) as a Wayland display server
sept. 10 23:14:33 superlinux kernel: amdgpu 0000:29:00.0: [drm] REG_WAIT timeout 1us * 150000 tries - optc32_disable_crtc line:195
sept. 10 23:14:33 superlinux gnome-shell[32695]: Enabling experimental feature 'scale-monitor-framebuffer'
sept. 10 23:14:33 superlinux gnome-shell[32695]: Enabling experimental feature 'xwayland-native-scaling'
sept. 10 23:14:33 superlinux uresourced[1983]: Setting resources on user-1000.slice (MemoryMin: 0, MemoryLow: 0, CPUWeight: 100, IOWeight: 100)
sept. 10 23:14:33 superlinux uresourced[1983]: Setting resources on user@1000.service (MemoryMin: 0, MemoryLow: 0, CPUWeight: 100, IOWeight: 100)
sept. 10 23:14:33 superlinux uresourced[1983]: Setting resources on user-42.slice (MemoryMin: 262144000, MemoryLow: 0, CPUWeight: 500, IOWeight: 500)
sept. 10 23:14:33 superlinux uresourced[1983]: Setting resources on user@42.service (MemoryMin: 0, MemoryLow: 0, CPUWeight: 100, IOWeight: 100)
sept. 10 23:14:33 superlinux rtkit-daemon[1562]: Successfully made thread 32724 of process 32695 (/usr/bin/gnome-shell) owned by '42' high priority at nice level -15.
sept. 10 23:14:33 superlinux gnome-shell[32695]: Thread 'KMS thread' will be using high priority scheduling
sept. 10 23:14:33 superlinux gnome-shell[32695]: Device '/dev/dri/card1' prefers shadow buffer
sept. 10 23:14:33 superlinux gnome-shell[32695]: Added device '/dev/dri/card1' (amdgpu) using atomic mode setting.
sept. 10 23:14:33 superlinux gnome-shell[32695]: Created gbm renderer for '/dev/dri/card1'
sept. 10 23:14:33 superlinux gnome-shell[32695]: Boot VGA GPU /dev/dri/card1 selected as primary
sept. 10 23:14:33 superlinux gnome-shell[32695]: Obtained a high priority EGL context
sept. 10 23:14:33 superlinux /usr/libexec/gdm-wayland-session[32682]: dbus-daemon[32682]: [session uid=42 pid=32682 pidfd=5] Activating service name='org.a11y.Bus' requested by ':1.4>
sept. 10 23:14:33 superlinux /usr/libexec/gdm-wayland-session[32682]: dbus-daemon[32682]: [session uid=42 pid=32682 pidfd=5] Successfully activated service 'org.a11y.Bus'
sept. 10 23:14:33 superlinux gnome-shell[32695]: Using public X11 display :1024, (using :1025 for managed services)
sept. 10 23:14:33 superlinux gnome-shell[32695]: Using Wayland display name 'wayland-0'
sept. 10 23:14:33 superlinux /usr/libexec/gdm-wayland-session[32766]: dbus-daemon[32766]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=42 pid=32695 comm>
sept. 10 23:14:33 superlinux /usr/libexec/gdm-wayland-session[32766]: dbus-daemon[32766]: Successfully activated service 'org.a11y.atspi.Registry'
sept. 10 23:14:33 superlinux /usr/libexec/gdm-wayland-session[32769]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
sept. 10 23:14:34 superlinux gnome-shell[32695]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly.
Started OBS and i could continue my stream, and open again Ptyxis…
I used OBS for 30 minutes before ending the stream so i can’t see an issue yesterday again.
Did you have an idea to find the issue and fix it ?