Skip to content

Pink screen with artifacts when using Vulkan AV1 encoder on NVIDIA #5028

@shoulderrr

Description

@shoulderrr

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

A pink glitchy screen appears when using KMS capture and the new Vulkan encoder (AV1 specifically).
Audio is working fine, however the pink noisy screen displays for a few seconds then holds on a single frame. Sunshine doesn't detect any pause or disconnection and audio keeps going. Have previously used the VA-API encoder without issue (besides expected performance hit), still using KMS capture as recommended by the docs.

Quick info:
Arch Linux
5090
KDE Plasma (Wayland)
4k 120FPS target

Screenshot of issue (NeoMoonlight beta, also happens with MoonlightXROS):
Image

Expected Behavior

Normal stream appears like with VA API encoder

Additional Context

First time filing a bug on here, sorry if anything is wrong or weird with this! Double checked a few places to make sure I wasn't missing some dependencey or if NVIDIA isn't supported yet but didn't find anything

Host Operating System

Linux

Operating System Version

Arch (not sure how to convey version here, everything up to date)

Architecture

amd64/x86_64

Package

Linux - LizardByte/pacman-repo

GPU Type

NVIDIA

GPU Model

RTX 5090

GPU Driver/Mesa Version

nvidia-open 595.58.03-3

Capture Method

KMS (Linux)

Apps

Log output

[2026-04-18 22:13:40.582]: Info: Sunshine version: 2026.417.201619 commit: 5ffa66ee52fc4f57c018ae5ae831df3bf7088de5
[2026-04-18 22:13:40.582]: Info: Package Publisher: LizardByte
[2026-04-18 22:13:40.582]: Info: Publisher Website: https://app.lizardbyte.dev
[2026-04-18 22:13:40.582]: Info: Get support: https://app.lizardbyte.dev/support
[2026-04-18 22:13:40.582]: Info: config: 'capture' = kms
[2026-04-18 22:13:40.582]: Info: config: 'controller' = disabled
[2026-04-18 22:13:40.582]: Info: config: 'nvenc_preset' = 1
[2026-04-18 22:13:40.582]: Info: config: 'vk_tune' = 0
[2026-04-18 22:13:40.582]: Info: config: 'encoder' = vulkan
[2026-04-18 22:13:40.582]: Info: config: 'keyboard' = disabled
[2026-04-18 22:13:40.582]: Info: config: 'min_threads' = 4
[2026-04-18 22:13:40.582]: Info: config: 'mouse' = disabled
[2026-04-18 22:13:40.582]: Info: config: 'nvenc_spatial_aq' = enabled
[2026-04-18 22:13:40.582]: Info: config: 'nvenc_vbv_increase' = 400
[2026-04-18 22:13:40.582]: Info: config: 'vk_rc_mode' = 0
[2026-04-18 22:13:40.583]: Info: /dev/dri/card1 -> nvidia-drm
[2026-04-18 22:13:40.583]: Info: /dev/dri/card2 -> amdgpu
[2026-04-18 22:13:40.585]: Info: [wayland] Found display [wayland-0]
[2026-04-18 22:13:40.585]: Info: [wayland] Found display [wayland-0]
[2026-04-18 22:13:40.585]: Info: [wayland] Found interface: zxdg_output_manager_v1(30) version 3
[2026-04-18 22:13:40.585]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(56) version 5
[2026-04-18 22:13:40.585]: Info: [wayland] Found interface: wl_output(63) version 4
[2026-04-18 22:13:40.585]: Info: [wayland] Resolution: 3840x2160
[2026-04-18 22:13:40.585]: Info: [wayland] Offset: 0x0
[2026-04-18 22:13:40.585]: Info: [wayland] Logical size: 2194x1234
[2026-04-18 22:13:40.585]: Info: [wayland] Name: HDMI-A-2
[2026-04-18 22:13:40.585]: Info: [wayland] Found monitor: LG Electronics LG TV SSCR2
[2026-04-18 22:13:40.585]: Info: -------- Start of KMS monitor list --------
[2026-04-18 22:13:40.585]: Warning: Mismatch on expected Resolution compared to actual resolution: 0x0 vs 3840x2160
[2026-04-18 22:13:40.585]: Info: Monitor 0 is HDMI-A-2: LG Electronics LG TV SSCR2
[2026-04-18 22:13:40.585]: Info: --------- End of KMS monitor list ---------
[2026-04-18 22:13:40.725]: Info: Trying encoder [vulkan]
[2026-04-18 22:13:40.725]: Info: Screencasting with KMS
[2026-04-18 22:13:40.725]: Info: /dev/dri/card1 -> nvidia-drm
[2026-04-18 22:13:40.725]: Info: Found monitor for DRM screencasting
[2026-04-18 22:13:40.725]: Info: Found connector ID [128]
[2026-04-18 22:13:40.725]: Info: Found cursor plane [56]
[2026-04-18 22:13:40.725]: Info: Creating encoder [h264_vulkan]
[2026-04-18 22:13:40.725]: Info: Color coding: SDR (Rec. 601)
[2026-04-18 22:13:40.725]: Info: Color depth: 8-bit
[2026-04-18 22:13:40.725]: Info: Color range: JPEG
[2026-04-18 22:13:41.078]: Info: Streaming bitrate is 1000000
[2026-04-18 22:13:41.082]: Info: Vulkan encode using GPU: NVIDIA GeForce RTX 5090
[2026-04-18 22:13:41.185]: Info: Creating encoder [hevc_vulkan]
[2026-04-18 22:13:41.186]: Info: Color coding: SDR (Rec. 601)
[2026-04-18 22:13:41.186]: Info: Color depth: 8-bit
[2026-04-18 22:13:41.186]: Info: Color range: JPEG
[2026-04-18 22:13:41.481]: Info: Streaming bitrate is 1000000
[2026-04-18 22:13:41.486]: Info: Vulkan encode using GPU: NVIDIA GeForce RTX 5090
[2026-04-18 22:13:41.582]: Info: Creating encoder [av1_vulkan]
[2026-04-18 22:13:41.582]: Info: Color coding: SDR (Rec. 601)
[2026-04-18 22:13:41.582]: Info: Color depth: 8-bit
[2026-04-18 22:13:41.582]: Info: Color range: JPEG
[2026-04-18 22:13:41.858]: Info: Streaming bitrate is 1000000
[2026-04-18 22:13:41.863]: Info: Vulkan encode using GPU: NVIDIA GeForce RTX 5090
[2026-04-18 22:13:41.950]: Info: Screencasting with KMS
[2026-04-18 22:13:41.950]: Info: /dev/dri/card1 -> nvidia-drm
[2026-04-18 22:13:41.950]: Info: Found monitor for DRM screencasting
[2026-04-18 22:13:41.950]: Info: Found connector ID [128]
[2026-04-18 22:13:41.950]: Info: Found cursor plane [56]
[2026-04-18 22:13:41.950]: Info: Creating encoder [hevc_vulkan]
[2026-04-18 22:13:41.950]: Info: Color coding: SDR (Rec. 709)
[2026-04-18 22:13:41.950]: Info: Color depth: 10-bit
[2026-04-18 22:13:41.950]: Info: Color range: JPEG
[2026-04-18 22:13:42.226]: Info: Streaming bitrate is 1000000
[2026-04-18 22:13:42.230]: Info: Vulkan encode using GPU: NVIDIA GeForce RTX 5090
[2026-04-18 22:13:42.322]: Info: Creating encoder [av1_vulkan]
[2026-04-18 22:13:42.322]: Info: Color coding: SDR (Rec. 709)
[2026-04-18 22:13:42.322]: Info: Color depth: 10-bit
[2026-04-18 22:13:42.322]: Info: Color range: JPEG
[2026-04-18 22:13:42.582]: Info: Streaming bitrate is 1000000
[2026-04-18 22:13:42.587]: Info: Vulkan encode using GPU: NVIDIA GeForce RTX 5090
[2026-04-18 22:13:42.668]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2026-04-18 22:13:42.668]: Info: 
[2026-04-18 22:13:42.668]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2026-04-18 22:13:42.668]: Info: 
[2026-04-18 22:13:42.668]: Info: Found H.264 encoder: h264_vulkan [vulkan]
[2026-04-18 22:13:42.668]: Info: Found HEVC encoder: hevc_vulkan [vulkan]
[2026-04-18 22:13:42.668]: Info: Found AV1 encoder: av1_vulkan [vulkan]
[2026-04-18 22:13:42.668]: Info: Starting system tray
[2026-04-18 22:13:42.670]: Info: Configuration UI available at [https://localhost:47990]
[2026-04-18 22:13:42.688]: Info: System tray created
[2026-04-18 22:13:42.689]: Info: Starting main loop
[2026-04-18 22:13:43.588]: Info: Adding avahi service fivenine
[2026-04-18 22:13:44.475]: Info: Avahi service fivenine successfully established.
[2026-04-18 22:13:56.706]: Info: Trying encoder [vulkan]
[2026-04-18 22:13:56.706]: Info: Screencasting with KMS
[2026-04-18 22:13:56.706]: Info: /dev/dri/card1 -> nvidia-drm
[2026-04-18 22:13:56.706]: Info: Found monitor for DRM screencasting
[2026-04-18 22:13:56.706]: Info: Found connector ID [128]
[2026-04-18 22:13:56.706]: Info: Found cursor plane [56]
[2026-04-18 22:13:56.706]: Info: Creating encoder [h264_vulkan]
[2026-04-18 22:13:56.706]: Info: Color coding: SDR (Rec. 601)
[2026-04-18 22:13:56.706]: Info: Color depth: 8-bit
[2026-04-18 22:13:56.706]: Info: Color range: JPEG
[2026-04-18 22:13:57.039]: Info: Streaming bitrate is 1000000
[2026-04-18 22:13:57.043]: Info: Vulkan encode using GPU: NVIDIA GeForce RTX 5090
[2026-04-18 22:13:57.132]: Info: Creating encoder [hevc_vulkan]
[2026-04-18 22:13:57.132]: Info: Color coding: SDR (Rec. 601)
[2026-04-18 22:13:57.132]: Info: Color depth: 8-bit
[2026-04-18 22:13:57.132]: Info: Color range: JPEG
[2026-04-18 22:13:57.407]: Info: Streaming bitrate is 1000000
[2026-04-18 22:13:57.411]: Info: Vulkan encode using GPU: NVIDIA GeForce RTX 5090
[2026-04-18 22:13:57.507]: Info: Creating encoder [av1_vulkan]
[2026-04-18 22:13:57.507]: Info: Color coding: SDR (Rec. 601)
[2026-04-18 22:13:57.507]: Info: Color depth: 8-bit
[2026-04-18 22:13:57.507]: Info: Color range: JPEG
[2026-04-18 22:13:57.784]: Info: Streaming bitrate is 1000000
[2026-04-18 22:13:57.788]: Info: Vulkan encode using GPU: NVIDIA GeForce RTX 5090
[2026-04-18 22:13:57.873]: Info: Screencasting with KMS
[2026-04-18 22:13:57.873]: Info: /dev/dri/card1 -> nvidia-drm
[2026-04-18 22:13:57.873]: Info: Found monitor for DRM screencasting
[2026-04-18 22:13:57.873]: Info: Found connector ID [128]
[2026-04-18 22:13:57.873]: Info: Found cursor plane [56]
[2026-04-18 22:13:57.873]: Info: Creating encoder [hevc_vulkan]
[2026-04-18 22:13:57.873]: Info: Color coding: SDR (Rec. 709)
[2026-04-18 22:13:57.873]: Info: Color depth: 10-bit
[2026-04-18 22:13:57.873]: Info: Color range: JPEG
[2026-04-18 22:13:58.166]: Info: Streaming bitrate is 1000000
[2026-04-18 22:13:58.171]: Info: Vulkan encode using GPU: NVIDIA GeForce RTX 5090
[2026-04-18 22:13:58.262]: Info: Creating encoder [av1_vulkan]
[2026-04-18 22:13:58.262]: Info: Color coding: SDR (Rec. 709)
[2026-04-18 22:13:58.262]: Info: Color depth: 10-bit
[2026-04-18 22:13:58.262]: Info: Color range: JPEG
[2026-04-18 22:13:58.529]: Info: Streaming bitrate is 1000000
[2026-04-18 22:13:58.533]: Info: Vulkan encode using GPU: NVIDIA GeForce RTX 5090
[2026-04-18 22:13:58.613]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2026-04-18 22:13:58.613]: Info: 
[2026-04-18 22:13:58.613]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2026-04-18 22:13:58.613]: Info: 
[2026-04-18 22:13:58.613]: Info: Found H.264 encoder: h264_vulkan [vulkan]
[2026-04-18 22:13:58.613]: Info: Found HEVC encoder: hevc_vulkan [vulkan]
[2026-04-18 22:13:58.613]: Info: Found AV1 encoder: av1_vulkan [vulkan]
[2026-04-18 22:13:58.613]: Info: Executing [Desktop]
[2026-04-18 22:13:58.681]: Info: New streaming session started [active sessions: 1]
[2026-04-18 22:13:58.708]: Info: CLIENT CONNECTED
[2026-04-18 22:13:58.718]: Info: /dev/dri/card1 -> nvidia-drm
[2026-04-18 22:13:58.718]: Info: /dev/dri/card2 -> amdgpu
[2026-04-18 22:13:58.719]: Info: [wayland] Found display [wayland-0]
[2026-04-18 22:13:58.720]: Info: [wayland] Found interface: zxdg_output_manager_v1(30) version 3
[2026-04-18 22:13:58.720]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(56) version 5
[2026-04-18 22:13:58.720]: Info: [wayland] Found interface: wl_output(63) version 4
[2026-04-18 22:13:58.720]: Info: [wayland] Resolution: 3840x2160
[2026-04-18 22:13:58.720]: Info: [wayland] Offset: 0x0
[2026-04-18 22:13:58.720]: Info: [wayland] Logical size: 2194x1234
[2026-04-18 22:13:58.720]: Info: [wayland] Name: HDMI-A-2
[2026-04-18 22:13:58.720]: Info: [wayland] Found monitor: LG Electronics LG TV SSCR2
[2026-04-18 22:13:58.720]: Info: -------- Start of KMS monitor list --------
[2026-04-18 22:13:58.720]: Warning: Mismatch on expected Resolution compared to actual resolution: 0x0 vs 3840x2160
[2026-04-18 22:13:58.720]: Info: Monitor 0 is HDMI-A-2: LG Electronics LG TV SSCR2
[2026-04-18 22:13:58.720]: Info: --------- End of KMS monitor list ---------
[2026-04-18 22:13:58.720]: Info: Screencasting with KMS
[2026-04-18 22:13:58.720]: Info: /dev/dri/card1 -> nvidia-drm
[2026-04-18 22:13:58.720]: Info: Found monitor for DRM screencasting
[2026-04-18 22:13:58.720]: Info: Found connector ID [128]
[2026-04-18 22:13:58.720]: Info: Found cursor plane [56]
[2026-04-18 22:13:58.720]: Info: Creating encoder [av1_vulkan]
[2026-04-18 22:13:58.720]: Info: Color coding: SDR (Rec. 601)
[2026-04-18 22:13:58.720]: Info: Color depth: 8-bit
[2026-04-18 22:13:58.720]: Info: Color range: MPEG
[2026-04-18 22:13:59.043]: Info: Streaming bitrate is 77452000
[2026-04-18 22:13:59.048]: Info: Vulkan encode using GPU: NVIDIA GeForce RTX 5090
[2026-04-18 22:13:59.049]: Info: Minimum FPS target set to ~60fps (16.6667ms)
[2026-04-18 22:13:59.209]: Info: Setting default sink to: [sink-sunshine-surround71]
[2026-04-18 22:13:59.209]: Info: Found default monitor by name: sink-sunshine-surround71.monitor
[2026-04-18 22:13:59.222]: Info: Opus initialized: 48 kHz, 8 channels, 2048 kbps (total), LOWDELAY
[2026-04-18 22:17:05.092]: Info: Setting default sink to: [alsa_output.pci-0000_01_00.1.hdmi-stereo]

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