LizardByte / Sunshine

Self-hosted game stream host for Moonlight.
http://app.lizardbyte.dev/Sunshine/
GNU General Public License v3.0
17.66k stars 855 forks source link

AMD VAAPI Decoding segfaulting #1830

Closed thatsysadmin closed 7 months ago

thatsysadmin commented 10 months ago

Is there an existing issue for this?

Is your issue described in the documentation?

Is your issue present in the nightly release?

Describe the Bug

When running Sunshine, when attempting to launch with VAAPI, Sunshine segfaults.

Before segfaulting, Sunshine notes that Warning: [h264_vaapi @ 0x369ffc0] Driver does not support some wanted packed headers (wanted 0xd, found 0). with file parse errors pointing to OpenGL shaders. Not sure what Sunshine needs OpenGL shaders for.

Expected Behavior

Sunshine is able to use VAAPI with H264/HEVC to stream.

Additional Context

While I doubt that it's affecting anything, I'm using MUTTER_DEBUG_DISABLE_HW_CURSORS=1 and MUTTER_DEBUG_USE_KMS_MODIFIERS=0 to get the mouse cursor to show up inside of the stream. (#93)

Host Operating System

Linux

Operating System Version

Fedora 38, Kernel 6.5.7-200.fc38.x86_64 Fedora 39, Kernel 6.6.11-200.fc39.x86_64 tested as well on 2/4/2024

Architecture

64 bit

Sunshine commit or version

0a56394 040c3a6 tested on 2/4/2024 as well.

Package

Linux - AppImage

GPU Type

AMD

GPU Model

Radeon Pro W5700

GPU Driver/Mesa Version

Gallium driver 23.1.8 for AMD Radeon Pro W5700 (navi10, LLVM 16.0.6, DRM 3.54, 6.5.7-200.fc38.x86_64)

Capture Method (Linux Only)

KMS

Config

output_name = 0
capture = kms
hevc_mode = 1
min_threads = 4
#encoder = software
adapter_name = /dev/dri/renderD128

Relevant log output

[root@[redacted]]/mnt/ramdisk/Sunshine/build# ./sunshine
[adapter_name] -- [/dev/dri/renderD128]
[min_threads] -- [4]
[hevc_mode] -- [1]
[capture] -- [kms]
[output_name] -- [0]
[2023:11:07:21:26:47]: Info: Sunshine version: 0.21.0.0a56394
[2023:11:07:21:26:47]: Warning: Couldn't find app image at path [desktop.png]
[2023:11:07:21:26:47]: Warning: Couldn't find app image at path [desktop.png]
[2023:11:07:21:26:47]: Warning: Couldn't find app image at path [steam.png]
[2023:11:07:21:26:47]: Error: Environment variable WAYLAND_DISPLAY has not been defined
[2023:11:07:21:26:47]: Warning: Failed to create system tray
[2023:11:07:21:26:47]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:11:07:21:26:47]: Info: Trying encoder [nvenc]
[2023:11:07:21:26:47]: Info: Screencasting with KMS
[2023:11:07:21:26:47]: Info: Found monitor for DRM screencasting
[2023:11:07:21:26:47]: Info: Screencasting with KMS
[2023:11:07:21:26:47]: Info: Found monitor for DRM screencasting
[2023:11:07:21:26:47]: Info: SDR color coding [Rec. 601]
[2023:11:07:21:26:47]: Info: Color depth: 8-bit
[2023:11:07:21:26:47]: Info: Color range: [JPEG]

**<snip: nvenc fails because there's no nvidia drivers, nvidia cards are binded to vfio-pci>**

[2023:11:07:21:26:47]: Info: Trying encoder [vaapi]
[2023:11:07:21:26:47]: Info: Screencasting with KMS
[2023:11:07:21:26:47]: Info: Found monitor for DRM screencasting
libva info: VA-API version 1.18.0
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_18
libva info: va_openDriver() returns 0
[2023:11:07:21:26:47]: Info: Screencasting with KMS
[2023:11:07:21:26:47]: Info: Found monitor for DRM screencasting
libva info: VA-API version 1.18.0
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_18
libva info: va_openDriver() returns 0
[2023:11:07:21:26:47]: Info: SDR color coding [Rec. 601]
[2023:11:07:21:26:47]: Info: Color depth: 8-bit
[2023:11:07:21:26:47]: Info: Color range: [JPEG]
libva info: VA-API version 1.18.0
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_18
libva info: va_openDriver() returns 0
[2023:11:07:21:26:47]: Warning: [h264_vaapi @ 0x369ffc0] Driver does not support some wanted packed headers (wanted 0xd, found 0).
[2023:11:07:21:26:47]: Error: /usr/local/assets/shaders/opengl/ConvertUV.frag: 0:1(1): error: syntax error, unexpected end of file
[2023:11:07:21:26:47]: Error: /usr/local/assets/shaders/opengl/ConvertUV.vert: 0:1(1): error: syntax error, unexpected end of file
[2023:11:07:21:26:47]: Error: /usr/local/assets/shaders/opengl/ConvertY.frag: 0:1(1): error: syntax error, unexpected end of file
[2023:11:07:21:26:47]: Error: /usr/local/assets/shaders/opengl/Scene.vert: 0:1(1): error: syntax error, unexpected end of file
[2023:11:07:21:26:47]: Error: /usr/local/assets/shaders/opengl/Scene.frag: 0:1(1): error: syntax error, unexpected end of file
zsh: segmentation fault (core dumped)  ./sunshine
kevinhwang91 commented 10 months ago

My 7840hs machine also crash with vaapi encoder under X11, here is the log, hope this helps:


Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Sunshine version: 0.21.0
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Error: Environment variable WAYLAND_DISPLAY has not been defined
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Detecting monitors
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Detected monitor 0: DisplayPort-0, connected: false
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Detected monitor 1: HDMI-A-0, connected: true
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Detected monitor 2: DisplayPort-1, connected: false
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Detected monitor 3: DisplayPort-2, connected: false
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Detected monitor 4: DisplayPort-3, connected: false
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Detected monitor 5: DisplayPort-4, connected: false
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Detected monitor 6: DisplayPort-5, connected: false
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Detected monitor 7: DisplayPort-6, connected: false
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Detected monitor 8: DisplayPort-7, connected: false
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Trying encoder [nvenc]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Screencasting with KMS
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Found monitor for DRM screencasting
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: System tray created
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Screencasting with KMS
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Found monitor for DRM screencasting
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: SDR color coding [Rec. 601]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Color depth: 8-bit
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Color range: [JPEG]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Error: [AVHWDeviceContext @ 0x561d6a1c86c0] Cannot load libcuda.so.1
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Error: [AVHWDeviceContext @ 0x561d6a1c86c0] Could not dynamically load CUDA
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Error: Failed to create a CUDA device: Operation not permitted
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Screencasting with KMS
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Found monitor for DRM screencasting
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: SDR color coding [Rec. 601]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Color depth: 8-bit
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Color range: [JPEG]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Error: [AVHWDeviceContext @ 0x561d6a32db00] Cannot load libcuda.so.1
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Error: [AVHWDeviceContext @ 0x561d6a32db00] Could not dynamically load CUDA
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Error: Failed to create a CUDA device: Operation not permitted
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Screencasting with KMS
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Found monitor for DRM screencasting
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: SDR color coding [Rec. 601]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Color depth: 8-bit
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Color range: [JPEG]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Error: [AVHWDeviceContext @ 0x561d6a119880] Cannot load libcuda.so.1
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Error: [AVHWDeviceContext @ 0x561d6a119880] Could not dynamically load CUDA
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Error: Failed to create a CUDA device: Operation not permitted
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Screencasting with KMS
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Found monitor for DRM screencasting
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: SDR color coding [Rec. 601]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Color depth: 8-bit
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Color range: [JPEG]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Error: [AVHWDeviceContext @ 0x561d6a3259c0] Cannot load libcuda.so.1
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Error: [AVHWDeviceContext @ 0x561d6a3259c0] Could not dynamically load CUDA
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Error: Failed to create a CUDA device: Operation not permitted
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Encoder [nvenc] failed
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Trying encoder [vaapi]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Screencasting with KMS
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Found monitor for DRM screencasting
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Screencasting with KMS
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Found monitor for DRM screencasting
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: SDR color coding [Rec. 601]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Color depth: 8-bit
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Color range: [JPEG]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Warning: [h264_vaapi @ 0x561d6a1c8280] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Screencasting with KMS
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Found monitor for DRM screencasting
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: SDR color coding [Rec. 601]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Color depth: 8-bit
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Color range: [JPEG]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Warning: [hevc_vaapi @ 0x561d6a1c8280] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Screencasting with KMS
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Found monitor for DRM screencasting
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: SDR color coding [Rec. 601]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Color depth: 8-bit
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Color range: [JPEG]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Warning: [av1_vaapi @ 0x561d6a1c8280] Multiple slices were requested but this codec does not support controlling slices.
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Screencasting with KMS
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Found monitor for DRM screencasting
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: SDR color coding [Rec. 709]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Color depth: 10-bit
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Color range: [JPEG]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Error: [AVHWFramesContext @ 0x561d6a4a78c0] Unsupported format: yuv420p10le.
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Screencasting with KMS
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Found monitor for DRM screencasting
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: SDR color coding [Rec. 709]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Color depth: 10-bit
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Color range: [JPEG]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Error: [AVHWFramesContext @ 0x561d6a5f5300] Unsupported format: yuv420p10le.
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info:
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: // Ignore any errors mentioned above, they are not relevant. //
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info:
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Found H.264 encoder: h264_vaapi [vaapi]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Found HEVC encoder: hevc_vaapi [vaapi]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Found AV1 encoder: av1_vaapi [vaapi]
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Error: Failed to create client: Daemon not running
Nov 09 23:56:38 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:38]: Info: Configuration UI available at [https://localhost:47990]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Trying encoder [nvenc]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Screencasting with KMS
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Found monitor for DRM screencasting
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Screencasting with KMS
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Found monitor for DRM screencasting
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: SDR color coding [Rec. 601]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Color depth: 8-bit
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Color range: [JPEG]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Error: [AVHWDeviceContext @ 0x7f0ae01803c0] Cannot load libcuda.so.1
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Error: [AVHWDeviceContext @ 0x7f0ae01803c0] Could not dynamically load CUDA
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Error: Failed to create a CUDA device: Operation not permitted
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Screencasting with KMS
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Found monitor for DRM screencasting
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: SDR color coding [Rec. 601]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Color depth: 8-bit
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Color range: [JPEG]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Error: [AVHWDeviceContext @ 0x7f0ae0265900] Cannot load libcuda.so.1
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Error: [AVHWDeviceContext @ 0x7f0ae0265900] Could not dynamically load CUDA
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Error: Failed to create a CUDA device: Operation not permitted
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Encoder [nvenc] failed
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Trying encoder [vaapi]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Screencasting with KMS
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Found monitor for DRM screencasting
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Screencasting with KMS
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Found monitor for DRM screencasting
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: SDR color coding [Rec. 601]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Color depth: 8-bit
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Color range: [JPEG]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Warning: [h264_vaapi @ 0x7f0ae0289ec0] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Screencasting with KMS
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Found monitor for DRM screencasting
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: SDR color coding [Rec. 601]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Color depth: 8-bit
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Color range: [JPEG]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Warning: [hevc_vaapi @ 0x7f0ae0289ec0] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Screencasting with KMS
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Found monitor for DRM screencasting
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: SDR color coding [Rec. 601]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Color depth: 8-bit
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Color range: [JPEG]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Warning: [av1_vaapi @ 0x7f0ae0289ec0] Multiple slices were requested but this codec does not support controlling slices.
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Screencasting with KMS
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Found monitor for DRM screencasting
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: SDR color coding [Rec. 709]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Color depth: 10-bit
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Color range: [JPEG]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Error: [AVHWFramesContext @ 0x7f0ae0c52240] Unsupported format: yuv420p10le.
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Screencasting with KMS
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Found monitor for DRM screencasting
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: SDR color coding [Rec. 709]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Color depth: 10-bit
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Color range: [JPEG]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Error: [AVHWFramesContext @ 0x7f0ae0266ac0] Unsupported format: yuv420p10le.
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info:
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: // Ignore any errors mentioned above, they are not relevant. //
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info:
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Found H.264 encoder: h264_vaapi [vaapi]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Found HEVC encoder: hevc_vaapi [vaapi]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Found AV1 encoder: av1_vaapi [vaapi]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Executing [Desktop]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: CLIENT CONNECTED
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Screencasting with KMS
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Found monitor for DRM screencasting
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: SDR color coding [Rec. 709]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Color depth: 8-bit
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Info: Color range: [MPEG]
Nov 09 23:56:40 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:40]: Warning: [hevc_vaapi @ 0x7f0adc23a0c0] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
Nov 09 23:56:41 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:41]: Info: Setting default sink to: [sink-sunshine-stereo]
Nov 09 23:56:41 beelink-gtr7 sunshine[221176]: [2023:11:09:23:56:41]: Info: Found default monitor by name: sink-sunshine-stereo.monitor
Nov 10 00:00:16 beelink-gtr7 systemd-coredump[222803]: Process 221176 (sunshine) of user 1000 dumped core.

                                                       Stack trace of thread 221672:
                                                       #0  0x0000561d66e42814 n/a (sunshine-0.21.0 + 0x227814)
                                                       #1  0x0000561d66e2e71a n/a (sunshine-0.21.0 + 0x21371a)
                                                       #2  0x0000561d66ddf11d n/a (sunshine-0.21.0 + 0x1c411d)
                                                       #3  0x0000561d66dec05f n/a (sunshine-0.21.0 + 0x1d105f)
                                                       #4  0x00007f0b36ee1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221176:
                                                       #0  0x00007f0b36b48bf6 epoll_wait (libc.so.6 + 0x110bf6)
                                                       #1  0x0000561d66d2141e n/a (sunshine-0.21.0 + 0x10641e)
                                                       #2  0x0000561d66db791e n/a (sunshine-0.21.0 + 0x19c91e)
                                                       #3  0x0000561d66ccdd41 main (sunshine-0.21.0 + 0xb2d41)
                                                       #4  0x00007f0b36a5fcd0 n/a (libc.so.6 + 0x27cd0)
                                                       #5  0x00007f0b36a5fd8a __libc_start_main (libc.so.6 + 0x27d8a)
                                                       #6  0x0000561d66cd3c35 n/a (sunshine-0.21.0 + 0xb8c35)

                                                       Stack trace of thread 221182:
                                                       #0  0x00007f0b36b4673d syscall (libc.so.6 + 0x10e73d)
                                                       #1  0x00007f0b378e3653 _ZN5boost3log11v2_mt_posix3aux18atomic_based_event4waitEv (libboost_log.so.1.83.0 + 0x65653)
                                                       #2  0x0000561d66d0bd51 n/a (sunshine-0.21.0 + 0xf0d51)
                                                       #3  0x00007f0b370e4f2b n/a (libboost_thread.so.1.83.0 + 0x12f2b)
                                                       #4  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #5  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221183:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b36ed9e11 __gthread_cond_wait (libstdc++.so.6 + 0xd9e11)
                                                       #3  0x0000561d66d05edb n/a (sunshine-0.21.0 + 0xeaedb)
                                                       #4  0x00007f0b36ee1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221184:
                                                       #0  0x00007f0b36b3af6f __poll (libc.so.6 + 0x102f6f)
                                                       #1  0x00007f0b366d2276 n/a (libglib-2.0.so.0 + 0xb8276)
                                                       #2  0x00007f0b36672162 g_main_context_iteration (libglib-2.0.so.0 + 0x58162)
                                                       #3  0x00007f0b37ded057 gtk_main_iteration_do (libgtk-3.so.0 + 0x1ed057)
                                                       #4  0x0000561d66e4df8e n/a (sunshine-0.21.0 + 0x232f8e)
                                                       #5  0x0000561d66e1c5fb n/a (sunshine-0.21.0 + 0x2015fb)
                                                       #6  0x00007f0b36ee1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                       #7  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #8  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221186:
                                                       #0  0x00007f0b36b0d7f5 clock_nanosleep (libc.so.6 + 0xd57f5)
                                                       #1  0x00007f0b36b1f8c7 __nanosleep (libc.so.6 + 0xe78c7)
                                                       #2  0x0000561d66e9449d n/a (sunshine-0.21.0 + 0x27949d)
                                                       #3  0x00007f0b36ee1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                       #4  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #5  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221221:
                                                       #0  0x00007f0b36b4673d syscall (libc.so.6 + 0x10e73d)
                                                       #1  0x00007f0b366cd2b7 g_cond_wait (libglib-2.0.so.0 + 0xb32b7)
                                                       #2  0x00007f0b3663f1b4 n/a (libglib-2.0.so.0 + 0x251b4)
                                                       #3  0x00007f0b366a7a7e n/a (libglib-2.0.so.0 + 0x8da7e)
                                                       #4  0x00007f0b366a59f5 n/a (libglib-2.0.so.0 + 0x8b9f5)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221456:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b36ed9e11 __gthread_cond_wait (libstdc++.so.6 + 0xd9e11)
                                                       #3  0x0000561d66d1f82c n/a (sunshine-0.21.0 + 0x10482c)
                                                       #4  0x00007f0b36ee1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221223:
                                                       #0  0x00007f0b36b3af6f __poll (libc.so.6 + 0x102f6f)
                                                       #1  0x00007f0b366d2276 n/a (libglib-2.0.so.0 + 0xb8276)
                                                       #2  0x00007f0b36672162 g_main_context_iteration (libglib-2.0.so.0 + 0x58162)
                                                       #3  0x00007f0b366721b2 n/a (libglib-2.0.so.0 + 0x581b2)
                                                       #4  0x00007f0b366a59f5 n/a (libglib-2.0.so.0 + 0x8b9f5)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221457:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b36ed9e11 __gthread_cond_wait (libstdc++.so.6 + 0xd9e11)
                                                       #3  0x0000561d66dac53c n/a (sunshine-0.21.0 + 0x19153c)
                                                       #4  0x00007f0b36ee1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221226:
                                                       #0  0x00007f0b36b3af6f __poll (libc.so.6 + 0x102f6f)
                                                       #1  0x00007f0b366d2276 n/a (libglib-2.0.so.0 + 0xb8276)
                                                       #2  0x00007f0b36674b97 g_main_loop_run (libglib-2.0.so.0 + 0x5ab97)
                                                       #3  0x00007f0b3687814c n/a (libgio-2.0.so.0 + 0x11214c)
                                                       #4  0x00007f0b366a59f5 n/a (libglib-2.0.so.0 + 0x8b9f5)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221458:
                                                       #0  0x00007f0b36b48bf6 epoll_wait (libc.so.6 + 0x110bf6)
                                                       #1  0x0000561d66d2141e n/a (sunshine-0.21.0 + 0x10641e)
                                                       #2  0x0000561d66d11939 n/a (sunshine-0.21.0 + 0xf6939)
                                                       #3  0x0000561d66d12f65 n/a (sunshine-0.21.0 + 0xf7f65)
                                                       #4  0x0000561d66d5ac05 n/a (sunshine-0.21.0 + 0x13fc05)
                                                       #5  0x0000561d66dab080 n/a (sunshine-0.21.0 + 0x190080)
                                                       #6  0x00007f0b36ee1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                       #7  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #8  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221669:
                                                       #0  0x00007f0b36b48bf6 epoll_wait (libc.so.6 + 0x110bf6)
                                                       #1  0x0000561d66d2141e n/a (sunshine-0.21.0 + 0x10641e)
                                                       #2  0x0000561d66dc12d9 n/a (sunshine-0.21.0 + 0x1a62d9)
                                                       #3  0x0000561d66dcf270 n/a (sunshine-0.21.0 + 0x1b4270)
                                                       #4  0x00007f0b36ee1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221459:
                                                       #0  0x00007f0b36b48bf6 epoll_wait (libc.so.6 + 0x110bf6)
                                                       #1  0x0000561d66d2141e n/a (sunshine-0.21.0 + 0x10641e)
                                                       #2  0x0000561d66d11939 n/a (sunshine-0.21.0 + 0xf6939)
                                                       #3  0x0000561d66d12f65 n/a (sunshine-0.21.0 + 0xf7f65)
                                                       #4  0x0000561d66d5ac05 n/a (sunshine-0.21.0 + 0x13fc05)
                                                       #5  0x0000561d66d1dab1 n/a (sunshine-0.21.0 + 0x102ab1)
                                                       #6  0x00007f0b36ee1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                       #7  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #8  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221668:
                                                       #0  0x00007f0b36b3af6f __poll (libc.so.6 + 0x102f6f)
                                                       #1  0x0000561d66ec29b4 n/a (sunshine-0.21.0 + 0x2a79b4)
                                                       #2  0x0000561d66ec0750 n/a (sunshine-0.21.0 + 0x2a5750)
                                                       #3  0x0000561d66dc79cf n/a (sunshine-0.21.0 + 0x1ac9cf)
                                                       #4  0x0000561d66dcba66 n/a (sunshine-0.21.0 + 0x1b0a66)
                                                       #5  0x00007f0b36ee1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                       #6  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #7  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221460:
                                                       #0  0x00007f0b36b48bf6 epoll_wait (libc.so.6 + 0x110bf6)
                                                       #1  0x0000561d66d2141e n/a (sunshine-0.21.0 + 0x10641e)
                                                       #2  0x0000561d66d11939 n/a (sunshine-0.21.0 + 0xf6939)
                                                       #3  0x0000561d66d12f65 n/a (sunshine-0.21.0 + 0xf7f65)
                                                       #4  0x0000561d66d5c4b5 n/a (sunshine-0.21.0 + 0x1414b5)
                                                       #5  0x0000561d66d1db51 n/a (sunshine-0.21.0 + 0x102b51)
                                                       #6  0x00007f0b36ee1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                       #7  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #8  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221699:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b08717d0e n/a (radeonsi_dri.so + 0x117d0e)
                                                       #3  0x00007f0b086f784c n/a (radeonsi_dri.so + 0xf784c)
                                                       #4  0x00007f0b08717c3c n/a (radeonsi_dri.so + 0x117c3c)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221689:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b08717d0e n/a (radeonsi_dri.so + 0x117d0e)
                                                       #3  0x00007f0b086f784c n/a (radeonsi_dri.so + 0xf784c)
                                                       #4  0x00007f0b08717c3c n/a (radeonsi_dri.so + 0x117c3c)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221694:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b08717d0e n/a (radeonsi_dri.so + 0x117d0e)
                                                       #3  0x00007f0b086f784c n/a (radeonsi_dri.so + 0xf784c)
                                                       #4  0x00007f0b08717c3c n/a (radeonsi_dri.so + 0x117c3c)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221687:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b2aed3f0e n/a (radeonsi_drv_video.so + 0xd3f0e)
                                                       #3  0x00007f0b2b28cb2c n/a (radeonsi_drv_video.so + 0x48cb2c)
                                                       #4  0x00007f0b2aed3e6c n/a (radeonsi_drv_video.so + 0xd3e6c)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221692:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b08717d0e n/a (radeonsi_dri.so + 0x117d0e)
                                                       #3  0x00007f0b086f784c n/a (radeonsi_dri.so + 0xf784c)
                                                       #4  0x00007f0b08717c3c n/a (radeonsi_dri.so + 0x117c3c)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221691:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b08717d0e n/a (radeonsi_dri.so + 0x117d0e)
                                                       #3  0x00007f0b086f784c n/a (radeonsi_dri.so + 0xf784c)
                                                       #4  0x00007f0b08717c3c n/a (radeonsi_dri.so + 0x117c3c)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221667:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b36ed9e11 __gthread_cond_wait (libstdc++.so.6 + 0xd9e11)
                                                       #3  0x0000561d66dc8fcd n/a (sunshine-0.21.0 + 0x1adfcd)
                                                       #4  0x00007f0b36ee1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221690:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b08717d0e n/a (radeonsi_dri.so + 0x117d0e)
                                                       #3  0x00007f0b086f784c n/a (radeonsi_dri.so + 0xf784c)
                                                       #4  0x00007f0b08717c3c n/a (radeonsi_dri.so + 0x117c3c)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221693:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b08717d0e n/a (radeonsi_dri.so + 0x117d0e)
                                                       #3  0x00007f0b086f784c n/a (radeonsi_dri.so + 0xf784c)
                                                       #4  0x00007f0b08717c3c n/a (radeonsi_dri.so + 0x117c3c)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221695:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b08717d0e n/a (radeonsi_dri.so + 0x117d0e)
                                                       #3  0x00007f0b086f784c n/a (radeonsi_dri.so + 0xf784c)
                                                       #4  0x00007f0b08717c3c n/a (radeonsi_dri.so + 0x117c3c)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221701:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b08717d0e n/a (radeonsi_dri.so + 0x117d0e)
                                                       #3  0x00007f0b086f784c n/a (radeonsi_dri.so + 0xf784c)
                                                       #4  0x00007f0b08717c3c n/a (radeonsi_dri.so + 0x117c3c)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221688:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b08717d0e n/a (radeonsi_dri.so + 0x117d0e)
                                                       #3  0x00007f0b086f784c n/a (radeonsi_dri.so + 0xf784c)
                                                       #4  0x00007f0b08717c3c n/a (radeonsi_dri.so + 0x117c3c)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221712:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b36ed9e11 __gthread_cond_wait (libstdc++.so.6 + 0xd9e11)
                                                       #3  0x0000561d66e03c45 n/a (sunshine-0.21.0 + 0x1e8c45)
                                                       #4  0x0000561d66e04d5d n/a (sunshine-0.21.0 + 0x1e9d5d)
                                                       #5  0x00007f0b36ee1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                       #6  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #7  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221697:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b08717d0e n/a (radeonsi_dri.so + 0x117d0e)
                                                       #3  0x00007f0b086f784c n/a (radeonsi_dri.so + 0xf784c)
                                                       #4  0x00007f0b08717c3c n/a (radeonsi_dri.so + 0x117c3c)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221698:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b08717d0e n/a (radeonsi_dri.so + 0x117d0e)
                                                       #3  0x00007f0b086f784c n/a (radeonsi_dri.so + 0xf784c)
                                                       #4  0x00007f0b08717c3c n/a (radeonsi_dri.so + 0x117c3c)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221711:
                                                       #0  0x00007f0b36b3af6f __poll (libc.so.6 + 0x102f6f)
                                                       #1  0x00007f0b371268c7 n/a (libpulse.so.0 + 0x338c7)
                                                       #2  0x00007f0b3711046c pa_mainloop_poll (libpulse.so.0 + 0x1d46c)
                                                       #3  0x00007f0b3711a42c pa_mainloop_iterate (libpulse.so.0 + 0x2742c)
                                                       #4  0x00007f0b3711a4e1 pa_mainloop_run (libpulse.so.0 + 0x274e1)
                                                       #5  0x00007f0b3712ac02 n/a (libpulse.so.0 + 0x37c02)
                                                       #6  0x00007f0b33b01c67 n/a (libpulsecommon-16.1.so + 0x5bc67)
                                                       #7  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #8  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221700:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b08717d0e n/a (radeonsi_dri.so + 0x117d0e)
                                                       #3  0x00007f0b086f784c n/a (radeonsi_dri.so + 0xf784c)
                                                       #4  0x00007f0b08717c3c n/a (radeonsi_dri.so + 0x117c3c)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221670:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b37127aad pa_threaded_mainloop_wait (libpulse.so.0 + 0x34aad)
                                                       #3  0x00007f0b3770ead1 pa_simple_read (libpulse-simple.so.0 + 0x2ad1)
                                                       #4  0x0000561d66e837f2 n/a (sunshine-0.21.0 + 0x2687f2)
                                                       #5  0x0000561d66e0251f n/a (sunshine-0.21.0 + 0x1e751f)
                                                       #6  0x0000561d66dcec6c n/a (sunshine-0.21.0 + 0x1b3c6c)
                                                       #7  0x00007f0b36ee1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                       #8  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #9  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221702:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b08717d0e n/a (radeonsi_dri.so + 0x117d0e)
                                                       #3  0x00007f0b086f784c n/a (radeonsi_dri.so + 0xf784c)
                                                       #4  0x00007f0b08717c3c n/a (radeonsi_dri.so + 0x117c3c)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221696:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b08717d0e n/a (radeonsi_dri.so + 0x117d0e)
                                                       #3  0x00007f0b086f784c n/a (radeonsi_dri.so + 0xf784c)
                                                       #4  0x00007f0b08717c3c n/a (radeonsi_dri.so + 0x117c3c)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221704:
                                                       #0  0x00007f0b36b3b4c6 ppoll (libc.so.6 + 0x1034c6)
                                                       #1  0x00007f0b371104f3 pa_mainloop_poll (libpulse.so.0 + 0x1d4f3)
                                                       #2  0x00007f0b3711a42c pa_mainloop_iterate (libpulse.so.0 + 0x2742c)
                                                       #3  0x00007f0b3711a4e1 pa_mainloop_run (libpulse.so.0 + 0x274e1)
                                                       #4  0x0000561d66e83304 n/a (sunshine-0.21.0 + 0x268304)
                                                       #5  0x00007f0b36ee1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                       #6  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #7  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221703:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b08717d0e n/a (radeonsi_dri.so + 0x117d0e)
                                                       #3  0x00007f0b086f784c n/a (radeonsi_dri.so + 0xf784c)
                                                       #4  0x00007f0b08717c3c n/a (radeonsi_dri.so + 0x117c3c)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221666:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac3d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                       #2  0x00007f0b36ed9e11 __gthread_cond_wait (libstdc++.so.6 + 0xd9e11)
                                                       #3  0x0000561d66dd0f85 n/a (sunshine-0.21.0 + 0x1b5f85)
                                                       #4  0x00007f0b36ee1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                       #5  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #6  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)

                                                       Stack trace of thread 221671:
                                                       #0  0x00007f0b36ac14ae n/a (libc.so.6 + 0x894ae)
                                                       #1  0x00007f0b36ac4325 pthread_cond_clockwait (libc.so.6 + 0x8c325)
                                                       #2  0x0000561d66de5da2 n/a (sunshine-0.21.0 + 0x1cada2)
                                                       #3  0x0000561d66de6d34 n/a (sunshine-0.21.0 + 0x1cbd34)
                                                       #4  0x0000561d66de75b9 n/a (sunshine-0.21.0 + 0x1cc5b9)
                                                       #5  0x0000561d66dce838 n/a (sunshine-0.21.0 + 0x1b3838)
                                                       #6  0x00007f0b36ee1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                       #7  0x00007f0b36ac49eb n/a (libc.so.6 + 0x8c9eb)
                                                       #8  0x00007f0b36b487cc n/a (libc.so.6 + 0x1107cc)
                                                       ELF object binary architecture: AMD x86-64
Nov 10 00:00:17 beelink-gtr7 systemd[213716]: sunshine.service: Main process exited, code=dumped, status=11/SEGV
Nov 10 00:00:17 beelink-gtr7 systemd[213716]: sunshine.service: Failed with result 'core-dump'.
Nov 10 00:00:17 beelink-gtr7 systemd[213716]: sunshine.service: Consumed 29.408s CPU time.
thatsysadmin commented 10 months ago

@kevinhwang91

My 7840hs machine also crash with vaapi encoder under X11, here is the log, hope this helps:

<snip>

You're telling us 7940HS without telling us any additional context to your system. That's a CPU. You're not telling us anything else about your configuration, like if you're running a discrete GPU. You're not even giving us your config or what your install looks like or even distribution. I probably could have worded the title a bit better to specify distribution though. (Kernel Version? Mesa version?)

Your log is also obtrusively long, so next time, please put it in a textfile.

Help people help you. As the issue template says, did you try building nightly Sunshine and see if that works? Because it doesn't seem like you did.

ReenigneArcher commented 10 months ago

Nightly build is available here: https://github.com/LizardByte/Sunshine/releases/tag/nightly-dev

Your log is also obtrusively long

Yea... no one wants to read through this... hence the section for logs in the template says "relevant"

kevinhwang91 commented 10 months ago

@kevinhwang91

My 7840hs machine also crash with vaapi encoder under X11, here is the log, hope this helps:

<snip>

You're telling us 7940HS without telling us any additional context to your system. That's a CPU. You're not telling us anything else about your configuration, like if you're running a discrete GPU.

Use an integrated GPU rdna3 780m. Configuration:

key_rightalt_to_key_win = enabled
key_repeffat_delay = 200
keybindings = [
    0x2E, 0x5B
]
min_log_level = info
address_family = both

You're not even giving us your config or what your install looks like or even distribution. I probably could have worded the title a bit better to specify distribution though. (Kernel Version? Mesa version?)

ArchLinux 6.6.1-arch1-1 Mesa: 24.0.0

Help people help you. As the issue template says, did you try building nightly Sunshine and see if that works? Because it doesn't seem like you did.

I just tried https://github.com/LizardByte/Sunshine/commit/0a563947eada3bbfa84c0bc1dc502689174b576d, it still encounters the issue, even if using the software encoder.

thatsysadmin commented 7 months ago

If anyone new is looking at this thread, just tried commit 040c3a6 on Fedora 39, and seemed to get a bit further. It seems to be able to still find the card, but I also get this:

[2024:02:04:20:39:01]: Error: [h264_vaapi @ 0x344c000] No usable encoding entrypoint found for profile VAProfileH264High (7).
[2024:02:04:20:39:01]: Info: Retrying with fallback configuration options for [h264_vaapi] after error: Function not implemented

Seems like Sunshine can't find a encoding profile. My card can do H264 High, and I can confirm it with vainfo though. If anyone needs to check their GPU, running vainfo needs to output VAProfileH264High with an entry of VAEntrypointEncSlice, not VAEntrypointVLD AFAIK.

cgutman commented 7 months ago

Does the fallback retry succeed though? Can you post the rest of the lines after those?

thatsysadmin commented 7 months ago

No, it still has those OpenGL shader errors at the end and still segfaults after that. I'm not in front of the machine right now though. I can get the actual output tomorrow though.

thatsysadmin commented 7 months ago

@cgutman

Here's the rest of the lines. /mnt/ramdisk/Sunshine/build   nightly  sudo ./sunshine ./sunshine.conf

[2024:02:06:16:19:25]: Error: [h264_vaapi @ 0x7f573806af00] No usable encoding entrypoint found for profile VAProfileH264High (7).
[2024:02:06:16:14:27]: Info: Retrying with fallback configuration options for [h264_vaapi] after error: Function not implemented
libva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
[2024:02:06:16:14:27]: Warning: [h264_vaapi @ 0x39c6dc0] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
[2024:02:06:16:14:27]: Error: /usr/local/assets/shaders/opengl/ConvertUV.frag: 0:1(1): error: syntax error, unexpected end of file
[2024:02:06:16:14:27]: Error: /usr/local/assets/shaders/opengl/ConvertUV.vert: 0:1(1): error: syntax error, unexpected end of file
[2024:02:06:16:14:27]: Error: /usr/local/assets/shaders/opengl/ConvertY.frag: 0:1(1): error: syntax error, unexpected end of file
[2024:02:06:16:14:27]: Error: /usr/local/assets/shaders/opengl/Scene.vert: 0:1(1): error: syntax error, unexpected end of file
[2024:02:06:16:14:27]: Error: /usr/local/assets/shaders/opengl/Scene.frag: 0:1(1): error: syntax error, unexpected end of file
[1]    1830008 segmentation fault  sudo ./sunshine ./sunshine.conf
cgutman commented 7 months ago

Are those shader files actually empty?

thatsysadmin commented 7 months ago

assets/shaders/opengl/<files> does not exist at all. Not even sure why shaders are involved in Sunshine though. That's what confuses me.

cgutman commented 7 months ago

ah well, that would do it. Did you forget to sudo make install?

thatsysadmin commented 7 months ago

I usually try to avoid using make install on source only if I can. Do you know where those shader files would be by any chance?

cgutman commented 7 months ago

https://github.com/LizardByte/Sunshine/tree/nightly/src_assets/linux/assets/shaders/opengl

But I doubt shaders will be your only problem if you don't install Sunshine properly. You will be missing all the HTML web UI assets, default config files and app assets, etc.

Shaders are needed for color conversion and scaling. VAAPI drivers do not directly consume RGB frames. They require YUV frames, so shaders are used for RGB to YUV conversion.

thatsysadmin commented 7 months ago

Shoot. This is an issue of my own making. I did an install_prefix and it works perfectly. Thanks for your help!