LizardByte / LizardByte/Sunshine

XDG Portal and Kwingrab screen freezing

Open
#5,241 25 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
41.3k
Forks
2.1k
Avg merge
23h 47m
Merged PRs (30d)
124

Description

Is there an existing issue for this?
  • I have searched the existing issues
Is your issue described in the documentation?
  • I have read the documentation
Is your issue present in the latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

When I stream using XDG Portal or KWin screencasting, there is a random chance that the screen completely freezes, while everything else (input and audio) remains active. When I enable the statistics overlay in Moonlight-Qt during the screen being frozen, I can see the FPS stuck at around 43–44 FPS.
This issue never happens with KMS, but it does occur with both portalgrab and kwingrab.
Logs do not seem to show anything unusual.

Expected Behavior

Should work fine without freezing.

Additional Context

No response

Host Operating System

Linux

Operating System Version

CachyOS

Architecture

amd64/x86_64

Package

Linux - AUR (Third Party)

GPU Type

AMD

GPU Model

AMD Radeon RX 6600

GPU Driver/Mesa Version

Mesa 26.1.1-arch2.1

Capture Method

XDG Portal Grab (FreeBSD/Linux)

Apps

Log output
[2026-06-03 12:24:18.902]: Info: Sunshine version: 2026.531.163415.r4.gc038302 commit: c0383029662b2821738db04181783e8a9f9480b0
[2026-06-03 12:24:18.902]: Info: Package Publisher: AUR
[2026-06-03 12:24:18.902]: Info: Publisher Website: https://aur.archlinux.org/packages/sunshine-git
[2026-06-03 12:24:18.902]: Info: Get support: https://aur.archlinux.org/packages/sunshine-git
[2026-06-03 12:24:18.902]: Info: config: 'capture' = portal
[2026-06-03 12:24:18.906]: Info: [portalgrab] Loaded portal restore token from disk
[2026-06-03 12:24:18.978]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2026-06-03 12:24:18.978]: Info: Trying encoder [nvenc]
[2026-06-03 12:24:18.978]: Info: [misc] drop_elevated_privileges succeeded in dropping capabilities
[2026-06-03 12:24:18.978]: Info: Screencasting with XDG portal
[2026-06-03 12:24:18.980]: Info: [misc] drop_elevated_privileges succeeded in dropping capabilities
[2026-06-03 12:24:18.980]: Info: [pipewire] Requested frame rate [60/1, approx. 60 fps]
[2026-06-03 12:24:18.980]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:18.992]: Info: [portalgrab] Loaded portal restore token from disk
[2026-06-03 12:24:19.017]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:19.017]: Info: [wayland] Found interface: zxdg_output_manager_v1(33) version 3
[2026-06-03 12:24:19.017]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(59) version 5
[2026-06-03 12:24:19.017]: Info: [wayland] Found interface: wl_output(65) version 4
[2026-06-03 12:24:19.017]: Info: [wayland] Resolution: 1920x1080
[2026-06-03 12:24:19.017]: Info: [wayland] Offset: 0x0
[2026-06-03 12:24:19.017]: Info: [wayland] Logical size: 1920x1080
[2026-06-03 12:24:19.017]: Info: [wayland] Name: HDMI-A-1
[2026-06-03 12:24:19.017]: Info: [wayland] Found monitor: Xiaomi Corporation P27FBA-RAGL
[2026-06-03 12:24:19.020]: Info: [portalgrab] Using first available stream as no matching stream was found for: ''
[2026-06-03 12:24:19.020]: Info: [pipewire] Streaming display '' offset: 0x0 resolution: 1920x1080
[2026-06-03 12:24:19.020]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:19.020]: Info: [wayland] Found interface: zxdg_output_manager_v1(33) version 3
[2026-06-03 12:24:19.020]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(59) version 5
[2026-06-03 12:24:19.020]: Info: [wayland] Found interface: wl_output(65) version 4
[2026-06-03 12:24:19.020]: Info: [wayland] Resolution: 1920x1080
[2026-06-03 12:24:19.020]: Info: [wayland] Offset: 0x0
[2026-06-03 12:24:19.020]: Info: [wayland] Logical size: 1920x1080
[2026-06-03 12:24:19.020]: Info: [wayland] Name: HDMI-A-1
[2026-06-03 12:24:19.020]: Info: [wayland] Found monitor: Xiaomi Corporation P27FBA-RAGL
[2026-06-03 12:24:19.026]: Info: [pipewire] Connected to pipewire version 1.6.6
[2026-06-03 12:24:19.031]: Info: [pipewire] Video format: 12
[2026-06-03 12:24:19.031]: Info: [pipewire] Size: 1920x1080
[2026-06-03 12:24:19.031]: Info: [pipewire] Color primaries: 0
[2026-06-03 12:24:19.031]: Info: [pipewire] Transfer function: 0
[2026-06-03 12:24:19.031]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture)
[2026-06-03 12:24:19.031]: Info: [pipewire] using memory buffers
[2026-06-03 12:24:19.036]: Info: Creating encoder [h264_nvenc]
[2026-06-03 12:24:19.036]: Info: Color coding: SDR (Rec. 601)
[2026-06-03 12:24:19.036]: Info: Color depth: 8-bit
[2026-06-03 12:24:19.036]: Info: Color range: JPEG
[2026-06-03 12:24:19.039]: Error: [CUDA @ 0x5563df837e00] Cannot load libcuda.so.1
[2026-06-03 12:24:19.039]: Error: [CUDA @ 0x5563df837e00] Could not dynamically load CUDA
[2026-06-03 12:24:19.039]: Error: Failed to create a CUDA device: Operation not permitted
[2026-06-03 12:24:19.039]: Info: Creating encoder [h264_nvenc]
[2026-06-03 12:24:19.039]: Info: Color coding: SDR (Rec. 601)
[2026-06-03 12:24:19.039]: Info: Color depth: 8-bit
[2026-06-03 12:24:19.039]: Info: Color range: JPEG
[2026-06-03 12:24:19.039]: Error: [CUDA @ 0x5563df880280] Cannot load libcuda.so.1
[2026-06-03 12:24:19.039]: Error: [CUDA @ 0x5563df880280] Could not dynamically load CUDA
[2026-06-03 12:24:19.039]: Error: Failed to create a CUDA device: Operation not permitted
[2026-06-03 12:24:19.040]: Info: Encoder [nvenc] failed
[2026-06-03 12:24:19.044]: Info: Trying encoder [vulkan]
[2026-06-03 12:24:19.044]: Info: Screencasting with XDG portal
[2026-06-03 12:24:19.044]: Info: [pipewire] Requested frame rate [60/1, approx. 60 fps]
[2026-06-03 12:24:19.044]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:19.057]: Info: [portalgrab] Loaded portal restore token from disk
[2026-06-03 12:24:19.072]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:19.072]: Info: [wayland] Found interface: zxdg_output_manager_v1(33) version 3
[2026-06-03 12:24:19.072]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(59) version 5
[2026-06-03 12:24:19.072]: Info: [wayland] Found interface: wl_output(65) version 4
[2026-06-03 12:24:19.072]: Info: [wayland] Resolution: 1920x1080
[2026-06-03 12:24:19.072]: Info: [wayland] Offset: 0x0
[2026-06-03 12:24:19.072]: Info: [wayland] Logical size: 1920x1080
[2026-06-03 12:24:19.072]: Info: [wayland] Name: HDMI-A-1
[2026-06-03 12:24:19.072]: Info: [wayland] Found monitor: Xiaomi Corporation P27FBA-RAGL
[2026-06-03 12:24:19.074]: Info: [portalgrab] Using first available stream as no matching stream was found for: ''
[2026-06-03 12:24:19.074]: Info: [pipewire] Streaming display '' offset: 0x0 resolution: 1920x1080
[2026-06-03 12:24:19.074]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:19.075]: Info: [wayland] Found interface: zxdg_output_manager_v1(33) version 3
[2026-06-03 12:24:19.075]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(59) version 5
[2026-06-03 12:24:19.075]: Info: [wayland] Found interface: wl_output(65) version 4
[2026-06-03 12:24:19.075]: Info: [wayland] Resolution: 1920x1080
[2026-06-03 12:24:19.075]: Info: [wayland] Offset: 0x0
[2026-06-03 12:24:19.075]: Info: [wayland] Logical size: 1920x1080
[2026-06-03 12:24:19.075]: Info: [wayland] Name: HDMI-A-1
[2026-06-03 12:24:19.075]: Info: [wayland] Found monitor: Xiaomi Corporation P27FBA-RAGL
[2026-06-03 12:24:19.077]: Info: [pipewire] Connected to pipewire version 1.6.6
[2026-06-03 12:24:19.081]: Info: [pipewire] Video format: 12
[2026-06-03 12:24:19.081]: Info: [pipewire] Size: 1920x1080
[2026-06-03 12:24:19.081]: Info: [pipewire] Color primaries: 0
[2026-06-03 12:24:19.081]: Info: [pipewire] Transfer function: 0
[2026-06-03 12:24:19.081]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture)
[2026-06-03 12:24:19.081]: Info: [pipewire] using DMA-BUF buffers
[2026-06-03 12:24:19.081]: Info: [pipewire] Video format: 12
[2026-06-03 12:24:19.082]: Info: [pipewire] Size: 1920x1080
[2026-06-03 12:24:19.082]: Info: [pipewire] Color primaries: 0
[2026-06-03 12:24:19.082]: Info: [pipewire] Transfer function: 0
[2026-06-03 12:24:19.082]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture)
[2026-06-03 12:24:19.082]: Info: [pipewire] using DMA-BUF buffers
[2026-06-03 12:24:19.087]: Info: Creating encoder [h264_vulkan]
[2026-06-03 12:24:19.087]: Info: Color coding: SDR (Rec. 601)
[2026-06-03 12:24:19.087]: Info: Color depth: 8-bit
[2026-06-03 12:24:19.087]: Info: Color range: JPEG
[2026-06-03 12:24:19.101]: Info: Streaming bitrate is 1000000
[2026-06-03 12:24:19.102]: Info: Vulkan encode using GPU: AMD Radeon RX 6600 (RADV NAVI23)
[2026-06-03 12:24:19.107]: Error: Invalid value at rbsp_stop_one_bit: bitstream ended.
[2026-06-03 12:24:19.107]: Error: Failed to read unit 4 (type 12): Invalid data found when processing input.
[2026-06-03 12:24:19.107]: Error: Couldn't read packet: Invalid data found when processing input
[2026-06-03 12:24:19.116]: Info: Creating encoder [hevc_vulkan]
[2026-06-03 12:24:19.116]: Info: Color coding: SDR (Rec. 601)
[2026-06-03 12:24:19.116]: Info: Color depth: 8-bit
[2026-06-03 12:24:19.116]: Info: Color range: JPEG
[2026-06-03 12:24:19.127]: Info: Streaming bitrate is 1000000
[2026-06-03 12:24:19.129]: Info: Vulkan encode using GPU: AMD Radeon RX 6600 (RADV NAVI23)
[2026-06-03 12:24:19.144]: Info: Creating encoder [av1_vulkan]
[2026-06-03 12:24:19.144]: Info: Color coding: SDR (Rec. 601)
[2026-06-03 12:24:19.144]: Info: Color depth: 8-bit
[2026-06-03 12:24:19.144]: Info: Color range: JPEG
[2026-06-03 12:24:19.154]: Info: Streaming bitrate is 1000000
[2026-06-03 12:24:19.154]: Error: [av1_vulkan @ 0x5563df87fb80] Device does not support encoding av1!
[2026-06-03 12:24:19.155]: Error: Could not open codec [av1_vulkan]: Function not implemented
[2026-06-03 12:24:19.157]: Info: [pipewire] Pipewire Error, id:0 seq:200 message: connection error
[2026-06-03 12:24:19.158]: Info: Screencasting with XDG portal
[2026-06-03 12:24:19.158]: Info: [pipewire] Requested frame rate [60/1, approx. 60 fps]
[2026-06-03 12:24:19.158]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:19.169]: Info: [portalgrab] Loaded portal restore token from disk
[2026-06-03 12:24:19.181]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:19.181]: Info: [wayland] Found interface: zxdg_output_manager_v1(33) version 3
[2026-06-03 12:24:19.181]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(59) version 5
[2026-06-03 12:24:19.181]: Info: [wayland] Found interface: wl_output(65) version 4
[2026-06-03 12:24:19.181]: Info: [wayland] Resolution: 1920x1080
[2026-06-03 12:24:19.181]: Info: [wayland] Offset: 0x0
[2026-06-03 12:24:19.181]: Info: [wayland] Logical size: 1920x1080
[2026-06-03 12:24:19.181]: Info: [wayland] Name: HDMI-A-1
[2026-06-03 12:24:19.181]: Info: [wayland] Found monitor: Xiaomi Corporation P27FBA-RAGL
[2026-06-03 12:24:19.182]: Info: [portalgrab] Using first available stream as no matching stream was found for: ''
[2026-06-03 12:24:19.182]: Info: [pipewire] Streaming display '' offset: 0x0 resolution: 1920x1080
[2026-06-03 12:24:19.182]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:19.182]: Info: [wayland] Found interface: zxdg_output_manager_v1(33) version 3
[2026-06-03 12:24:19.182]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(59) version 5
[2026-06-03 12:24:19.182]: Info: [wayland] Found interface: wl_output(65) version 4
[2026-06-03 12:24:19.182]: Info: [wayland] Resolution: 1920x1080
[2026-06-03 12:24:19.182]: Info: [wayland] Offset: 0x0
[2026-06-03 12:24:19.182]: Info: [wayland] Logical size: 1920x1080
[2026-06-03 12:24:19.182]: Info: [wayland] Name: HDMI-A-1
[2026-06-03 12:24:19.182]: Info: [wayland] Found monitor: Xiaomi Corporation P27FBA-RAGL
[2026-06-03 12:24:19.184]: Info: [pipewire] Connected to pipewire version 1.6.6
[2026-06-03 12:24:19.189]: Info: [pipewire] Video format: 12
[2026-06-03 12:24:19.189]: Info: [pipewire] Size: 1920x1080
[2026-06-03 12:24:19.189]: Info: [pipewire] Color primaries: 0
[2026-06-03 12:24:19.189]: Info: [pipewire] Transfer function: 0
[2026-06-03 12:24:19.189]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture)
[2026-06-03 12:24:19.189]: Info: [pipewire] using DMA-BUF buffers
[2026-06-03 12:24:19.189]: Info: [pipewire] Video format: 12
[2026-06-03 12:24:19.189]: Info: [pipewire] Size: 1920x1080
[2026-06-03 12:24:19.189]: Info: [pipewire] Color primaries: 0
[2026-06-03 12:24:19.189]: Info: [pipewire] Transfer function: 0
[2026-06-03 12:24:19.189]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture)
[2026-06-03 12:24:19.189]: Info: [pipewire] using DMA-BUF buffers
[2026-06-03 12:24:19.194]: Info: Creating encoder [hevc_vulkan]
[2026-06-03 12:24:19.194]: Info: Color coding: SDR (Rec. 709)
[2026-06-03 12:24:19.194]: Info: Color depth: 10-bit
[2026-06-03 12:24:19.194]: Info: Color range: JPEG
[2026-06-03 12:24:19.205]: Info: Streaming bitrate is 1000000
[2026-06-03 12:24:19.207]: Info: Vulkan encode using GPU: AMD Radeon RX 6600 (RADV NAVI23)
[2026-06-03 12:24:19.226]: Warning: vulkan: h264 missing sps->vui parameters
[2026-06-03 12:24:19.230]: Info: 
[2026-06-03 12:24:19.230]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2026-06-03 12:24:19.230]: Info: 
[2026-06-03 12:24:19.230]: Info: Found H.264 encoder: h264_vulkan [vulkan]
[2026-06-03 12:24:19.230]: Info: Found HEVC encoder: hevc_vulkan [vulkan]
[2026-06-03 12:24:19.231]: Info: Starting system tray
[2026-06-03 12:24:19.232]: Info: Adding avahi service inka102
[2026-06-03 12:24:19.234]: Info: Configuration UI available at [https://localhost:47990]
[2026-06-03 12:24:19.282]: Info: System tray created
[2026-06-03 12:24:19.282]: Info: Starting main loop
[2026-06-03 12:24:20.121]: Info: Avahi service inka102 successfully established.
[2026-06-03 12:24:22.999]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2026-06-03 12:24:22.999]: Info: Trying encoder [nvenc]
[2026-06-03 12:24:22.999]: Info: Screencasting with XDG portal
[2026-06-03 12:24:22.999]: Info: [pipewire] Requested frame rate [60/1, approx. 60 fps]
[2026-06-03 12:24:22.999]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:23.010]: Info: [portalgrab] Loaded portal restore token from disk
[2026-06-03 12:24:23.025]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:23.025]: Info: [wayland] Found interface: zxdg_output_manager_v1(33) version 3
[2026-06-03 12:24:23.025]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(59) version 5
[2026-06-03 12:24:23.025]: Info: [wayland] Found interface: wl_output(65) version 4
[2026-06-03 12:24:23.025]: Info: [wayland] Resolution: 1920x1080
[2026-06-03 12:24:23.025]: Info: [wayland] Offset: 0x0
[2026-06-03 12:24:23.025]: Info: [wayland] Logical size: 1920x1080
[2026-06-03 12:24:23.025]: Info: [wayland] Name: HDMI-A-1
[2026-06-03 12:24:23.025]: Info: [wayland] Found monitor: Xiaomi Corporation P27FBA-RAGL
[2026-06-03 12:24:23.027]: Info: [portalgrab] Using first available stream as no matching stream was found for: ''
[2026-06-03 12:24:23.027]: Info: [pipewire] Streaming display '' offset: 0x0 resolution: 1920x1080
[2026-06-03 12:24:23.027]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:23.027]: Info: [wayland] Found interface: zxdg_output_manager_v1(33) version 3
[2026-06-03 12:24:23.027]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(59) version 5
[2026-06-03 12:24:23.027]: Info: [wayland] Found interface: wl_output(65) version 4
[2026-06-03 12:24:23.027]: Info: [wayland] Resolution: 1920x1080
[2026-06-03 12:24:23.027]: Info: [wayland] Offset: 0x0
[2026-06-03 12:24:23.027]: Info: [wayland] Logical size: 1920x1080
[2026-06-03 12:24:23.027]: Info: [wayland] Name: HDMI-A-1
[2026-06-03 12:24:23.027]: Info: [wayland] Found monitor: Xiaomi Corporation P27FBA-RAGL
[2026-06-03 12:24:23.029]: Info: [pipewire] Connected to pipewire version 1.6.6
[2026-06-03 12:24:23.033]: Info: [pipewire] Video format: 12
[2026-06-03 12:24:23.033]: Info: [pipewire] Size: 1920x1080
[2026-06-03 12:24:23.033]: Info: [pipewire] Color primaries: 0
[2026-06-03 12:24:23.034]: Info: [pipewire] Transfer function: 0
[2026-06-03 12:24:23.034]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture)
[2026-06-03 12:24:23.034]: Info: [pipewire] using memory buffers
[2026-06-03 12:24:23.039]: Info: Creating encoder [h264_nvenc]
[2026-06-03 12:24:23.039]: Info: Color coding: SDR (Rec. 601)
[2026-06-03 12:24:23.039]: Info: Color depth: 8-bit
[2026-06-03 12:24:23.039]: Info: Color range: JPEG
[2026-06-03 12:24:23.039]: Error: [CUDA @ 0x7fa0b01af580] Cannot load libcuda.so.1
[2026-06-03 12:24:23.039]: Error: [CUDA @ 0x7fa0b01af580] Could not dynamically load CUDA
[2026-06-03 12:24:23.039]: Error: Failed to create a CUDA device: Operacja niedozwolona
[2026-06-03 12:24:23.039]: Info: Encoder [nvenc] failed
[2026-06-03 12:24:23.046]: Info: Trying encoder [vulkan]
[2026-06-03 12:24:23.046]: Info: Screencasting with XDG portal
[2026-06-03 12:24:23.046]: Info: [pipewire] Requested frame rate [60/1, approx. 60 fps]
[2026-06-03 12:24:23.046]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:23.056]: Info: [portalgrab] Loaded portal restore token from disk
[2026-06-03 12:24:23.069]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:23.069]: Info: [wayland] Found interface: zxdg_output_manager_v1(33) version 3
[2026-06-03 12:24:23.069]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(59) version 5
[2026-06-03 12:24:23.069]: Info: [wayland] Found interface: wl_output(65) version 4
[2026-06-03 12:24:23.069]: Info: [wayland] Resolution: 1920x1080
[2026-06-03 12:24:23.069]: Info: [wayland] Offset: 0x0
[2026-06-03 12:24:23.069]: Info: [wayland] Logical size: 1920x1080
[2026-06-03 12:24:23.069]: Info: [wayland] Name: HDMI-A-1
[2026-06-03 12:24:23.070]: Info: [wayland] Found monitor: Xiaomi Corporation P27FBA-RAGL
[2026-06-03 12:24:23.071]: Info: [portalgrab] Using first available stream as no matching stream was found for: ''
[2026-06-03 12:24:23.071]: Info: [pipewire] Streaming display '' offset: 0x0 resolution: 1920x1080
[2026-06-03 12:24:23.071]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:23.071]: Info: [wayland] Found interface: zxdg_output_manager_v1(33) version 3
[2026-06-03 12:24:23.071]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(59) version 5
[2026-06-03 12:24:23.071]: Info: [wayland] Found interface: wl_output(65) version 4
[2026-06-03 12:24:23.071]: Info: [wayland] Resolution: 1920x1080
[2026-06-03 12:24:23.071]: Info: [wayland] Offset: 0x0
[2026-06-03 12:24:23.071]: Info: [wayland] Logical size: 1920x1080
[2026-06-03 12:24:23.071]: Info: [wayland] Name: HDMI-A-1
[2026-06-03 12:24:23.071]: Info: [wayland] Found monitor: Xiaomi Corporation P27FBA-RAGL
[2026-06-03 12:24:23.073]: Info: [pipewire] Connected to pipewire version 1.6.6
[2026-06-03 12:24:23.076]: Info: [pipewire] Video format: 12
[2026-06-03 12:24:23.077]: Info: [pipewire] Size: 1920x1080
[2026-06-03 12:24:23.077]: Info: [pipewire] Color primaries: 0
[2026-06-03 12:24:23.077]: Info: [pipewire] Transfer function: 0
[2026-06-03 12:24:23.077]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture)
[2026-06-03 12:24:23.077]: Info: [pipewire] using DMA-BUF buffers
[2026-06-03 12:24:23.077]: Info: [pipewire] Video format: 12
[2026-06-03 12:24:23.077]: Info: [pipewire] Size: 1920x1080
[2026-06-03 12:24:23.077]: Info: [pipewire] Color primaries: 0
[2026-06-03 12:24:23.077]: Info: [pipewire] Transfer function: 0
[2026-06-03 12:24:23.077]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture)
[2026-06-03 12:24:23.077]: Info: [pipewire] using DMA-BUF buffers
[2026-06-03 12:24:23.082]: Info: Creating encoder [h264_vulkan]
[2026-06-03 12:24:23.082]: Info: Color coding: SDR (Rec. 601)
[2026-06-03 12:24:23.082]: Info: Color depth: 8-bit
[2026-06-03 12:24:23.082]: Info: Color range: JPEG
[2026-06-03 12:24:23.093]: Info: Streaming bitrate is 1000000
[2026-06-03 12:24:23.093]: Info: Vulkan encode using GPU: AMD Radeon RX 6600 (RADV NAVI23)
[2026-06-03 12:24:23.102]: Error: Invalid value at rbsp_stop_one_bit: bitstream ended.
[2026-06-03 12:24:23.102]: Error: Failed to read unit 4 (type 12): Invalid data found when processing input.
[2026-06-03 12:24:23.102]: Error: Couldn't read packet: Invalid data found when processing input
[2026-06-03 12:24:23.111]: Info: Creating encoder [hevc_vulkan]
[2026-06-03 12:24:23.111]: Info: Color coding: SDR (Rec. 601)
[2026-06-03 12:24:23.111]: Info: Color depth: 8-bit
[2026-06-03 12:24:23.111]: Info: Color range: JPEG
[2026-06-03 12:24:23.122]: Info: Streaming bitrate is 1000000
[2026-06-03 12:24:23.124]: Info: Vulkan encode using GPU: AMD Radeon RX 6600 (RADV NAVI23)
[2026-06-03 12:24:23.139]: Info: Creating encoder [av1_vulkan]
[2026-06-03 12:24:23.139]: Info: Color coding: SDR (Rec. 601)
[2026-06-03 12:24:23.139]: Info: Color depth: 8-bit
[2026-06-03 12:24:23.139]: Info: Color range: JPEG
[2026-06-03 12:24:23.148]: Info: Streaming bitrate is 1000000
[2026-06-03 12:24:23.148]: Error: [av1_vulkan @ 0x7fa0b005a640] Device does not support encoding av1!
[2026-06-03 12:24:23.150]: Error: Could not open codec [av1_vulkan]: Niezaimplementowana funkcja
[2026-06-03 12:24:23.153]: Info: Screencasting with XDG portal
[2026-06-03 12:24:23.153]: Info: [pipewire] Requested frame rate [60/1, approx. 60 fps]
[2026-06-03 12:24:23.153]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:23.163]: Info: [portalgrab] Loaded portal restore token from disk
[2026-06-03 12:24:23.176]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:23.176]: Info: [wayland] Found interface: zxdg_output_manager_v1(33) version 3
[2026-06-03 12:24:23.177]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(59) version 5
[2026-06-03 12:24:23.177]: Info: [wayland] Found interface: wl_output(65) version 4
[2026-06-03 12:24:23.177]: Info: [wayland] Resolution: 1920x1080
[2026-06-03 12:24:23.177]: Info: [wayland] Offset: 0x0
[2026-06-03 12:24:23.177]: Info: [wayland] Logical size: 1920x1080
[2026-06-03 12:24:23.177]: Info: [wayland] Name: HDMI-A-1
[2026-06-03 12:24:23.177]: Info: [wayland] Found monitor: Xiaomi Corporation P27FBA-RAGL
[2026-06-03 12:24:23.178]: Info: [portalgrab] Using first available stream as no matching stream was found for: ''
[2026-06-03 12:24:23.178]: Info: [pipewire] Streaming display '' offset: 0x0 resolution: 1920x1080
[2026-06-03 12:24:23.178]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:23.178]: Info: [wayland] Found interface: zxdg_output_manager_v1(33) version 3
[2026-06-03 12:24:23.178]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(59) version 5
[2026-06-03 12:24:23.178]: Info: [wayland] Found interface: wl_output(65) version 4
[2026-06-03 12:24:23.178]: Info: [wayland] Resolution: 1920x1080
[2026-06-03 12:24:23.178]: Info: [wayland] Offset: 0x0
[2026-06-03 12:24:23.178]: Info: [wayland] Logical size: 1920x1080
[2026-06-03 12:24:23.178]: Info: [wayland] Name: HDMI-A-1
[2026-06-03 12:24:23.178]: Info: [wayland] Found monitor: Xiaomi Corporation P27FBA-RAGL
[2026-06-03 12:24:23.180]: Info: [pipewire] Connected to pipewire version 1.6.6
[2026-06-03 12:24:23.184]: Info: [pipewire] Video format: 12
[2026-06-03 12:24:23.184]: Info: [pipewire] Size: 1920x1080
[2026-06-03 12:24:23.184]: Info: [pipewire] Color primaries: 0
[2026-06-03 12:24:23.184]: Info: [pipewire] Transfer function: 0
[2026-06-03 12:24:23.184]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture)
[2026-06-03 12:24:23.184]: Info: [pipewire] using DMA-BUF buffers
[2026-06-03 12:24:23.185]: Info: [pipewire] Video format: 12
[2026-06-03 12:24:23.185]: Info: [pipewire] Size: 1920x1080
[2026-06-03 12:24:23.185]: Info: [pipewire] Color primaries: 0
[2026-06-03 12:24:23.185]: Info: [pipewire] Transfer function: 0
[2026-06-03 12:24:23.185]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture)
[2026-06-03 12:24:23.185]: Info: [pipewire] using DMA-BUF buffers
[2026-06-03 12:24:23.190]: Info: Creating encoder [hevc_vulkan]
[2026-06-03 12:24:23.190]: Info: Color coding: SDR (Rec. 709)
[2026-06-03 12:24:23.190]: Info: Color depth: 10-bit
[2026-06-03 12:24:23.190]: Info: Color range: JPEG
[2026-06-03 12:24:23.200]: Info: Streaming bitrate is 1000000
[2026-06-03 12:24:23.202]: Info: Vulkan encode using GPU: AMD Radeon RX 6600 (RADV NAVI23)
[2026-06-03 12:24:23.221]: Warning: vulkan: h264 missing sps->vui parameters
[2026-06-03 12:24:23.224]: Info: 
[2026-06-03 12:24:23.224]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2026-06-03 12:24:23.224]: Info: 
[2026-06-03 12:24:23.224]: Info: Found H.264 encoder: h264_vulkan [vulkan]
[2026-06-03 12:24:23.224]: Info: Found HEVC encoder: hevc_vulkan [vulkan]
[2026-06-03 12:24:23.224]: Info: Executing [Desktop]
[2026-06-03 12:24:23.491]: Info: New streaming session started [active sessions: 1]
[2026-06-03 12:24:23.578]: Info: CLIENT CONNECTED
[2026-06-03 12:24:23.578]: Info: [portalgrab] Loaded portal restore token from disk
[2026-06-03 12:24:23.592]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:23.592]: Info: [wayland] Found interface: zxdg_output_manager_v1(33) version 3
[2026-06-03 12:24:23.593]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(59) version 5
[2026-06-03 12:24:23.593]: Info: [wayland] Found interface: wl_output(65) version 4
[2026-06-03 12:24:23.593]: Info: [wayland] Resolution: 1920x1080
[2026-06-03 12:24:23.593]: Info: [wayland] Offset: 0x0
[2026-06-03 12:24:23.593]: Info: [wayland] Logical size: 1920x1080
[2026-06-03 12:24:23.593]: Info: [wayland] Name: HDMI-A-1
[2026-06-03 12:24:23.593]: Info: [wayland] Found monitor: Xiaomi Corporation P27FBA-RAGL
[2026-06-03 12:24:23.594]: Info: [portalgrab] Found stream for display id/name: 'HDMI-A-1' position: 0x0 resolution: 1920x1080
[2026-06-03 12:24:23.596]: Info: Screencasting with XDG portal
[2026-06-03 12:24:23.596]: Info: [pipewire] Requested frame rate [100fps]
[2026-06-03 12:24:23.596]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:23.608]: Info: [portalgrab] Loaded portal restore token from disk
[2026-06-03 12:24:23.621]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:23.621]: Info: [wayland] Found interface: zxdg_output_manager_v1(33) version 3
[2026-06-03 12:24:23.621]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(59) version 5
[2026-06-03 12:24:23.621]: Info: [wayland] Found interface: wl_output(65) version 4
[2026-06-03 12:24:23.621]: Info: [wayland] Resolution: 1920x1080
[2026-06-03 12:24:23.621]: Info: [wayland] Offset: 0x0
[2026-06-03 12:24:23.621]: Info: [wayland] Logical size: 1920x1080
[2026-06-03 12:24:23.621]: Info: [wayland] Name: HDMI-A-1
[2026-06-03 12:24:23.621]: Info: [wayland] Found monitor: Xiaomi Corporation P27FBA-RAGL
[2026-06-03 12:24:23.622]: Info: [pipewire] Streaming display 'HDMI-A-1' offset: 0x0 resolution: 1920x1080
[2026-06-03 12:24:23.623]: Info: [wayland] Found display [wayland-0]
[2026-06-03 12:24:23.623]: Info: [wayland] Found interface: zxdg_output_manager_v1(33) version 3
[2026-06-03 12:24:23.623]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(59) version 5
[2026-06-03 12:24:23.623]: Info: [wayland] Found interface: wl_output(65) version 4
[2026-06-03 12:24:23.623]: Info: [wayland] Resolution: 1920x1080
[2026-06-03 12:24:23.623]: Info: [wayland] Offset: 0x0
[2026-06-03 12:24:23.623]: Info: [wayland] Logical size: 1920x1080
[2026-06-03 12:24:23.623]: Info: [wayland] Name: HDMI-A-1
[2026-06-03 12:24:23.623]: Info: [wayland] Found monitor: Xiaomi Corporation P27FBA-RAGL
[2026-06-03 12:24:23.625]: Info: [pipewire] Connected to pipewire version 1.6.6
[2026-06-03 12:24:23.630]: Info: [pipewire] Video format: 12
[2026-06-03 12:24:23.630]: Info: [pipewire] Size: 1920x1080
[2026-06-03 12:24:23.630]: Info: [pipewire] Color primaries: 0
[2026-06-03 12:24:23.630]: Info: [pipewire] Transfer function: 0
[2026-06-03 12:24:23.630]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture)
[2026-06-03 12:24:23.630]: Info: [pipewire] using DMA-BUF buffers
[2026-06-03 12:24:23.630]: Info: [pipewire] Video format: 12
[2026-06-03 12:24:23.630]: Info: [pipewire] Size: 1920x1080
[2026-06-03 12:24:23.630]: Info: [pipewire] Color primaries: 0
[2026-06-03 12:24:23.630]: Info: [pipewire] Transfer function: 0
[2026-06-03 12:24:23.630]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture)
[2026-06-03 12:24:23.630]: Info: [pipewire] using DMA-BUF buffers
[2026-06-03 12:24:23.634]: Info: Creating encoder [hevc_vulkan]
[2026-06-03 12:24:23.634]: Info: Color coding: SDR (Rec. 601)
[2026-06-03 12:24:23.634]: Info: Color depth: 8-bit
[2026-06-03 12:24:23.634]: Info: Color range: MPEG
[2026-06-03 12:24:23.647]: Info: Streaming bitrate is 19788000
[2026-06-03 12:24:23.649]: Info: Vulkan encode using GPU: AMD Radeon RX 6600 (RADV NAVI23)
[2026-06-03 12:24:23.649]: Info: Minimum FPS target set to ~50fps (20ms)
[2026-06-03 12:24:23.897]: Info: Setting default sink to: [sink-sunshine-stereo]
[2026-06-03 12:24:23.898]: Info: Found default monitor by name: sink-sunshine-stereo.monitor
[2026-06-03 12:24:23.933]: Info: Opus initialized: 48 kHz, 2 channels, 512 kbps (total), LOWDELAY
Online logs

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the freeze with the portalgrab and kwingrab capture methods, then compare it with KMS, which does not show the problem. Inspect the PipeWire capture paths and the Vulkan encoder behavior around the reported 43–44 FPS stall, using the supplied logs and AMD/Mesa environment. Done means portal and KWin screencasting remain responsive without freezing while input and audio continue.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.