Skip to content

Sunshine 2026.906 crashes when launched through Decky Sunshine on Steam Deck #5678

Closed
LizardByte/tray
#189

Description

@siriusacma

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?

None

Describe the Bug

Hello, and thank you for the great software. I’m having the following issue.

Environment

  • SteamOS
  • GPU: AMD Radeon RX 6750 XT (RADV NAVI22)
  • Display: Xiaomi Mi 27 NFGL, HDMI-A-1, 1920x1080
  • Sunshine installation: Flathub Flatpak, system installation
  • Working version: 2026.516.143833
  • Broken version: 2026.906.222525
  • Decky Sunshine: latest available version / current release

Description

After updating Sunshine Flatpak from 2026.516.143833 to 2026.906.222525, Sunshine can no longer be started successfully through the Decky Sunshine plugin.

The Decky Sunshine plugin starts the Sunshine process, but Sunshine aborts shortly afterwards and the plugin reports that the process has stopped.

The previous Sunshine version 2026.516.143833 works correctly with the same Steam Deck, GPU, display and Decky Sunshine setup.

Reproduction

  1. Install Sunshine 2026.906.222525 from Flathub as a system Flatpak.
  2. Install Decky Sunshine.
  3. Start Sunshine through Decky Sunshine.
  4. Sunshine starts and initializes the encoders.
  5. The process then crashes while initializing the system tray / Qt.
  6. Decky Sunshine detects that Sunshine has stopped and repeatedly attempts to restart it.

Relevant log output:

Starting system tray
Qt: Failed to create wl_display (No such file or directory)
Configuration UI available at [https://localhost:47990]
Qt: Could not load the Qt platform plugin "wayland" in "" even though it was found.
Authorization required, but no authorization protocol specified
Qt: could not connect to display :0
Process ... (sunshine) ... dumped core

On subsequent attempts:

[wayland] Couldn't connect to Wayland display: wayland-0
Starting system tray
Qt: Failed to create wl_display (No such file or directory)
Qt: Could not load the Qt platform plugin "wayland" in "" even though it was found.
Qt: could not connect to display :0
Process ... (sunshine) ... dumped core

Additional testing

I also tested the same Sunshine 2026.906.222525 Flatpak manually from Desktop Mode with the appropriate Wayland/session environment:

WAYLAND_DISPLAY=wayland-0
XDG_RUNTIME_DIR=/run/user/1000
DISPLAY=:0
XAUTHORITY=/run/user/1000/xauth_...
FLATPAK_BWRAP=/var/lib/decky-sunshine/bwrap

In this configuration Sunshine successfully:

  • connected to wayland-0;
  • detected the 1920x1080 display;
  • detected the AMD Radeon RX 6750 XT;
  • found the H.264 Vulkan encoder;
  • found the HEVC Vulkan encoder;
  • reached Starting main loop.

Therefore the Flatpak itself can run successfully on this system.

However, when running through Decky Sunshine, the same version crashes during Qt/system-tray initialization.

Regression test

I downgraded the system Flatpak back to:

Sunshine 2026.516.143833

using the exact Flathub commit:

2b4457e879a77ae681f60058478be45ef5f20000055f6ee90e2c42eee00cd88b

After downgrading, Sunshine works normally through Decky Sunshine again.

So the behavior is reproducible as:

2026.516.143833 + Decky Sunshine → WORKS
2026.906.222525 + Decky Sunshine → CRASHES

Possible relation to the release

The 2026.906.222525 release introduced the Qt-based system tray on all platforms. It may be related to the crash when Sunshine is launched from the Decky/root service environment.

Could you please investigate whether the new Qt system tray requires additional environment variables, permissions, Qt dependencies, or session access when Sunshine is launched from a system/root context on Steam Deck?

I can provide the full journal/core dump and Decky Sunshine logs if needed.

Expected Behavior

Sunshine should start and remain running when launched through Decky Sunshine, as it does with the previous Sunshine version.

Additional Context

After updating Sunshine from 2026.516.143833 to 2026.906.222525, Sunshine crashes when started through Decky Sunshine on Steam Deck.

The previous version (2026.516.143833) works correctly with the same setup.

The 2026.906.222525 Flatpak also works when launched manually with the appropriate Wayland/session environment, so the issue appears to be related to how Sunshine is launched through Decky Sunshine.

The crash happens during system tray initialization and includes the following messages:

Starting system tray
Qt: Failed to create wl_display (No such file or directory)
Qt: Could not load the Qt platform plugin "wayland" in "" even though it was found.
Qt: could not connect to display :0
Process ... (sunshine) ... dumped core

Host Operating System

Linux

Operating System Version

Steam OS 3.8.16

Architecture

amd64/x86_64

Package

Linux - flathub/flatpak

GPU Type

AMD

GPU Model

AMD Radeon RX 6750 XT

GPU Driver/Mesa Version

Mesa 25.3.0 (git-59b552c765)

Capture Method

XDG Portal Grab (FreeBSD/Linux)

Apps

Log output

[2026-09-10 20:08:13.241]: Info: Found H.264 encoder: h264_vulkan [vulkan]
[2026-09-10 20:08:13.241]: Info: Found HEVC encoder: hevc_vulkan [vulkan]
[2026-09-10 20:08:13.242]: Info: Starting system tray
[2026-09-10 20:08:13.244]: Error: avahi::entry_group_new() failed: Not permitted
[2026-09-10 20:08:13.244]: Warning: Qt: Failed to create wl_display (No such file or directory)
[2026-09-10 20:08:13.244]: Info: Configuration UI available at [https://localhost:47990]
[2026-09-10 20:08:13.250]: Info: Qt: Could not load the Qt platform plugin "wayland" in "" even though it was found.
Authorization required, but no authorization protocol specified
[2026-09-10 20:08:13.252]: Warning: Qt: could not connect to display :0
Process 110300 (sunshine) of user 0 dumped core.

Stack trace of thread 2:
#0  0x00007fec0229d51c n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x9c51c)
#1  0x00007fec022432be n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x422be)
#2  0x00007fec0222a8ed n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x298ed)
#3  0x00007fec024cc2b4 n/a (/usr/lib/x86_64-linux-gnu/libQt6Core.so.6.10.3 + 0xcc2b4)
#4  0x00007fec0252203e n/a (/usr/lib/x86_64-linux-gnu/libQt6Core.so.6.10.3 + 0x12203e)
#5  0x00007fec024cd8c6 n/a (/usr/lib/x86_64-linux-gnu/libQt6Core.so.6.10.3 + 0xcd8c6)
#6  0x00007fec02d4888d n/a (/usr/lib/x86_64-linux-gnu/libQt6Gui.so.6.10.3 + 0x14888d)
#7  0x00007fec02e018db n/a (/usr/lib/x86_64-linux-gnu/libQt6Gui.so.6.10.3 + 0x2018db)
#8  0x00007fec02e02408 n/a (/usr/lib/x86_64-linux-gnu/libQt6Gui.so.6.10.3 + 0x202408)
#9  0x00007fec025b4fcd n/a (/usr/lib/x86_64-linux-gnu/libQt6Core.so.6.10.3 + 0x1b4fcd)
#10 0x00007fec02e06f7b n/a (/usr/lib/x86_64-linux-gnu/libQt6Gui.so.6.10.3 + 0x206f7b)
#11 0x00007fec039acf45 n/a (/usr/lib/x86_64-linux-gnu/libQt6Widgets.so.6.10.3 + 0x1acf45)
#12 0x00005585b8eb1f25 n/a (/app/bin/sunshine + 0x1335f25)

[2026-09-10 20:08:17.541]: Info: Sunshine version: 2026.906.222525
[2026-09-10 20:08:17.542]: Error: Couldn't load cuda: -1
[2026-09-10 20:08:17.542]: Error: [wayland] Couldn't connect to Wayland display: wayland-0
[2026-09-10 20:08:17.544]: Warning: [portalgrab] Failed to connect to dbus. Cannot enumerate displays, returning empty list.
Authorization required, but no authorization protocol specified

[2026-09-10 20:08:18.241]: Info: Found H.264 encoder: h264_vulkan [vulkan]
[2026-09-10 20:08:18.241]: Info: Found HEVC encoder: hevc_vulkan [vulkan]
[2026-09-10 20:08:18.242]: Info: Starting system tray
[2026-09-10 20:08:18.244]: Error: avahi::entry_group_new() failed: Not permitted
[2026-09-10 20:08:18.244]: Warning: Qt: Failed to create wl_display (No such file or directory)
[2026-09-10 20:08:18.244]: Info: Configuration UI available at [https://localhost:47990]
[2026-09-10 20:08:18.250]: Info: Qt: Could not load the Qt platform plugin "wayland" in "" even though it was found.
Authorization required, but no authorization protocol specified
[2026-09-10 20:08:18.252]: Warning: Qt: could not connect to display :0
Process 110415 (sunshine) of user 0 dumped core.

Stack trace of thread 2:
#0  0x00007f57f609d51c n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x9c51c)
#1  0x00007f57f60432be n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x422be)
#2  0x00007f57f602a8ed n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x298ed)
#3  0x00007f57f62cc2b4 n/a (/usr/lib/x86_64-linux-gnu/libQt6Core.so.6.10.3 + 0xcc2b4)
#4  0x00007f57f632203e n/a (/usr/lib/x86_64-linux-gnu/libQt6Core.so.6.10.3 + 0x12203e)
#5  0x00007f57f62cd8c6 n/a (/usr/lib/x86_64-linux-gnu/libQt6Core.so.6 + 0xcd8c6)
#6  0x00007f57f6b4888d n/a (/usr/lib/x86_64-linux-gnu/libQt6Gui.so.6.10.3 + 0x14888d)
#7  0x00007f57f6c018db n/a (/usr/lib/x86_64-linux-gnu/libQt6Gui.so.6.10.3 + 0x2018db)
#8  0x00007f57f6c02408 n/a (/usr/lib/x86_64-linux-gnu/libQt6Gui.so.6.10.3 + 0x202408)
#9  0x00007f57f63b4fcd n/a (/usr/lib/x86_64-linux-gnu/libQt6Core.so.6.10.3 + 0x1b4fcd)
#10 0x00007f57f6c06f7b n/a (/usr/lib/x86_64-linux-gnu/libQt6Gui.so.6.10.3 + 0x206f7b)
#11 0x00007f57f77acf45 n/a (/usr/lib/x86_64-linux-gnu/libQt6Widgets.so.6.10.3 + 0x1acf45)
#12 0x00005633a90bdf25 n/a (/app/bin/sunshine + 0x1335f25)

Online logs

No response

Activity

  1. NIICKTCHUNS commented on Sep 11, 2026

    @NIICKTCHUNS

    +1 It's crashing on Arch too. Apparently its somewhat related to the Qt dependencies

  2. crawlyPancake commented on Sep 11, 2026

    @crawlyPancake

    Same issue for me. Had to go back to the previous sunshine release on my steam machine. Now it works fine again with decky sunshine

  3. ReenigneArcher commented on Sep 11, 2026

    @ReenigneArcher
    Member

    Anyone with this issue able to self compile Sunshine? The fix requires changing the third-party/tray submodule to the commit of LizardByte/tray#189

    If you could test it and let me know if it resolves the issue that would be excellent.

  4. NIICKTCHUNS commented on Sep 12, 2026

    @NIICKTCHUNS

    Anyone with this issue able to self compile Sunshine? The fix requires changing the third-party/tray submodule to the commit of LizardByte/tray#189

    If you could test it and let me know if it resolves the issue that would be excellent.

    Ok, so, I discovered that specifically in my case, mangohud was causing sunshine to crash

    radv: RADV_PERFTEST=video_encode is deprecated and will be removed in future Mesa releases. Please use RADV_EXPERIMENTAL=video_encode instead.
    [2026-09-11 21:18:50.481] [MANGOHUD] [error] [overlay_params.cpp:183] Unrecognized key: 'none'
    [2026-09-11 21:18:50.482] [MANGOHUD] [info] [gpu.cpp:90] Set renderD128 as active GPU (driver=amdgpu id=1002:7480 pci_dev=0000:07:00.0)
    [2026-09-11 21:18:50.494] [MANGOHUD] [info] [cpu.cpp:636] hwmon: using input: /sys/class/hwmon/hwmon3/temp1_input
    radv: RADV_PERFTEST=video_encode is deprecated and will be removed in future Mesa releases. Please use RADV_EXPERIMENTAL=video_encode instead.
    [2026-09-11 21:18:50.599] [MANGOHUD] [error] [overlay_params.cpp:183] Unrecognized key: 'none'
    fish: Tarefa 1, 'sunshine' encerrada pelo sinal SIGSEGV (Erro de fronteira de endereço (Falha de segmentação))
    

    So, I tested the git version with the PR included and didn't crash, tested the latest beta and also didn't crashed. At least for me it wasn't an issue with the tray. If you guys have the environment variable MANGOHUD=1 set globally, disable it for sunshine and it will stop crashing

    Edit: The original issue doesn't seem related to mangohud tho, I can't test this on my machine since its not crashing with those errors

  5. causa-prima commented on Sep 17, 2026

    @causa-prima

    Context: I maintain Decky Sunshine, which launches the Sunshine Flatpak on Steam Decks. We got a cluster of reports of this (s0t7x/decky-sunshine#118, s0t7x/decky-sunshine#119, s0t7x/decky-sunshine#120) and I think I can pin the mechanism down.

    The guard tests presence, not reachability — although its message says otherwise

    In the tray's configure_platform() as currently shipped:

    if (qgetenv("WAYLAND_DISPLAY").isEmpty() && qgetenv("DISPLAY").isEmpty()) {
      qputenv("QT_QPA_PLATFORM", QByteArrayLiteral("minimal"));
      qWarning("QtTrayMenu: no reachable WAYLAND_DISPLAY or DISPLAY endpoint, forcing QT_QPA_PLATFORM=minimal");
    }

    The warning says "no reachable … endpoint"; the condition only asks whether the variables are set. So anything that sets DISPLAY to an endpoint it cannot actually open skips the fallback, Qt goes on to xcb, finds no usable plugin and qFatals the process.

    That was us: the plugin set DISPLAY=:0 unconditionally for a Sunshine it spawns as root, and root has no Xauth for gamescope's XWayland on SteamOS. Hence:

    Info: Starting system tray
    Warning: Qt: could not connect to display :0
    Info: Qt: Could not load the Qt platform plugin "xcb" in "" even though it was found.
    Error: Qt: This application failed to start because no Qt platform plugin could be initialized.
    

    followed by SIGABRT before the main loop, on every start.

    Measured on a Steam Deck, Sunshine 2026.914.233613 system Flatpak

    Note the version — this is not limited to 2026.906.222525.

    DISPLAY QT_QPA_PLATFORM result
    :0 unset SIGABRT before the main loop
    unset unset reaches the main loop, logging the QtTrayMenu: no reachable … warning above
    :0 offscreen reaches the main loop

    Everything else held constant: same Flatpak, same command line, spawned as root. Capture is unaffected in all three cases — it is KMS, and finds its connector and h264_vaapi either way.

    What that says about LizardByte/tray#189

    The direction looks right to me, and the part that matters most for downstreams is one you already have: an explicitly set QT_QPA_PLATFORM is preserved. That is the lever a launcher like ours can pull today without waiting for a release, and it is what we shipped — we dropped the bogus DISPLAY and now pass --env=QT_QPA_PLATFORM=offscreen to flatpak run (s0t7x/decky-sunshine#122). Our users are unblocked; I am posting this because the same trap is there for anyone starting Sunshine from a service or from a session it does not own.

    Caveat: I have not built the PR, so this is not the confirmation you asked for above. The table is the shipped 2026.914 binary with its environment varied.

    If it helps to reproduce without a Deck: pointing DISPLAY at an X display that does not exist should be enough, e.g. env -u WAYLAND_DISPLAY DISPLAY=:99 sunshine with nothing listening on :99. I have not run that exact form — our measurements were on the real configuration — but it matches the condition above.

  6. siriusacma commented on Sep 21, 2026

    @siriusacma
    Author

    Hello @causa-prima and thank you for your fast response!

    I have tested the new fixed plugin 2026.09.17-6c84c59 with Sunshine 2026.914.233613.

    The original crash issue appears to be fixed: the new plugin successfully starts Sunshine and keeps it running.

    However, I found a different problem.

    Reproduction

    1. SteamOS on a desktop PC with AMD RX 6750 XT.
    2. Decky Sunshine 2026.09.17-6c84c59.
    3. Sunshine 2026.914.233613.
    4. Start Sunshine through Decky Sunshine.
    5. Connect from Steam Deck via Moonlight.
    6. Streaming works and video is displayed normally.
    7. Switch to Gaming Mode and change the display/stream resolution to the Steam Deck native resolution 1280x800.
    8. After changing the resolution, Moonlight still connects, but the video becomes completely black.
    9. Changing the resolution back to the previous resolution does not restore the video.
    10. Restarting the Steam Deck afterwards causes the old Decky Sunshine plugin to start/crash again because multiple copies of the plugin were installed, but the fixed plugin itself had previously been running correctly.

    Important observation

    The fixed plugin log shows that Sunshine starts successfully:

    [18:55:18] Sunshine running state changed: unknown → True
    [18:55:20] Sunshine version info changed: unknown → 2026.914.233613
    

    There is no Sunshine crash in this log.

    I also verified that the Sunshine Flatpak itself can access the Wayland and DBus session:

    WAYLAND=wayland-0
    XDG=/run/user/1000
    DBUS=unix:path=/run/flatpak/bus
    

    and the Wayland and DBus sockets are accessible inside the Flatpak.

    A direct Sunshine Flatpak test also successfully detected the Wayland display, PipeWire and the AMD RX 6750 XT encoder.

    Therefore the black screen appears to be related specifically to the capture state after changing the display resolution, rather than Sunshine failing to start.

    Environment

    • SteamOS
    • SteamOS kernel: 6.16.12-valve24.5-1-neptune-616-gb2f7cfe85e45
    • Desktop PC: Gigabyte B450M H
    • GPU: AMD Radeon RX 6750 XT
    • Decky Sunshine: 2026.09.17-6c84c59
    • Sunshine: 2026.914.233613
    • Moonlight client: Steam Deck OLED
    • Target resolution: 1280x800

    Could you please advise whether changing the display resolution in Gaming Mode can leave the Wayland/XDG portal/PipeWire capture session in a broken state, causing Sunshine to continue running but produce a black video stream?

    I can provide the complete Decky Sunshine logs and additional Sunshine capture logs if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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