Skip to content

linux/vulkan streaming with artifacts #5020

@nrbrd

Description

@nrbrd

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

I'm using the latest pre-release from Sunshine on debian trixie + sway (wlroots capture method).

The setup has two displays: a real 4k monitor + a virutal 2k monitor, which I use to stream on some devices.

Everything works well via vaapi, but when using the new vulkan encoder, I get some weird artifacts, as if the same region of the screen was being captured multiple times (see the screenshot)

I get the same result when streaming the virtual and real monitor.

Image

Expected Behavior

it should stream normally

Additional Context

No response

Host Operating System

Linux

Operating System Version

debian

Architecture

amd64/x86_64

Package

Linux - deb

GPU Type

AMD

GPU Model

9060xt

GPU Driver/Mesa Version

vainfo: Driver version: Mesa Gallium driver 25.2.6-1~bpo13+1 for AMD Radeon Graphics (radeonsi, gfx1200, ACO, DRM 3.64, 6.19.10+deb13-amd64)

Capture Method

wlroots (Linux)

Apps

Log output

[2026-04-17 15:02:31.172]: Info: Sunshine version: 2026.415.34134 commit: a16c070a8feb509a55a434393690cf76447e9423
[2026-04-17 15:02:31.172]: Info: Package Publisher: LizardByte
[2026-04-17 15:02:31.172]: Info: Publisher Website: https://app.lizardbyte.dev
[2026-04-17 15:02:31.172]: Info: Get support: https://app.lizardbyte.dev/support
[2026-04-17 15:02:31.172]: Info: config: 'csrf_allowed_origins' = [redacted]
[2026-04-17 15:02:31.172]: Info: config: 'encoder' = vulkan
[2026-04-17 15:02:31.172]: Info: config: 'fec_percentage' = 20
[2026-04-17 15:02:31.172]: Info: config: 'notify_pre_releases' = enabled
[2026-04-17 15:02:31.172]: Info: config: 'vk_rc_mode' = 4
[2026-04-17 15:02:31.172]: Info: config: 'vk_tune' = 2
[2026-04-17 15:02:31.173]: Error: Couldn't load cuda: -1
[2026-04-17 15:02:31.173]: Info: [wayland] Found display [wayland-1]
[2026-04-17 15:02:31.173]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(2) version 4
[2026-04-17 15:02:31.173]: Info: [wayland] Found interface: zxdg_output_manager_v1(7) version 3
[2026-04-17 15:02:31.173]: Info: [wayland] Found interface: zwlr_screencopy_manager_v1(29) version 3
[2026-04-17 15:02:31.173]: Info: [wayland] Found interface: wl_output(95) version 4
[2026-04-17 15:02:31.173]: Info: [wayland] Resolution: 3840x2160
[2026-04-17 15:02:31.173]: Info: [wayland] Name: HDMI-A-2
[2026-04-17 15:02:31.173]: Info: [wayland] Found monitor: Samsung Electric Company SAMSUNG 0x01000E00 (HDMI-A-2)
[2026-04-17 15:02:31.173]: Info: [wayland] Offset: 0x0
[2026-04-17 15:02:31.173]: Info: [wayland] Logical size: 3840x2160
[2026-04-17 15:02:31.173]: Info: [wlgrab] -------- Start of Wayland monitor list --------
[2026-04-17 15:02:31.173]: Info: [wlgrab] Monitor 0 is HDMI-A-2: Samsung Electric Company SAMSUNG 0x01000E00 (HDMI-A-2)
[2026-04-17 15:02:31.173]: Info: [wlgrab] --------- End of Wayland monitor list ---------
[2026-04-17 15:02:31.479]: Info: Trying encoder [vulkan]
[2026-04-17 15:02:31.479]: Info: Screencasting with Wayland's protocol
[2026-04-17 15:02:31.479]: Info: [wlgrab] Requested frame rate [60/1, approx. 60 fps]
[2026-04-17 15:02:31.479]: Info: [wayland] Found display [wayland-1]
[2026-04-17 15:02:31.479]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(2) version 4
[2026-04-17 15:02:31.479]: Info: [wayland] Found interface: zxdg_output_manager_v1(7) version 3
[2026-04-17 15:02:31.479]: Info: [wayland] Found interface: zwlr_screencopy_manager_v1(29) version 3
[2026-04-17 15:02:31.479]: Info: [wayland] Found interface: wl_output(95) version 4
[2026-04-17 15:02:31.479]: Info: [wayland] Resolution: 3840x2160
[2026-04-17 15:02:31.479]: Info: [wayland] Name: HDMI-A-2
[2026-04-17 15:02:31.479]: Info: [wayland] Found monitor: Samsung Electric Company SAMSUNG 0x01000E00 (HDMI-A-2)
[2026-04-17 15:02:31.479]: Info: [wayland] Offset: 0x0
[2026-04-17 15:02:31.479]: Info: [wayland] Logical size: 3840x2160
[2026-04-17 15:02:31.479]: Info: [wlgrab] Selected monitor [Samsung Electric Company SAMSUNG 0x01000E00 (HDMI-A-2)] for streaming
[2026-04-17 15:02:31.479]: Info: Creating encoder [h264_vulkan]
[2026-04-17 15:02:31.479]: Info: Color coding: SDR (Rec. 601)
[2026-04-17 15:02:31.479]: Info: Color depth: 8-bit
[2026-04-17 15:02:31.479]: Info: Color range: JPEG
[2026-04-17 15:02:31.500]: Info: Streaming bitrate is 1000000
[2026-04-17 15:02:31.501]: Info: Vulkan encode using GPU: AMD Radeon Graphics (RADV GFX1200)
[2026-04-17 15:02:31.505]: Info: Creating encoder [hevc_vulkan]
[2026-04-17 15:02:31.505]: Info: Color coding: SDR (Rec. 601)
[2026-04-17 15:02:31.505]: Info: Color depth: 8-bit
[2026-04-17 15:02:31.505]: Info: Color range: JPEG
[2026-04-17 15:02:31.523]: Info: Streaming bitrate is 1000000
[2026-04-17 15:02:31.524]: Info: Vulkan encode using GPU: AMD Radeon Graphics (RADV GFX1200)
[2026-04-17 15:02:31.532]: Info: Creating encoder [av1_vulkan]
[2026-04-17 15:02:31.532]: Info: Color coding: SDR (Rec. 601)
[2026-04-17 15:02:31.532]: Info: Color depth: 8-bit
[2026-04-17 15:02:31.532]: Info: Color range: JPEG
[2026-04-17 15:02:31.549]: Info: Streaming bitrate is 1000000
[2026-04-17 15:02:31.549]: Info: Vulkan encode using GPU: AMD Radeon Graphics (RADV GFX1200)
[2026-04-17 15:02:31.556]: Info: Screencasting with Wayland's protocol
[2026-04-17 15:02:31.556]: Info: [wlgrab] Requested frame rate [60/1, approx. 60 fps]
[2026-04-17 15:02:31.556]: Info: [wayland] Found display [wayland-1]
[2026-04-17 15:02:31.556]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(2) version 4
[2026-04-17 15:02:31.556]: Info: [wayland] Found interface: zxdg_output_manager_v1(7) version 3
[2026-04-17 15:02:31.556]: Info: [wayland] Found interface: zwlr_screencopy_manager_v1(29) version 3
[2026-04-17 15:02:31.556]: Info: [wayland] Found interface: wl_output(95) version 4
[2026-04-17 15:02:31.556]: Info: [wayland] Resolution: 3840x2160
[2026-04-17 15:02:31.556]: Info: [wayland] Name: HDMI-A-2
[2026-04-17 15:02:31.556]: Info: [wayland] Found monitor: Samsung Electric Company SAMSUNG 0x01000E00 (HDMI-A-2)
[2026-04-17 15:02:31.556]: Info: [wayland] Offset: 0x0
[2026-04-17 15:02:31.556]: Info: [wayland] Logical size: 3840x2160
[2026-04-17 15:02:31.556]: Info: [wlgrab] Selected monitor [Samsung Electric Company SAMSUNG 0x01000E00 (HDMI-A-2)] for streaming
[2026-04-17 15:02:31.556]: Info: Creating encoder [hevc_vulkan]
[2026-04-17 15:02:31.556]: Info: Color coding: SDR (Rec. 709)
[2026-04-17 15:02:31.556]: Info: Color depth: 10-bit
[2026-04-17 15:02:31.556]: Info: Color range: JPEG
[2026-04-17 15:02:31.573]: Info: Streaming bitrate is 1000000
[2026-04-17 15:02:31.575]: Info: Vulkan encode using GPU: AMD Radeon Graphics (RADV GFX1200)
[2026-04-17 15:02:31.580]: Info: Creating encoder [av1_vulkan]
[2026-04-17 15:02:31.580]: Info: Color coding: SDR (Rec. 709)
[2026-04-17 15:02:31.580]: Info: Color depth: 10-bit
[2026-04-17 15:02:31.580]: Info: Color range: JPEG
[2026-04-17 15:02:31.597]: Info: Streaming bitrate is 1000000
[2026-04-17 15:02:31.597]: Info: Vulkan encode using GPU: AMD Radeon Graphics (RADV GFX1200)
[2026-04-17 15:02:31.602]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2026-04-17 15:02:31.602]: Info: 
[2026-04-17 15:02:31.602]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2026-04-17 15:02:31.602]: Info: 
[2026-04-17 15:02:31.602]: Info: Found H.264 encoder: h264_vulkan [vulkan]
[2026-04-17 15:02:31.602]: Info: Found HEVC encoder: hevc_vulkan [vulkan]
[2026-04-17 15:02:31.602]: Info: Found AV1 encoder: av1_vulkan [vulkan]
[2026-04-17 15:02:31.602]: Info: Starting system tray
[2026-04-17 15:02:31.603]: Error: Failed to create client: Daemon not running
[2026-04-17 15:02:31.603]: Info: Configuration UI available at [https://localhost:47990]
[2026-04-17 15:02:31.618]: Info: System tray created
[2026-04-17 15:02:31.618]: Info: Starting main loop
[2026-04-17 15:02:41.586]: Info: Trying encoder [vulkan]
[2026-04-17 15:02:41.586]: Info: Screencasting with Wayland's protocol
[2026-04-17 15:02:41.586]: Info: [wlgrab] Requested frame rate [60/1, approx. 60 fps]
[2026-04-17 15:02:41.586]: Info: [wayland] Found display [wayland-1]
[2026-04-17 15:02:41.586]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(2) version 4
[2026-04-17 15:02:41.586]: Info: [wayland] Found interface: zxdg_output_manager_v1(7) version 3
[2026-04-17 15:02:41.586]: Info: [wayland] Found interface: zwlr_screencopy_manager_v1(29) version 3
[2026-04-17 15:02:41.586]: Info: [wayland] Found interface: wl_output(95) version 4
[2026-04-17 15:02:41.586]: Info: [wayland] Resolution: 3840x2160
[2026-04-17 15:02:41.586]: Info: [wayland] Name: HDMI-A-2
[2026-04-17 15:02:41.586]: Info: [wayland] Found monitor: Samsung Electric Company SAMSUNG 0x01000E00 (HDMI-A-2)
[2026-04-17 15:02:41.586]: Info: [wayland] Offset: 0x0
[2026-04-17 15:02:41.586]: Info: [wayland] Logical size: 3840x2160
[2026-04-17 15:02:41.586]: Info: [wlgrab] Selected monitor [Samsung Electric Company SAMSUNG 0x01000E00 (HDMI-A-2)] for streaming
[2026-04-17 15:02:41.586]: Info: Creating encoder [h264_vulkan]
[2026-04-17 15:02:41.586]: Info: Color coding: SDR (Rec. 601)
[2026-04-17 15:02:41.586]: Info: Color depth: 8-bit
[2026-04-17 15:02:41.586]: Info: Color range: JPEG
[2026-04-17 15:02:41.609]: Info: Streaming bitrate is 1000000
[2026-04-17 15:02:41.609]: Info: Vulkan encode using GPU: AMD Radeon Graphics (RADV GFX1200)
[2026-04-17 15:02:41.617]: Info: Creating encoder [hevc_vulkan]
[2026-04-17 15:02:41.617]: Info: Color coding: SDR (Rec. 601)
[2026-04-17 15:02:41.617]: Info: Color depth: 8-bit
[2026-04-17 15:02:41.617]: Info: Color range: JPEG
[2026-04-17 15:02:41.638]: Info: Streaming bitrate is 1000000
[2026-04-17 15:02:41.639]: Info: Vulkan encode using GPU: AMD Radeon Graphics (RADV GFX1200)
[2026-04-17 15:02:41.647]: Info: Creating encoder [av1_vulkan]
[2026-04-17 15:02:41.647]: Info: Color coding: SDR (Rec. 601)
[2026-04-17 15:02:41.647]: Info: Color depth: 8-bit
[2026-04-17 15:02:41.647]: Info: Color range: JPEG
[2026-04-17 15:02:41.669]: Info: Streaming bitrate is 1000000
[2026-04-17 15:02:41.669]: Info: Vulkan encode using GPU: AMD Radeon Graphics (RADV GFX1200)
[2026-04-17 15:02:41.677]: Info: Screencasting with Wayland's protocol
[2026-04-17 15:02:41.677]: Info: [wlgrab] Requested frame rate [60/1, approx. 60 fps]
[2026-04-17 15:02:41.677]: Info: [wayland] Found display [wayland-1]
[2026-04-17 15:02:41.677]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(2) version 4
[2026-04-17 15:02:41.677]: Info: [wayland] Found interface: zxdg_output_manager_v1(7) version 3
[2026-04-17 15:02:41.677]: Info: [wayland] Found interface: zwlr_screencopy_manager_v1(29) version 3
[2026-04-17 15:02:41.677]: Info: [wayland] Found interface: wl_output(95) version 4
[2026-04-17 15:02:41.677]: Info: [wayland] Resolution: 3840x2160
[2026-04-17 15:02:41.677]: Info: [wayland] Name: HDMI-A-2
[2026-04-17 15:02:41.677]: Info: [wayland] Found monitor: Samsung Electric Company SAMSUNG 0x01000E00 (HDMI-A-2)
[2026-04-17 15:02:41.677]: Info: [wayland] Offset: 0x0
[2026-04-17 15:02:41.677]: Info: [wayland] Logical size: 3840x2160
[2026-04-17 15:02:41.677]: Info: [wlgrab] Selected monitor [Samsung Electric Company SAMSUNG 0x01000E00 (HDMI-A-2)] for streaming
[2026-04-17 15:02:41.677]: Info: Creating encoder [hevc_vulkan]
[2026-04-17 15:02:41.677]: Info: Color coding: SDR (Rec. 709)
[2026-04-17 15:02:41.677]: Info: Color depth: 10-bit
[2026-04-17 15:02:41.677]: Info: Color range: JPEG
[2026-04-17 15:02:41.698]: Info: Streaming bitrate is 1000000
[2026-04-17 15:02:41.699]: Info: Vulkan encode using GPU: AMD Radeon Graphics (RADV GFX1200)
[2026-04-17 15:02:41.707]: Info: Creating encoder [av1_vulkan]
[2026-04-17 15:02:41.707]: Info: Color coding: SDR (Rec. 709)
[2026-04-17 15:02:41.707]: Info: Color depth: 10-bit
[2026-04-17 15:02:41.707]: Info: Color range: JPEG
[2026-04-17 15:02:41.729]: Info: Streaming bitrate is 1000000
[2026-04-17 15:02:41.729]: Info: Vulkan encode using GPU: AMD Radeon Graphics (RADV GFX1200)
[2026-04-17 15:02:41.736]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2026-04-17 15:02:41.736]: Info: 
[2026-04-17 15:02:41.736]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2026-04-17 15:02:41.736]: Info: 
[2026-04-17 15:02:41.736]: Info: Found H.264 encoder: h264_vulkan [vulkan]
[2026-04-17 15:02:41.736]: Info: Found HEVC encoder: hevc_vulkan [vulkan]
[2026-04-17 15:02:41.736]: Info: Found AV1 encoder: av1_vulkan [vulkan]
[2026-04-17 15:02:41.736]: Info: Executing Do Cmd: [sh -c "swaymsg output HEADLESS-1 enable; swaymsg output HEADLESS-1 mode ${SUNSHINE_CLIENT_WIDTH}x${SUNSHINE_CLIENT_HEIGHT}@${SUNSHINE_CLIENT_FPS}Hz"]
[2026-04-17 15:02:41.799]: Info: Executing Do Cmd: [swaymsg output HDMI-A-2 disable]
[2026-04-17 15:02:41.919]: Info: Spawning [setsid /usr/games/steam steam://open/bigpicture] in ["/usr/bin"]
[2026-04-17 15:02:41.921]: Info: Executing [Desktop]
[2026-04-17 15:02:41.926]: Info: New streaming session started [active sessions: 1]
[2026-04-17 15:02:42.020]: Info: CLIENT CONNECTED
[2026-04-17 15:02:42.021]: Info: [wayland] Found display [wayland-1]
[2026-04-17 15:02:42.021]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(2) version 4
[2026-04-17 15:02:42.021]: Info: [wayland] Found interface: zxdg_output_manager_v1(7) version 3
[2026-04-17 15:02:42.021]: Info: [wayland] Found interface: zwlr_screencopy_manager_v1(29) version 3
[2026-04-17 15:02:42.021]: Info: [wayland] Found interface: wl_output(96) version 4
[2026-04-17 15:02:42.021]: Info: [wayland] Resolution: 2560x1440
[2026-04-17 15:02:42.021]: Info: [wayland] Name: HEADLESS-1
[2026-04-17 15:02:42.021]: Info: [wayland] Found monitor: Headless output 2
[2026-04-17 15:02:42.021]: Info: [wayland] Offset: 0x0
[2026-04-17 15:02:42.021]: Info: [wayland] Logical size: 2560x1440
[2026-04-17 15:02:42.021]: Info: [wlgrab] -------- Start of Wayland monitor list --------
[2026-04-17 15:02:42.021]: Info: [wlgrab] Monitor 0 is HEADLESS-1: Headless output 2
[2026-04-17 15:02:42.021]: Info: [wlgrab] --------- End of Wayland monitor list ---------
[2026-04-17 15:02:42.021]: Info: Screencasting with Wayland's protocol
[2026-04-17 15:02:42.021]: Info: [wlgrab] Requested frame rate [60fps]
[2026-04-17 15:02:42.021]: Info: [wayland] Found display [wayland-1]
[2026-04-17 15:02:42.021]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(2) version 4
[2026-04-17 15:02:42.021]: Info: [wayland] Found interface: zxdg_output_manager_v1(7) version 3
[2026-04-17 15:02:42.021]: Info: [wayland] Found interface: zwlr_screencopy_manager_v1(29) version 3
[2026-04-17 15:02:42.021]: Info: [wayland] Found interface: wl_output(96) version 4
[2026-04-17 15:02:42.021]: Info: [wayland] Resolution: 2560x1440
[2026-04-17 15:02:42.021]: Info: [wayland] Name: HEADLESS-1
[2026-04-17 15:02:42.021]: Info: [wayland] Found monitor: Headless output 2
[2026-04-17 15:02:42.021]: Info: [wayland] Offset: 0x0
[2026-04-17 15:02:42.021]: Info: [wayland] Logical size: 2560x1440
[2026-04-17 15:02:42.021]: Info: [wlgrab] Selected monitor [Headless output 2] for streaming
[2026-04-17 15:02:42.022]: Info: Creating encoder [av1_vulkan]
[2026-04-17 15:02:42.023]: Info: Color coding: SDR (Rec. 601)
[2026-04-17 15:02:42.023]: Info: Color depth: 8-bit
[2026-04-17 15:02:42.023]: Info: Color range: MPEG
[2026-04-17 15:02:42.045]: Info: Streaming bitrate is 62988000
[2026-04-17 15:02:42.045]: Info: Vulkan encode using GPU: AMD Radeon Graphics (RADV GFX1200)
[2026-04-17 15:02:42.045]: Info: Minimum FPS target set to ~30fps (33.3333ms)
[2026-04-17 15:02:42.432]: Info: Setting default sink to: [sink-sunshine-stereo]
[2026-04-17 15:02:42.433]: Info: Found default monitor by name: sink-sunshine-stereo.monitor
[2026-04-17 15:02:42.448]: Info: Opus initialized: 48 kHz, 2 channels, 512 kbps (total), LOWDELAY

Online logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions