Is there an existing issue for this?
Is your issue described in the documentation?
Is your issue present in the latest beta/pre-release?
This issue is present in the latest pre-release
Describe the Bug
During the development of #4931 I've noted a segfault when trying to switch between displays very quickly (by button mashing the switching shortcut to the same display, e.g. CTRL+ALT+SHIFT+F1).
This can be reproduced consistently with not only portalgrab but other capture methods (tested KMS) as well (at least on linux). It is also occurring regardless of encoder (tested vulkan and vaapi).
Expected Behavior
Sunshine should not crash when switching screens too quickly.
Additional Context
In video.cpp the switch_display_event is popped before the reset_display call has even started. Which would allow the display reset to be stacked onto another potentially leading to this issue if I'm understanding this correctly:
|
// Process any pending display switch with the new list of displays |
|
if (switch_display_event->peek()) { |
|
display_p = std::clamp(*switch_display_event->pop(), 0, (int) display_names.size() - 1); |
|
} |
|
|
|
// reset_display() will sleep between retries |
|
reset_display(disp, encoder.platform_formats->dev_type, display_names[display_p], capture_ctxs.front().config); |
Changing this to finish the switch_display_event after reset_display has concluded might fix the issue. Also not sure if it is desirable to do a reset_display when the same display is selected (identified by display_name, not display_index) as that will just force a re-init of the existing capture.
Host Operating System
Linux
Operating System Version
CachyOS latest
Architecture
amd64/x86_64
Package
Linux - AUR (Third Party)
GPU Type
AMD
GPU Model
RX9070XT
GPU Driver/Mesa Version
26.0.3
Capture Method
XDG Portal Grab (Linux)
KMS (Linux)
possibly others (not tested)
Apps
Log output
Apr 03 10:29:10 desktop systemd[2649]: Started Self-hosted game stream host for Moonlight.
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.236057] [0x00007f8cde6bcc40] [info] config: 'sunshine_name' = DESKTOP-L
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.236077] [0x00007f8cde6bcc40] [info] config: 'min_log_level' = 2
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.236080] [0x00007f8cde6bcc40] [info] config: 'encoder' = vulkan
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.236082] [0x00007f8cde6bcc40] [info] config: 'ds5_inputtino_randomize_mac' = false
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.236084] [0x00007f8cde6bcc40] [info] config: 'stream_audio' = true
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.236086] [0x00007f8cde6bcc40] [info] config: 'capture' = kms
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.236088] [0x00007f8cde6bcc40] [info] config: 'address_family' = both
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.236]: Info: Sunshine version: 2026.402.184413.r0.g5fba591 commit:
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.236]: Info: Package Publisher: AUR
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.236]: Info: Publisher Website: https://aur.archlinux.org/packages/sunshine-git
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.236]: Info: Get support: https://aur.archlinux.org/packages/sunshine-git
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.236]: Info: config: 'address_family' = both
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.236]: Info: config: 'capture' = kms
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.236]: Info: config: 'stream_audio' = true
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.236]: Info: config: 'ds5_inputtino_randomize_mac' = false
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.236]: Info: config: 'encoder' = vulkan
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.236]: Info: config: 'min_log_level' = 2
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.236]: Info: config: 'sunshine_name' = DESKTOP-L
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.237]: Info: /dev/dri/card1 -> amdgpu
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.241]: Info: [wayland] Found display [wayland-0]
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.241]: Info: [wayland] Found display [wayland-0]
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.242]: Info: [wayland] Found interface: zxdg_output_manager_v1(31) version 3
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.242]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(57) version 5
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.242]: Info: [wayland] Found interface: wl_output(67) version 4
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.242]: Info: [wayland] Resolution: 1920x1080
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.242]: Info: [wayland] Offset: 0x0
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.242]: Info: [wayland] Logical size: 1920x1080
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.242]: Info: [wayland] Name: HDMI-A-1
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.242]: Info: [wayland] Found monitor: BNQ BenQ XL2411Z
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.242]: Info: -------- Start of KMS monitor list --------
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.242]: Info: Monitor 0 is HDMI-A-1: BNQ BenQ XL2411Z
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.242]: Info: --------- End of KMS monitor list ---------
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.333]: Info: Trying encoder [vulkan]
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.333]: Info: Screencasting with KMS
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.333]: Info: /dev/dri/card1 -> amdgpu
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.333]: Info: Found monitor for DRM screencasting
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.334]: Info: Found connector ID [456]
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.334]: Info: Found cursor plane [422]
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.334]: Info: Creating encoder [h264_vulkan]
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.334]: Info: Color coding: SDR (Rec. 601)
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.334]: Info: Color depth: 8-bit
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.334]: Info: Color range: JPEG
Apr 03 10:29:10 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:10 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.922]: Info: Streaming bitrate is 1000000
Apr 03 10:29:10 desktop sunshine[30594]: [2026-04-03 10:29:10.923]: Info: Vulkan encode using GPU: AMD Radeon RX 9070 XT (RADV GFX1201)
Apr 03 10:29:11 desktop sunshine[30594]: [2026-04-03 10:29:11.420]: Info: Creating encoder [hevc_vulkan]
Apr 03 10:29:11 desktop sunshine[30594]: [2026-04-03 10:29:11.420]: Info: Color coding: SDR (Rec. 601)
Apr 03 10:29:11 desktop sunshine[30594]: [2026-04-03 10:29:11.420]: Info: Color depth: 8-bit
Apr 03 10:29:11 desktop sunshine[30594]: [2026-04-03 10:29:11.420]: Info: Color range: JPEG
Apr 03 10:29:11 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:11 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:11 desktop sunshine[30594]: [2026-04-03 10:29:11.974]: Info: Streaming bitrate is 1000000
Apr 03 10:29:11 desktop sunshine[30594]: [2026-04-03 10:29:11.976]: Info: Vulkan encode using GPU: AMD Radeon RX 9070 XT (RADV GFX1201)
Apr 03 10:29:12 desktop sunshine[30594]: [2026-04-03 10:29:12.460]: Info: Creating encoder [av1_vulkan]
Apr 03 10:29:12 desktop sunshine[30594]: [2026-04-03 10:29:12.460]: Info: Color coding: SDR (Rec. 601)
Apr 03 10:29:12 desktop sunshine[30594]: [2026-04-03 10:29:12.460]: Info: Color depth: 8-bit
Apr 03 10:29:12 desktop sunshine[30594]: [2026-04-03 10:29:12.460]: Info: Color range: JPEG
Apr 03 10:29:12 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:12 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:13 desktop sunshine[30594]: [2026-04-03 10:29:13.007]: Info: Streaming bitrate is 1000000
Apr 03 10:29:13 desktop sunshine[30594]: [2026-04-03 10:29:13.007]: Info: Vulkan encode using GPU: AMD Radeon RX 9070 XT (RADV GFX1201)
Apr 03 10:29:13 desktop sunshine[30594]: [2026-04-03 10:29:13.505]: Info: Screencasting with KMS
Apr 03 10:29:13 desktop sunshine[30594]: [2026-04-03 10:29:13.505]: Info: /dev/dri/card1 -> amdgpu
Apr 03 10:29:13 desktop sunshine[30594]: [2026-04-03 10:29:13.505]: Info: Found monitor for DRM screencasting
Apr 03 10:29:13 desktop sunshine[30594]: [2026-04-03 10:29:13.506]: Info: Found connector ID [456]
Apr 03 10:29:13 desktop sunshine[30594]: [2026-04-03 10:29:13.506]: Info: Found cursor plane [422]
Apr 03 10:29:13 desktop sunshine[30594]: [2026-04-03 10:29:13.506]: Info: Creating encoder [hevc_vulkan]
Apr 03 10:29:13 desktop sunshine[30594]: [2026-04-03 10:29:13.506]: Info: Color coding: SDR (Rec. 709)
Apr 03 10:29:13 desktop sunshine[30594]: [2026-04-03 10:29:13.506]: Info: Color depth: 10-bit
Apr 03 10:29:13 desktop sunshine[30594]: [2026-04-03 10:29:13.506]: Info: Color range: JPEG
Apr 03 10:29:13 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:14 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:14 desktop sunshine[30594]: [2026-04-03 10:29:14.054]: Info: Streaming bitrate is 1000000
Apr 03 10:29:14 desktop sunshine[30594]: [2026-04-03 10:29:14.056]: Info: Vulkan encode using GPU: AMD Radeon RX 9070 XT (RADV GFX1201)
Apr 03 10:29:14 desktop sunshine[30594]: [2026-04-03 10:29:14.550]: Info: Creating encoder [av1_vulkan]
Apr 03 10:29:14 desktop sunshine[30594]: [2026-04-03 10:29:14.550]: Info: Color coding: SDR (Rec. 709)
Apr 03 10:29:14 desktop sunshine[30594]: [2026-04-03 10:29:14.550]: Info: Color depth: 10-bit
Apr 03 10:29:14 desktop sunshine[30594]: [2026-04-03 10:29:14.550]: Info: Color range: JPEG
Apr 03 10:29:14 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:15 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:15 desktop sunshine[30594]: [2026-04-03 10:29:15.104]: Info: Streaming bitrate is 1000000
Apr 03 10:29:15 desktop sunshine[30594]: [2026-04-03 10:29:15.105]: Info: Vulkan encode using GPU: AMD Radeon RX 9070 XT (RADV GFX1201)
Apr 03 10:29:15 desktop sunshine[30594]: [2026-04-03 10:29:15.595]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
Apr 03 10:29:15 desktop sunshine[30594]: [2026-04-03 10:29:15.595]: Info:
Apr 03 10:29:15 desktop sunshine[30594]: [2026-04-03 10:29:15.595]: Info: // Ignore any errors mentioned above, they are not relevant. //
Apr 03 10:29:15 desktop sunshine[30594]: [2026-04-03 10:29:15.595]: Info:
Apr 03 10:29:15 desktop sunshine[30594]: [2026-04-03 10:29:15.595]: Info: Found H.264 encoder: h264_vulkan [vulkan]
Apr 03 10:29:15 desktop sunshine[30594]: [2026-04-03 10:29:15.595]: Info: Found HEVC encoder: hevc_vulkan [vulkan]
Apr 03 10:29:15 desktop sunshine[30594]: [2026-04-03 10:29:15.595]: Info: Found AV1 encoder: av1_vulkan [vulkan]
Apr 03 10:29:15 desktop sunshine[30594]: [2026-04-03 10:29:15.596]: Info: Starting system tray
Apr 03 10:29:15 desktop sunshine[30594]: [2026-04-03 10:29:15.596]: Info: Adding avahi service desktop
Apr 03 10:29:15 desktop sunshine[30594]: [2026-04-03 10:29:15.597]: Info: Configuration UI available at [https://localhost:47990]
Apr 03 10:29:15 desktop sunshine[30594]: libayatana-appindicator is deprecated. Please use libayatana-appindicator-glib in newly written code.
Apr 03 10:29:15 desktop sunshine[30594]: [2026-04-03 10:29:15.618]: Info: System tray created
Apr 03 10:29:15 desktop sunshine[30594]: [2026-04-03 10:29:15.618]: Info: Starting main loop
Apr 03 10:29:16 desktop sunshine[30594]: [2026-04-03 10:29:16.510]: Info: Avahi service desktop successfully established.
Apr 03 10:29:22 desktop sunshine[30594]: [2026-04-03 10:29:22.403]: Info: Trying encoder [vulkan]
Apr 03 10:29:22 desktop sunshine[30594]: [2026-04-03 10:29:22.403]: Info: Screencasting with KMS
Apr 03 10:29:22 desktop sunshine[30594]: [2026-04-03 10:29:22.403]: Info: /dev/dri/card1 -> amdgpu
Apr 03 10:29:22 desktop sunshine[30594]: [2026-04-03 10:29:22.403]: Info: Found monitor for DRM screencasting
Apr 03 10:29:22 desktop sunshine[30594]: [2026-04-03 10:29:22.403]: Info: Found connector ID [456]
Apr 03 10:29:22 desktop sunshine[30594]: [2026-04-03 10:29:22.404]: Info: Found cursor plane [422]
Apr 03 10:29:22 desktop sunshine[30594]: [2026-04-03 10:29:22.404]: Info: Creating encoder [h264_vulkan]
Apr 03 10:29:22 desktop sunshine[30594]: [2026-04-03 10:29:22.404]: Info: Color coding: SDR (Rec. 601)
Apr 03 10:29:22 desktop sunshine[30594]: [2026-04-03 10:29:22.404]: Info: Color depth: 8-bit
Apr 03 10:29:22 desktop sunshine[30594]: [2026-04-03 10:29:22.404]: Info: Color range: JPEG
Apr 03 10:29:22 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:22 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:23 desktop sunshine[30594]: [2026-04-03 10:29:23.011]: Info: Streaming bitrate is 1000000
Apr 03 10:29:23 desktop sunshine[30594]: [2026-04-03 10:29:23.011]: Info: Vulkan encode using GPU: AMD Radeon RX 9070 XT (RADV GFX1201)
Apr 03 10:29:23 desktop sunshine[30594]: [2026-04-03 10:29:23.501]: Info: Creating encoder [hevc_vulkan]
Apr 03 10:29:23 desktop sunshine[30594]: [2026-04-03 10:29:23.501]: Info: Color coding: SDR (Rec. 601)
Apr 03 10:29:23 desktop sunshine[30594]: [2026-04-03 10:29:23.501]: Info: Color depth: 8-bit
Apr 03 10:29:23 desktop sunshine[30594]: [2026-04-03 10:29:23.501]: Info: Color range: JPEG
Apr 03 10:29:23 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:24 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:24 desktop sunshine[30594]: [2026-04-03 10:29:24.055]: Info: Streaming bitrate is 1000000
Apr 03 10:29:24 desktop sunshine[30594]: [2026-04-03 10:29:24.056]: Info: Vulkan encode using GPU: AMD Radeon RX 9070 XT (RADV GFX1201)
Apr 03 10:29:24 desktop sunshine[30594]: [2026-04-03 10:29:24.547]: Info: Creating encoder [av1_vulkan]
Apr 03 10:29:24 desktop sunshine[30594]: [2026-04-03 10:29:24.547]: Info: Color coding: SDR (Rec. 601)
Apr 03 10:29:24 desktop sunshine[30594]: [2026-04-03 10:29:24.547]: Info: Color depth: 8-bit
Apr 03 10:29:24 desktop sunshine[30594]: [2026-04-03 10:29:24.547]: Info: Color range: JPEG
Apr 03 10:29:24 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:25 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:25 desktop sunshine[30594]: [2026-04-03 10:29:25.104]: Info: Streaming bitrate is 1000000
Apr 03 10:29:25 desktop sunshine[30594]: [2026-04-03 10:29:25.104]: Info: Vulkan encode using GPU: AMD Radeon RX 9070 XT (RADV GFX1201)
Apr 03 10:29:25 desktop sunshine[30594]: [2026-04-03 10:29:25.592]: Info: Screencasting with KMS
Apr 03 10:29:25 desktop sunshine[30594]: [2026-04-03 10:29:25.592]: Info: /dev/dri/card1 -> amdgpu
Apr 03 10:29:25 desktop sunshine[30594]: [2026-04-03 10:29:25.592]: Info: Found monitor for DRM screencasting
Apr 03 10:29:25 desktop sunshine[30594]: [2026-04-03 10:29:25.592]: Info: Found connector ID [456]
Apr 03 10:29:25 desktop sunshine[30594]: [2026-04-03 10:29:25.593]: Info: Found cursor plane [422]
Apr 03 10:29:25 desktop sunshine[30594]: [2026-04-03 10:29:25.593]: Info: Creating encoder [hevc_vulkan]
Apr 03 10:29:25 desktop sunshine[30594]: [2026-04-03 10:29:25.593]: Info: Color coding: SDR (Rec. 709)
Apr 03 10:29:25 desktop sunshine[30594]: [2026-04-03 10:29:25.593]: Info: Color depth: 10-bit
Apr 03 10:29:25 desktop sunshine[30594]: [2026-04-03 10:29:25.593]: Info: Color range: JPEG
Apr 03 10:29:25 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:26 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:26 desktop sunshine[30594]: [2026-04-03 10:29:26.151]: Info: Streaming bitrate is 1000000
Apr 03 10:29:26 desktop sunshine[30594]: [2026-04-03 10:29:26.152]: Info: Vulkan encode using GPU: AMD Radeon RX 9070 XT (RADV GFX1201)
Apr 03 10:29:26 desktop sunshine[30594]: [2026-04-03 10:29:26.637]: Info: Creating encoder [av1_vulkan]
Apr 03 10:29:26 desktop sunshine[30594]: [2026-04-03 10:29:26.638]: Info: Color coding: SDR (Rec. 709)
Apr 03 10:29:26 desktop sunshine[30594]: [2026-04-03 10:29:26.638]: Info: Color depth: 10-bit
Apr 03 10:29:26 desktop sunshine[30594]: [2026-04-03 10:29:26.638]: Info: Color range: JPEG
Apr 03 10:29:26 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:27 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.188]: Info: Streaming bitrate is 1000000
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.189]: Info: Vulkan encode using GPU: AMD Radeon RX 9070 XT (RADV GFX1201)
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.683]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.683]: Info:
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.683]: Info: // Ignore any errors mentioned above, they are not relevant. //
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.683]: Info:
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.683]: Info: Found H.264 encoder: h264_vulkan [vulkan]
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.683]: Info: Found HEVC encoder: hevc_vulkan [vulkan]
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.683]: Info: Found AV1 encoder: av1_vulkan [vulkan]
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.683]: Info: Executing [Desktop]
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.688]: Info: New streaming session started [active sessions: 1]
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.700]: Info: CLIENT CONNECTED
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.701]: Info: /dev/dri/card1 -> amdgpu
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.702]: Info: [wayland] Found display [wayland-0]
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.702]: Info: [wayland] Found interface: zxdg_output_manager_v1(31) version 3
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.702]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(57) version 5
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.702]: Info: [wayland] Found interface: wl_output(67) version 4
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.702]: Info: [wayland] Resolution: 1920x1080
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.702]: Info: [wayland] Offset: 0x0
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.702]: Info: [wayland] Logical size: 1920x1080
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.702]: Info: [wayland] Name: HDMI-A-1
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.702]: Info: [wayland] Found monitor: BNQ BenQ XL2411Z
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.702]: Info: -------- Start of KMS monitor list --------
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.702]: Info: Monitor 0 is HDMI-A-1: BNQ BenQ XL2411Z
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.702]: Info: --------- End of KMS monitor list ---------
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.702]: Info: Screencasting with KMS
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.702]: Info: /dev/dri/card1 -> amdgpu
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.702]: Info: Found monitor for DRM screencasting
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.702]: Info: Found connector ID [456]
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.702]: Info: Found cursor plane [422]
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.710]: Info: Creating encoder [hevc_vulkan]
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.710]: Info: Color coding: SDR (Rec. 709)
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.710]: Info: Color depth: 8-bit
Apr 03 10:29:27 desktop sunshine[30594]: [2026-04-03 10:29:27.710]: Info: Color range: JPEG
Apr 03 10:29:27 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:28 desktop sunshine[30594]: [2026-04-03 10:29:28.193]: Info: Setting default sink to: [sink-sunshine-stereo]
Apr 03 10:29:28 desktop sunshine[30594]: [2026-04-03 10:29:28.193]: Info: Found default monitor by name: sink-sunshine-stereo.monitor
Apr 03 10:29:28 desktop sunshine[30594]: [2026-04-03 10:29:28.217]: Info: Opus initialized: 48 kHz, 2 channels, 512 kbps (total), LOWDELAY
Apr 03 10:29:28 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:28 desktop sunshine[30594]: [2026-04-03 10:29:28.264]: Info: Streaming bitrate is 38988000
Apr 03 10:29:28 desktop sunshine[30594]: [2026-04-03 10:29:28.266]: Info: Vulkan encode using GPU: AMD Radeon RX 9070 XT (RADV GFX1201)
Apr 03 10:29:28 desktop sunshine[30594]: [2026-04-03 10:29:28.266]: Info: Minimum FPS target set to ~30fps (33.3333ms)
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.173]: Info: /dev/dri/card1 -> amdgpu
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.174]: Info: [wayland] Found display [wayland-0]
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.174]: Info: [wayland] Found interface: zxdg_output_manager_v1(31) version 3
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.174]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(57) version 5
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.174]: Info: [wayland] Found interface: wl_output(67) version 4
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.174]: Info: [wayland] Resolution: 1920x1080
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.174]: Info: [wayland] Offset: 0x0
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.174]: Info: [wayland] Logical size: 1920x1080
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.174]: Info: [wayland] Name: HDMI-A-1
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.174]: Info: [wayland] Found monitor: BNQ BenQ XL2411Z
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.174]: Info: -------- Start of KMS monitor list --------
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.174]: Info: Monitor 0 is HDMI-A-1: BNQ BenQ XL2411Z
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.174]: Info: --------- End of KMS monitor list ---------
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.174]: Info: Screencasting with KMS
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.174]: Info: /dev/dri/card1 -> amdgpu
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.174]: Info: Found monitor for DRM screencasting
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.174]: Info: Found connector ID [456]
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.174]: Info: Found cursor plane [422]
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.177]: Info: Creating encoder [hevc_vulkan]
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.177]: Info: Color coding: SDR (Rec. 709)
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.177]: Info: Color depth: 8-bit
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.177]: Info: Color range: JPEG
Apr 03 10:29:40 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:40 desktop sunshine[30594]: WARNING: radv is not a conformant Vulkan implementation, testing use only.
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.731]: Info: Streaming bitrate is 38988000
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.733]: Info: Vulkan encode using GPU: AMD Radeon RX 9070 XT (RADV GFX1201)
Apr 03 10:29:40 desktop sunshine[30594]: [2026-04-03 10:29:40.733]: Info: Minimum FPS target set to ~30fps (33.3333ms)
Apr 03 10:29:41 desktop systemd-coredump[30974]: Process 30594 (sunshine) of user 1000 dumped core.
Stack trace of thread 30904:
#0 0x0000556d71f0e1ee n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x3f81ee)
#1 0x0000556d71ed1594 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x3bb594)
#2 0x0000556d71ed17e7 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x3bb7e7)
#3 0x0000556d71d99c50 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x283c50)
#4 0x0000556d71d93ac3 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x27dac3)
#5 0x0000556d72d8a6f4 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x12746f4)
#6 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#7 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30764:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5e4f n/a (libc.so.6 + 0xa5e4f)
#2 0x00007f8ce34a6247 n/a (libc.so.6 + 0xa6247)
#3 0x00007f8ce34a8e3a pthread_cond_wait (libc.so.6 + 0xa8e3a)
#4 0x0000556d72cea9e1 _ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x11d49e1)
#5 0x0000556d71ccc60d n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x1b660d)
#6 0x0000556d71cea373 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x1d4373)
#7 0x0000556d72d8a6f4 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x12746f4)
#8 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#9 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30601:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5e4f n/a (libc.so.6 + 0xa5e4f)
#2 0x00007f8ce34fa2de clock_nanosleep (libc.so.6 + 0xfa2de)
#3 0x00007f8ce350a4f7 __nanosleep (libc.so.6 + 0x10a4f7)
#4 0x0000556d71e36cea n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x320cea)
#5 0x0000556d72d8a6f4 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x12746f4)
#6 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#7 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30766:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5e4f n/a (libc.so.6 + 0xa5e4f)
#2 0x00007f8ce34a6247 n/a (libc.so.6 + 0xa6247)
#3 0x00007f8ce34a8e3a pthread_cond_wait (libc.so.6 + 0xa8e3a)
#4 0x0000556d72cea9e1 _ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x11d49e1)
#5 0x0000556d71ccc60d n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x1b660d)
#6 0x0000556d71d72fea n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x25cfea)
#7 0x0000556d72d8a6f4 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x12746f4)
#8 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#9 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30772:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5edf n/a (libc.so.6 + 0xa5edf)
#2 0x00007f8ce3540761 epoll_wait (libc.so.6 + 0x140761)
#3 0x0000556d71c375b6 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x1215b6)
#4 0x0000556d71c3b045 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x125045)
#5 0x0000556d71cd2c65 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x1bcc65)
#6 0x0000556d71d6ce25 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x256e25)
#7 0x0000556d72d8a6f4 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x12746f4)
#8 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#9 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30770:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5edf n/a (libc.so.6 + 0xa5edf)
#2 0x00007f8ce3540761 epoll_wait (libc.so.6 + 0x140761)
#3 0x0000556d71c375b6 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x1215b6)
#4 0x0000556d71c3b045 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x125045)
#5 0x0000556d71cd2c65 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x1bcc65)
#6 0x0000556d71d2f905 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x219905)
#7 0x0000556d72d8a6f4 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x12746f4)
#8 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#9 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30773:
#0 0x00007f8ce353db1d syscall (libc.so.6 + 0x13db1d)
#1 0x00007f8ce492ff75 g_cond_wait (libglib-2.0.so.0 + 0xa3f75)
#2 0x00007f8ce48b380d g_async_queue_pop_unlocked (libglib-2.0.so.0 + 0x2780d)
#3 0x00007f8ce493d9e7 n/a (libglib-2.0.so.0 + 0xb19e7)
#4 0x00007f8ce493d4d9 n/a (libglib-2.0.so.0 + 0xb14d9)
#5 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#6 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30774:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5edf n/a (libc.so.6 + 0xa5edf)
#2 0x00007f8ce3533503 ppoll (libc.so.6 + 0x133503)
#3 0x00007f8ce48f6a10 n/a (libglib-2.0.so.0 + 0x6aa10)
#4 0x00007f8ce48f6af2 g_main_context_iteration (libglib-2.0.so.0 + 0x6aaf2)
#5 0x00007f8ce48f6b42 n/a (libglib-2.0.so.0 + 0x6ab42)
#6 0x00007f8ce493d4d9 n/a (libglib-2.0.so.0 + 0xb14d9)
#7 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#8 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30776:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5edf n/a (libc.so.6 + 0xa5edf)
#2 0x00007f8ce3533503 ppoll (libc.so.6 + 0x133503)
#3 0x00007f8ce48f6a10 n/a (libglib-2.0.so.0 + 0x6aa10)
#4 0x00007f8ce48f6caf g_main_loop_run (libglib-2.0.so.0 + 0x6acaf)
#5 0x00007f8ce4b3726c n/a (libgio-2.0.so.0 + 0x12b26c)
#6 0x00007f8ce493d4d9 n/a (libglib-2.0.so.0 + 0xb14d9)
#7 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#8 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30594:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5edf n/a (libc.so.6 + 0xa5edf)
#2 0x00007f8ce3533503 ppoll (libc.so.6 + 0x133503)
#3 0x00007f8ce48f6a10 n/a (libglib-2.0.so.0 + 0x6aa10)
#4 0x00007f8ce48f6af2 g_main_context_iteration (libglib-2.0.so.0 + 0x6aaf2)
#5 0x00007f8ce4e28cb7 gtk_main_iteration_do (libgtk-3.so.0 + 0x228cb7)
#6 0x0000556d71c2982e main (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x11382e)
#7 0x00007f8ce3427c0e n/a (libc.so.6 + 0x27c0e)
#8 0x00007f8ce3427d4b __libc_start_main (libc.so.6 + 0x27d4b)
#9 0x0000556d71c366c5 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x1206c5)
Stack trace of thread 30771:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5edf n/a (libc.so.6 + 0xa5edf)
#2 0x00007f8ce3540761 epoll_wait (libc.so.6 + 0x140761)
#3 0x0000556d71c375b6 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x1215b6)
#4 0x0000556d71c3b045 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x125045)
#5 0x0000556d71cd2c65 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x1bcc65)
#6 0x0000556d71d30dc5 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x21adc5)
#7 0x0000556d72d8a6f4 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x12746f4)
#8 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#9 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30899:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5e4f n/a (libc.so.6 + 0xa5e4f)
#2 0x00007f8ce34a6247 n/a (libc.so.6 + 0xa6247)
#3 0x00007f8ce34a8e3a pthread_cond_wait (libc.so.6 + 0xa8e3a)
#4 0x0000556d72cea9e1 _ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x11d49e1)
#5 0x0000556d71d8bcd8 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x275cd8)
#6 0x0000556d72d8a6f4 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x12746f4)
#7 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#8 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30903:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5e4f n/a (libc.so.6 + 0xa5e4f)
#2 0x00007f8ce34a6247 n/a (libc.so.6 + 0xa6247)
#3 0x00007f8ce34a8e3a pthread_cond_wait (libc.so.6 + 0xa8e3a)
#4 0x00007f8ce40c5070 pa_threaded_mainloop_wait (libpulse.so.0 + 0x38070)
#5 0x00007f8ce4877b49 pa_simple_read (libpulse-simple.so.0 + 0x2b49)
#6 0x0000556d71d94c07 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x27ec07)
#7 0x0000556d72d8a6f4 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x12746f4)
#8 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#9 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30931:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5edf n/a (libc.so.6 + 0xa5edf)
#2 0x00007f8ce3532f8a __poll (libc.so.6 + 0x132f8a)
#3 0x00007f8ce40c3807 n/a (libpulse.so.0 + 0x36807)
#4 0x00007f8ce40ab041 pa_mainloop_poll (libpulse.so.0 + 0x1e041)
#5 0x00007f8ce40b6d6e pa_mainloop_iterate (libpulse.so.0 + 0x29d6e)
#6 0x00007f8ce40b6e31 pa_mainloop_run (libpulse.so.0 + 0x29e31)
#7 0x00007f8ce40c8f3d n/a (libpulse.so.0 + 0x3bf3d)
#8 0x00007f8ce0164246 n/a (libpulsecommon-17.0.so + 0x65246)
#9 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#10 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30935:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5e4f n/a (libc.so.6 + 0xa5e4f)
#2 0x00007f8ce34a6247 n/a (libc.so.6 + 0xa6247)
#3 0x00007f8ce34a8e3a pthread_cond_wait (libc.so.6 + 0xa8e3a)
#4 0x0000556d72cea9e1 _ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x11d49e1)
#5 0x0000556d71dc03ad n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x2aa3ad)
#6 0x0000556d71dc126a n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x2ab26a)
#7 0x0000556d72d8a6f4 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x12746f4)
#8 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#9 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30911:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5e4f n/a (libc.so.6 + 0xa5e4f)
#2 0x00007f8ce34fa2de clock_nanosleep (libc.so.6 + 0xfa2de)
#3 0x00007f8ce350a4f7 __nanosleep (libc.so.6 + 0x10a4f7)
#4 0x0000556d71da8d15 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x292d15)
#5 0x0000556d71db32d6 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x29d2d6)
#6 0x0000556d72d8a6f4 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x12746f4)
#7 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#8 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30901:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5edf n/a (libc.so.6 + 0xa5edf)
#2 0x00007f8ce3532f8a __poll (libc.so.6 + 0x132f8a)
#3 0x0000556d71d81abc n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x26babc)
#4 0x0000556d72d8a6f4 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x12746f4)
#5 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#6 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30767:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5edf n/a (libc.so.6 + 0xa5edf)
#2 0x00007f8ce3540761 epoll_wait (libc.so.6 + 0x140761)
#3 0x0000556d71c375b6 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x1215b6)
#4 0x0000556d71d746ed n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x25e6ed)
#5 0x0000556d72d8a6f4 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x12746f4)
#6 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#7 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30599:
#0 0x00007f8ce353db1d syscall (libc.so.6 + 0x13db1d)
#1 0x00007f8ce42f67e3 _ZN5boost3log11v2_mt_posix3aux18atomic_based_event4waitEv (libboost_log.so.1.90.0 + 0x667e3)
#2 0x0000556d71cce2cb n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x1b82cb)
#3 0x0000556d72d8a6f4 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x12746f4)
#4 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#5 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30769:
#0 0x00007f8ce353db1d syscall (libc.so.6 + 0x13db1d)
#1 0x00007f8ce492ff75 g_cond_wait (libglib-2.0.so.0 + 0xa3f75)
#2 0x00007f8ce48b372d g_async_queue_pop (libglib-2.0.so.0 + 0x2772d)
#3 0x00007f8ce2c71878 n/a (libpangoft2-1.0.so.0 + 0xc878)
#4 0x00007f8ce493d4d9 n/a (libglib-2.0.so.0 + 0xb14d9)
#5 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#6 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30961:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5e4f n/a (libc.so.6 + 0xa5e4f)
#2 0x00007f8ce34a6247 n/a (libc.so.6 + 0xa6247)
#3 0x00007f8ce34a8e3a pthread_cond_wait (libc.so.6 + 0xa8e3a)
#4 0x00007f8cbf12c4fe n/a (libvulkan_radeon.so + 0x32c4fe)
#5 0x00007f8cbf0f6a4d n/a (libvulkan_radeon.so + 0x2f6a4d)
#6 0x00007f8cbf12c46c n/a (libvulkan_radeon.so + 0x32c46c)
#7 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#8 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30962:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5e4f n/a (libc.so.6 + 0xa5e4f)
#2 0x00007f8ce34a6247 n/a (libc.so.6 + 0xa6247)
#3 0x00007f8ce34a8e3a pthread_cond_wait (libc.so.6 + 0xa8e3a)
#4 0x00007f8cbf12c4fe n/a (libvulkan_radeon.so + 0x32c4fe)
#5 0x00007f8cbf0f6a4d n/a (libvulkan_radeon.so + 0x2f6a4d)
#6 0x00007f8cbf12c46c n/a (libvulkan_radeon.so + 0x32c46c)
#7 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#8 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30963:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5e4f n/a (libc.so.6 + 0xa5e4f)
#2 0x00007f8ce34a6247 n/a (libc.so.6 + 0xa6247)
#3 0x00007f8ce34a8e3a pthread_cond_wait (libc.so.6 + 0xa8e3a)
#4 0x00007f8cbc3c69e1 n/a (libMangoHud.so + 0x1c69e1)
#5 0x00007f8cbc282eec n/a (libMangoHud.so + 0x82eec)
#6 0x00007f8cbc44c404 n/a (libMangoHud.so + 0x24c404)
#7 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#8 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30768:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5edf n/a (libc.so.6 + 0xa5edf)
#2 0x00007f8ce3532f8a __poll (libc.so.6 + 0x132f8a)
#3 0x00007f8ce5641901 avahi_simple_poll_run (libavahi-common.so.3 + 0x6901)
#4 0x00007f8ce5641ab9 avahi_simple_poll_iterate (libavahi-common.so.3 + 0x6ab9)
#5 0x00007f8ce5641d3e avahi_simple_poll_loop (libavahi-common.so.3 + 0x6d3e)
#6 0x0000556d72d8a6f4 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x12746f4)
#7 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#8 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30930:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5edf n/a (libc.so.6 + 0xa5edf)
#2 0x00007f8ce3533503 ppoll (libc.so.6 + 0x133503)
#3 0x00007f8ce40ab0c3 pa_mainloop_poll (libpulse.so.0 + 0x1e0c3)
#4 0x00007f8ce40b6d6e pa_mainloop_iterate (libpulse.so.0 + 0x29d6e)
#5 0x00007f8ce40b6e31 pa_mainloop_run (libpulse.so.0 + 0x29e31)
#6 0x0000556d71e35f20 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x31ff20)
#7 0x0000556d72d8a6f4 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x12746f4)
#8 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#9 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30972:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5e4f n/a (libc.so.6 + 0xa5e4f)
#2 0x00007f8ce34fa2de clock_nanosleep (libc.so.6 + 0xfa2de)
#3 0x00007f8ce350a4f7 __nanosleep (libc.so.6 + 0x10a4f7)
#4 0x00007f8cbc2f6d40 n/a (libMangoHud.so + 0xf6d40)
#5 0x00007f8cbc44c404 n/a (libMangoHud.so + 0x24c404)
#6 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#7 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30900:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5e4f n/a (libc.so.6 + 0xa5e4f)
#2 0x00007f8ce34a6247 n/a (libc.so.6 + 0xa6247)
#3 0x00007f8ce34a8e3a pthread_cond_wait (libc.so.6 + 0xa8e3a)
#4 0x0000556d72cea9e1 _ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x11d49e1)
#5 0x0000556d71d87513 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x271513)
#6 0x0000556d72d8a6f4 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x12746f4)
#7 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#8 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30600:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5e4f n/a (libc.so.6 + 0xa5e4f)
#2 0x00007f8ce34a6247 n/a (libc.so.6 + 0xa6247)
#3 0x00007f8ce34a93dd pthread_cond_clockwait (libc.so.6 + 0xa93dd)
#4 0x0000556d71ccadc8 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x1b4dc8)
#5 0x0000556d72d8a6f4 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x12746f4)
#6 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#7 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30902:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5edf n/a (libc.so.6 + 0xa5edf)
#2 0x00007f8ce3540761 epoll_wait (libc.so.6 + 0x140761)
#3 0x0000556d71c375b6 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x1215b6)
#4 0x0000556d71c3b045 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x125045)
#5 0x0000556d71d84eeb n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x26eeeb)
#6 0x0000556d72d8a6f4 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x12746f4)
#7 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#8 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30765:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5e4f n/a (libc.so.6 + 0xa5e4f)
#2 0x00007f8ce34a6247 n/a (libc.so.6 + 0xa6247)
#3 0x00007f8ce34a8e3a pthread_cond_wait (libc.so.6 + 0xa8e3a)
#4 0x0000556d72cea9e1 _ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x11d49e1)
#5 0x0000556d71ccc60d n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x1b660d)
#6 0x0000556d71d490dc n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x2330dc)
#7 0x0000556d72d8a6f4 n/a (/usr/bin/sunshine-2026.402.184413.r0.g5fba591 + 0x12746f4)
#8 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#9 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30777:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5edf n/a (libc.so.6 + 0xa5edf)
#2 0x00007f8ce3533503 ppoll (libc.so.6 + 0x133503)
#3 0x00007f8ce48f6a10 n/a (libglib-2.0.so.0 + 0x6aa10)
#4 0x00007f8ce48f6af2 g_main_context_iteration (libglib-2.0.so.0 + 0x6aaf2)
#5 0x00007f8cdd25a8ce n/a (libdconfsettings.so + 0x78ce)
#6 0x00007f8ce493d4d9 n/a (libglib-2.0.so.0 + 0xb14d9)
#7 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#8 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
Stack trace of thread 30964:
#0 0x00007f8ce34b2422 n/a (libc.so.6 + 0xb2422)
#1 0x00007f8ce34a5e4f n/a (libc.so.6 + 0xa5e4f)
#2 0x00007f8ce34fa2de clock_nanosleep (libc.so.6 + 0xfa2de)
#3 0x00007f8ce350a4f7 __nanosleep (libc.so.6 + 0x10a4f7)
#4 0x00007f8ce35401fb usleep (libc.so.6 + 0x1401fb)
#5 0x00007f8cbc2e5b28 n/a (libMangoHud.so + 0xe5b28)
#6 0x00007f8cbc44c404 n/a (libMangoHud.so + 0x24c404)
#7 0x00007f8ce34a9ad3 n/a (libc.so.6 + 0xa9ad3)
#8 0x00007f8ce354067c n/a (libc.so.6 + 0x14067c)
ELF object binary architecture: AMD x86-64
Apr 03 10:29:41 desktop systemd[2649]: app-dev.lizardbyte.app.Sunshine.service: Main process exited, code=dumped, status=11/SEGV
Apr 03 10:29:41 desktop systemd[2649]: app-dev.lizardbyte.app.Sunshine.service: Failed with result 'core-dump'.
Apr 03 10:29:41 desktop systemd[2649]: app-dev.lizardbyte.app.Sunshine.service: Consumed 2.386s CPU time over 36.451s wall clock time, 249M memory peak.
Online logs
No response
Is there an existing issue for this?
Is your issue described in the documentation?
Is your issue present in the latest beta/pre-release?
This issue is present in the latest pre-release
Describe the Bug
During the development of #4931 I've noted a segfault when trying to switch between displays very quickly (by button mashing the switching shortcut to the same display, e.g. CTRL+ALT+SHIFT+F1).
This can be reproduced consistently with not only portalgrab but other capture methods (tested KMS) as well (at least on linux). It is also occurring regardless of encoder (tested vulkan and vaapi).
Expected Behavior
Sunshine should not crash when switching screens too quickly.
Additional Context
In video.cpp the switch_display_event is popped before the reset_display call has even started. Which would allow the display reset to be stacked onto another potentially leading to this issue if I'm understanding this correctly:
Sunshine/src/video.cpp
Lines 1478 to 1484 in b172a98
Changing this to finish the switch_display_event after reset_display has concluded might fix the issue. Also not sure if it is desirable to do a reset_display when the same display is selected (identified by display_name, not display_index) as that will just force a re-init of the existing capture.
Host Operating System
Linux
Operating System Version
CachyOS latest
Architecture
amd64/x86_64
Package
Linux - AUR (Third Party)
GPU Type
AMD
GPU Model
RX9070XT
GPU Driver/Mesa Version
26.0.3
Capture Method
XDG Portal Grab (Linux)
KMS (Linux)
possibly others (not tested)
Apps
Log output
Online logs
No response