Skip to content

sway wayland sunshine outputs corrupted image #5258

@navneetankur

Description

@navneetankur

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

Sunshine with capture method wlroots and software encoding (libx264) gives a black screen with horizontal lines in Moonlight.

Setting capture method to kms works fine.

I also tested both software encoding (libx264) and VAAPI (hevc_vaapi). Both fail with wlroots and both work with kms, so the issue appears to be related to the capture backend rather than the encoder.

Sunshine repeatedly logs:

-------- Start of Wayland monitor list --------
... snip ...
Error: [wayland] Frame capture failed

Sway logs:

00:09:48.184 [ERROR] [wlr] [EGL] command: eglCreateImageKHR, error: EGL_BAD_MATCH (0x3009), message: "createImageFromDmaBufs failed"
00:09:48.184 [ERROR] [wlr] [render/egl.c:818] eglCreateImageKHR failed

Environment:

  • Sway 1.12
  • Sunshine 2026.605.170308 (commit fa4fbbd)

Expected Behavior

sunshine to moonlight works fine.

Additional Context

  • wayvnc works correctly on the same system.
  • An older Sunshine version (2025.924.154138) also failed with wlroots, but additionally segfaulted when a Moonlight client connected.
  • Updating the system and Sunshine to the latest release removed the segfault, but wlroots capture is still broken.
  • i have an nvidia card. but it's set in draining mode. So it can't be used by anything.

Host Operating System

Linux

Operating System Version

Linux navnarch 7.0.11-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 02 Jun 2026 18:26:58 +0000 x86_64 GNU/Linux

Architecture

amd64/x86_64

Package

Linux - LizardByte/pacman-repo

GPU Type

Intel

GPU Model

Intel HD Graphics 530

GPU Driver/Mesa Version

Version: 26.1.2

Capture Method

wlroots (FreeBSD/Linux)

Apps

Log output

Online logs

sunshine.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions