Repository navigation
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?
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
- Install Sunshine
2026.906.222525from Flathub as a system Flatpak. - Install Decky Sunshine.
- Start Sunshine through Decky Sunshine.
- Sunshine starts and initializes the encoders.
- The process then crashes while initializing the system tray / Qt.
- 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
NIICKTCHUNS commentedon Sep 11, 2026
+1 It's crashing on Arch too. Apparently its somewhat related to the Qt dependencies
crawlyPancake commentedon Sep 11, 2026
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
ReenigneArcher commentedon Sep 11, 2026
Anyone with this issue able to self compile Sunshine? The fix requires changing the
third-party/traysubmodule to the commit of LizardByte/tray#189If you could test it and let me know if it resolves the issue that would be excellent.
NIICKTCHUNS commentedon Sep 12, 2026
Ok, so, I discovered that specifically in my case, mangohud was causing sunshine to crash
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=1set globally, disable it for sunshine and it will stop crashingEdit: 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
causa-prima commentedon Sep 17, 2026
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:The warning says "no reachable … endpoint"; the condition only asks whether the variables are set. So anything that sets
DISPLAYto an endpoint it cannot actually open skips the fallback, Qt goes on toxcb, finds no usable plugin andqFatals the process.That was us: the plugin set
DISPLAY=:0unconditionally for a Sunshine it spawns as root, and root has no Xauth for gamescope's XWayland on SteamOS. Hence:followed by SIGABRT before the main loop, on every start.
Measured on a Steam Deck, Sunshine
2026.914.233613system FlatpakNote the version — this is not limited to
2026.906.222525.DISPLAYQT_QPA_PLATFORM:0QtTrayMenu: no reachable …warning above:0offscreenEverything 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_vaapieither 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_PLATFORMis 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 bogusDISPLAYand now pass--env=QT_QPA_PLATFORM=offscreentoflatpak 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
DISPLAYat an X display that does not exist should be enough, e.g.env -u WAYLAND_DISPLAY DISPLAY=:99 sunshinewith nothing listening on:99. I have not run that exact form — our measurements were on the real configuration — but it matches the condition above.siriusacma commentedon Sep 21, 2026
Hello @causa-prima and thank you for your fast response!
I have tested the new fixed plugin
2026.09.17-6c84c59with Sunshine2026.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
2026.09.17-6c84c59.2026.914.233613.1280x800.Important observation
The fixed plugin log shows that Sunshine starts successfully:
There is no Sunshine crash in this log.
I also verified that the Sunshine Flatpak itself can access the Wayland and DBus session:
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
6.16.12-valve24.5-1-neptune-616-gb2f7cfe85e452026.09.17-6c84c592026.914.2336131280x800Could 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.