Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vaapi: coredump on reconnect #1660

Closed
3 tasks done
s-daveb opened this issue Sep 20, 2023 · 6 comments
Closed
3 tasks done

vaapi: coredump on reconnect #1660

s-daveb opened this issue Sep 20, 2023 · 6 comments

Comments

@s-daveb
Copy link

s-daveb commented Sep 20, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the nightly release?

  • This issue is present in the nightly release

Describe the Bug

Initially, I thought this was the same as #1442, but I am not sure the error message in that log is related to this coredump.

While I am streaming content from my Linux server to my iPad Air, whether I choose to stream with h264 or HEVC/h265, after about ~5 minutes, the video freezes up, and I'm forced to reconnect the client.

When I do so, the connection never completes, and the server coredumps.

Expected Behavior

The video should not freeze, and the server should not coredump when I reconnect.

Additional Context

System Info

CPU: AMD Ryzen 5 5600G (no /dev/dri/card0 node)
GPU: AMD Radeon RX 6600 (/dev/dri/card1)
Linux kernel: Linux hostname 6.5.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 13 Sep 2023 08:37:40 +0000 x86_64 GNU/Linux

Packages

pacman -Q | grep -e "\(vdpau\|mesa\|*va\|sunshine\|vulkan\|vlk\)"

lib32-libva-vdpau-driver 0.7.4-7
lib32-libvdpau 1.5-2
lib32-mesa-git 23.3.0_devel.178006.465644640a0.d41d8cd-1
lib32-vulkan-icd-loader 1.3.263-1
libva-vdpau-driver 0.7.4-6
libvdpau 1.5-2
mesa-git 23.3.0_devel.177909.de9bf84501d.d41d8cd-1
mesa-utils 9.0.0-2
sunshine-nightly 0.20.0.b989d33f03e4a22d2745e439b131eb9dff89ad3c.rb989d33f03e4a22d2745e439b131eb9dff89ad3c-1
vulkan-extra-layers 1.3.250.0-1
vulkan-headers 1:1.3.264-2
vulkan-icd-loader 1.3.263-1
vulkan-tools 1.3.263-1
vulkan-validation-layers 1.3.261.1-1

Host Operating System

Linux

Operating System Version

Linux 6.5.3-arch1-1

Architecture

64 bit

Sunshine commit or version

b989d33

Package

Linux - PKGBUILD

GPU Type

AMD

GPU Model

Radeon RX 6600

GPU Driver/Mesa Version

mesa-git 23.3.0_devel.177909.de9bf84501d.d41d8cd-1

Capture Method (Linux Only)

KMS

Config

qp = 80
hevc_mode = 0
origin_pin_allowed = lan
log_path = sunshine.log
min_threads = 4
sw_tune = animation
resolutions = [
    352x240,
    480x360,
    858x480,
    1280x720,
    1920x1080,
    2560x1080,
    3440x1440,
    1920x1200,
    3860x2160,
    3840x1600,
    1440x960,
    1180x730,
    1440x900,
    2880x1800,
    3360x2120,
    2360x1640,
    1180x820,
    1440x900,
    2880x1800
]
fec_percentage = 20
channels = 4
min_log_level = 2
back_button_timeout = 5
encoder = vaapi

Apps

No response

Relevant log output

systemd[821]: Started Sunshine is a self-hosted game stream host for Moonlight..
sunshine[120973]: [back_button_timeout] -- [5]
sunshine[120973]: [min_log_level] -- [2]
sunshine[120973]: [channels] -- [4]
sunshine[120973]: [fec_percentage] -- [20]
sunshine[120973]: [resolutions] -- [[
sunshine[120973]:     352x240,
sunshine[120973]:     480x360,
sunshine[120973]:     858x480,
sunshine[120973]:     1280x720,
sunshine[120973]:     1920x1080,
sunshine[120973]:     2560x1080,
sunshine[120973]:     3440x1440,
sunshine[120973]:     1920x1200,
sunshine[120973]:     3860x2160,
sunshine[120973]:     3840x1600,
sunshine[120973]:     1440x960,
sunshine[120973]:     1180x730,
sunshine[120973]:     1440x900,
sunshine[120973]:     2880x1800,
sunshine[120973]:     3360x2120,
sunshine[120973]:     2360x1640,
sunshine[120973]:     1180x820,
sunshine[120973]:     1440x900,
sunshine[120973]:     2880x1800
sunshine[120973]: ]]
sunshine[120973]: [sw_tune] -- [animation]
sunshine[120973]: [min_threads] -- [4]
sunshine[120973]: [log_path] -- [sunshine.log]
sunshine[120973]: [origin_pin_allowed] -- [lan]
sunshine[120973]: [encoder] -- [vaapi]
sunshine[120973]: [hevc_mode] -- [0]
sunshine[120973]: [qp] -- [80]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Sunshine version: 0.20.0.b989d33f03e4a22d2745e439b131eb9dff89ad3c
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found display [wayland-1]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: zwlr_export_dmabuf_manager_v1(7) version 1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: zxdg_output_manager_v1(49) version 3
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: wl_output(51) version 4
sunshine[120973]: [2023:09:20:12:37:14]: Info: Name: HEADLESS-1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found monitor: Headless output 1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Offset: 0x0
sunshine[120973]: [2023:09:20:12:37:14]: Info: Resolution: 2360x1640
sunshine[120973]: [2023:09:20:12:37:14]: Error: Failed to gain CAP_SYS_ADMIN
sunshine[120973]: [2023:09:20:12:37:14]: Error: Failed to gain CAP_SYS_ADMIN
sunshine[120973]: [2023:09:20:12:37:14]: Error: Couldn't get handle for DRM Framebuffer [120]: Possibly not permitted: do [sudo setcap cap_sys_admin+p sunshine]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found display [wayland-1]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found display [wayland-1]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: zwlr_export_dmabuf_manager_v1(7) version 1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: zxdg_output_manager_v1(49) version 3
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: wl_output(51) version 4
sunshine[120973]: [2023:09:20:12:37:14]: Info: Name: HEADLESS-1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found monitor: Headless output 1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Offset: 0x0
sunshine[120973]: [2023:09:20:12:37:14]: Info: Resolution: 2360x1640
sunshine[120973]: [2023:09:20:12:37:14]: Info: HEADLESS-1: Headless output 1
sunshine[120973]: [2023:09:20:12:37:14]: Error: Unknown Monitor connector type [HEADLESS]: Please report this to the GitHub issue tracker
sunshine[120973]: [2023:09:20:12:37:14]: Info: Trying encoder [vaapi]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Screencasting with Wayland's protocol
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found display [wayland-1]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: zwlr_export_dmabuf_manager_v1(7) version 1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: zxdg_output_manager_v1(49) version 3
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: wl_output(51) version 4
sunshine[120973]: [2023:09:20:12:37:14]: Info: Name: HEADLESS-1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found monitor: Headless output 1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Offset: 0x0
sunshine[120973]: [2023:09:20:12:37:14]: Info: Resolution: 2360x1640
sunshine[120973]: [2023:09:20:12:37:14]: Info: Selected monitor [Headless output 1] for streaming
sunshine[120973]: [2023:09:20:12:37:14]: Info: Screencasting with Wayland's protocol
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found display [wayland-1]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: zwlr_export_dmabuf_manager_v1(7) version 1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: zxdg_output_manager_v1(49) version 3
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: wl_output(51) version 4
sunshine[120973]: [2023:09:20:12:37:14]: Info: Name: HEADLESS-1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found monitor: Headless output 1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Offset: 0x0
sunshine[120973]: [2023:09:20:12:37:14]: Info: Resolution: 2360x1640
sunshine[120973]: [2023:09:20:12:37:14]: Info: Selected monitor [Headless output 1] for streaming
sunshine[120973]: [2023:09:20:12:37:14]: Info: SDR color coding [Rec. 601]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Color depth: 8-bit
sunshine[120973]: [2023:09:20:12:37:14]: Info: Color range: [JPEG]
sunshine[120973]: [2023:09:20:12:37:14]: Info: System tray created
sunshine[120973]: [2023:09:20:12:37:14]: Warning: [h264_vaapi @ 0x56328cb14100] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
sunshine[120973]: [2023:09:20:12:37:14]: Info: Screencasting with Wayland's protocol
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found display [wayland-1]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: zwlr_export_dmabuf_manager_v1(7) version 1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: zxdg_output_manager_v1(49) version 3
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: wl_output(51) version 4
sunshine[120973]: [2023:09:20:12:37:14]: Info: Name: HEADLESS-1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found monitor: Headless output 1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Offset: 0x0
sunshine[120973]: [2023:09:20:12:37:14]: Info: Resolution: 2360x1640
sunshine[120973]: [2023:09:20:12:37:14]: Info: Selected monitor [Headless output 1] for streaming
sunshine[120973]: [2023:09:20:12:37:14]: Info: SDR color coding [Rec. 601]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Color depth: 8-bit
sunshine[120973]: [2023:09:20:12:37:14]: Info: Color range: [JPEG]
sunshine[120973]: [2023:09:20:12:37:14]: Warning: [hevc_vaapi @ 0x7f482c066e80] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
sunshine[120973]: [2023:09:20:12:37:14]: Info: Screencasting with Wayland's protocol
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found display [wayland-1]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: zwlr_export_dmabuf_manager_v1(7) version 1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: zxdg_output_manager_v1(49) version 3
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: wl_output(51) version 4
sunshine[120973]: [2023:09:20:12:37:14]: Info: Name: HEADLESS-1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found monitor: Headless output 1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Offset: 0x0
sunshine[120973]: [2023:09:20:12:37:14]: Info: Resolution: 2360x1640
sunshine[120973]: [2023:09:20:12:37:14]: Info: Selected monitor [Headless output 1] for streaming
sunshine[120973]: [2023:09:20:12:37:14]: Info: SDR color coding [Rec. 601]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Color depth: 8-bit
sunshine[120973]: [2023:09:20:12:37:14]: Info: Color range: [JPEG]
sunshine[120973]: [2023:09:20:12:37:14]: Error: Couldn't open [av1_vaapi]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Screencasting with Wayland's protocol
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found display [wayland-1]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: zwlr_export_dmabuf_manager_v1(7) version 1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: zxdg_output_manager_v1(49) version 3
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: wl_output(51) version 4
sunshine[120973]: [2023:09:20:12:37:14]: Info: Name: HEADLESS-1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found monitor: Headless output 1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Offset: 0x0
sunshine[120973]: [2023:09:20:12:37:14]: Info: Resolution: 2360x1640
sunshine[120973]: [2023:09:20:12:37:14]: Info: Selected monitor [Headless output 1] for streaming
sunshine[120973]: [2023:09:20:12:37:14]: Info: SDR color coding [Rec. 601]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Color depth: 8-bit
sunshine[120973]: [2023:09:20:12:37:14]: Info: Color range: [JPEG]
sunshine[120973]: [2023:09:20:12:37:14]: Error: Couldn't open [av1_vaapi]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Screencasting with Wayland's protocol
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found display [wayland-1]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: zwlr_export_dmabuf_manager_v1(7) version 1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: zxdg_output_manager_v1(49) version 3
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: wl_output(51) version 4
sunshine[120973]: [2023:09:20:12:37:14]: Info: Name: HEADLESS-1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found monitor: Headless output 1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Offset: 0x0
sunshine[120973]: [2023:09:20:12:37:14]: Info: Resolution: 2360x1640
sunshine[120973]: [2023:09:20:12:37:14]: Info: Selected monitor [Headless output 1] for streaming
sunshine[120973]: [2023:09:20:12:37:14]: Info: SDR color coding [Rec. 601]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Color depth: 8-bit
sunshine[120973]: [2023:09:20:12:37:14]: Info: Color range: [JPEG]
sunshine[120973]: [2023:09:20:12:37:14]: Error: Couldn't open [av1_vaapi]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Screencasting with Wayland's protocol
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found display [wayland-1]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: zwlr_export_dmabuf_manager_v1(7) version 1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: zxdg_output_manager_v1(49) version 3
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: wl_output(51) version 4
sunshine[120973]: [2023:09:20:12:37:14]: Info: Name: HEADLESS-1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found monitor: Headless output 1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Offset: 0x0
sunshine[120973]: [2023:09:20:12:37:14]: Info: Resolution: 2360x1640
sunshine[120973]: [2023:09:20:12:37:14]: Info: Selected monitor [Headless output 1] for streaming
sunshine[120973]: [2023:09:20:12:37:14]: Info: SDR color coding [Rec. 601]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Color depth: 8-bit
sunshine[120973]: [2023:09:20:12:37:14]: Info: Color range: [JPEG]
sunshine[120973]: [2023:09:20:12:37:14]: Error: Couldn't open [av1_vaapi]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Screencasting with Wayland's protocol
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found display [wayland-1]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: zwlr_export_dmabuf_manager_v1(7) version 1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: zxdg_output_manager_v1(49) version 3
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found interface: wl_output(51) version 4
sunshine[120973]: [2023:09:20:12:37:14]: Info: Name: HEADLESS-1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found monitor: Headless output 1
sunshine[120973]: [2023:09:20:12:37:14]: Info: Offset: 0x0
sunshine[120973]: [2023:09:20:12:37:14]: Info: Resolution: 2360x1640
sunshine[120973]: [2023:09:20:12:37:14]: Info: Selected monitor [Headless output 1] for streaming
sunshine[120973]: [2023:09:20:12:37:14]: Info: SDR color coding [Rec. 709]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Color depth: 10-bit
sunshine[120973]: [2023:09:20:12:37:14]: Info: Color range: [JPEG]
sunshine[120973]: [2023:09:20:12:37:14]: Error: [AVHWFramesContext @ 0x56328c985dc0] Unsupported format: yuv420p10le.
sunshine[120973]: [2023:09:20:12:37:14]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
sunshine[120973]: [2023:09:20:12:37:14]: Info:
sunshine[120973]: [2023:09:20:12:37:14]: Info: // Ignore any errors mentioned above, they are not relevant. //
sunshine[120973]: [2023:09:20:12:37:14]: Info:
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found H.264 encoder: h264_vaapi [vaapi]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Found HEVC encoder: hevc_vaapi [vaapi]
sunshine[120973]: [2023:09:20:12:37:14]: Info: Adding avahi service Sunshine
sunshine[120973]: [2023:09:20:12:37:14]: Info: Configuration UI available at [https://localhost:47990]
sunshine[120973]: [2023:09:20:12:37:15]: Info: Avahi service Sunshine successfully established.
sunshine[120973]: [2023:09:20:12:37:18]: Info: Trying encoder [vaapi]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Screencasting with Wayland's protocol
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found display [wayland-1]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: zwlr_export_dmabuf_manager_v1(7) version 1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: zxdg_output_manager_v1(49) version 3
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: wl_output(51) version 4
sunshine[120973]: [2023:09:20:12:37:18]: Info: Name: HEADLESS-1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found monitor: Headless output 1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Offset: 0x0
sunshine[120973]: [2023:09:20:12:37:18]: Info: Resolution: 2360x1640
sunshine[120973]: [2023:09:20:12:37:18]: Info: Selected monitor [Headless output 1] for streaming
sunshine[120973]: [2023:09:20:12:37:18]: Info: Screencasting with Wayland's protocol
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found display [wayland-1]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: zwlr_export_dmabuf_manager_v1(7) version 1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: zxdg_output_manager_v1(49) version 3
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: wl_output(51) version 4
sunshine[120973]: [2023:09:20:12:37:18]: Info: Name: HEADLESS-1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found monitor: Headless output 1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Offset: 0x0
sunshine[120973]: [2023:09:20:12:37:18]: Info: Resolution: 2360x1640
sunshine[120973]: [2023:09:20:12:37:18]: Info: Selected monitor [Headless output 1] for streaming
sunshine[120973]: [2023:09:20:12:37:18]: Info: SDR color coding [Rec. 601]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color depth: 8-bit
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color range: [JPEG]
sunshine[120973]: [2023:09:20:12:37:18]: Warning: [h264_vaapi @ 0x7f48242175c0] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
sunshine[120973]: [2023:09:20:12:37:18]: Info: Screencasting with Wayland's protocol
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found display [wayland-1]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: zwlr_export_dmabuf_manager_v1(7) version 1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: zxdg_output_manager_v1(49) version 3
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: wl_output(51) version 4
sunshine[120973]: [2023:09:20:12:37:18]: Info: Name: HEADLESS-1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found monitor: Headless output 1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Offset: 0x0
sunshine[120973]: [2023:09:20:12:37:18]: Info: Resolution: 2360x1640
sunshine[120973]: [2023:09:20:12:37:18]: Info: Selected monitor [Headless output 1] for streaming
sunshine[120973]: [2023:09:20:12:37:18]: Info: SDR color coding [Rec. 601]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color depth: 8-bit
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color range: [JPEG]
sunshine[120973]: [2023:09:20:12:37:18]: Warning: [hevc_vaapi @ 0x7f481c0678c0] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
sunshine[120973]: [2023:09:20:12:37:18]: Info: Screencasting with Wayland's protocol
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found display [wayland-1]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: zwlr_export_dmabuf_manager_v1(7) version 1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: zxdg_output_manager_v1(49) version 3
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: wl_output(51) version 4
sunshine[120973]: [2023:09:20:12:37:18]: Info: Name: HEADLESS-1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found monitor: Headless output 1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Offset: 0x0
sunshine[120973]: [2023:09:20:12:37:18]: Info: Resolution: 2360x1640
sunshine[120973]: [2023:09:20:12:37:18]: Info: Selected monitor [Headless output 1] for streaming
sunshine[120973]: [2023:09:20:12:37:18]: Info: SDR color coding [Rec. 601]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color depth: 8-bit
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color range: [JPEG]
sunshine[120973]: [2023:09:20:12:37:18]: Error: Couldn't open [av1_vaapi]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Screencasting with Wayland's protocol
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found display [wayland-1]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: zwlr_export_dmabuf_manager_v1(7) version 1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: zxdg_output_manager_v1(49) version 3
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: wl_output(51) version 4
sunshine[120973]: [2023:09:20:12:37:18]: Info: Name: HEADLESS-1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found monitor: Headless output 1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Offset: 0x0
sunshine[120973]: [2023:09:20:12:37:18]: Info: Resolution: 2360x1640
sunshine[120973]: [2023:09:20:12:37:18]: Info: Selected monitor [Headless output 1] for streaming
sunshine[120973]: [2023:09:20:12:37:18]: Info: SDR color coding [Rec. 601]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color depth: 8-bit
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color range: [JPEG]
sunshine[120973]: [2023:09:20:12:37:18]: Error: Couldn't open [av1_vaapi]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Screencasting with Wayland's protocol
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found display [wayland-1]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: zwlr_export_dmabuf_manager_v1(7) version 1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: zxdg_output_manager_v1(49) version 3
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: wl_output(51) version 4
sunshine[120973]: [2023:09:20:12:37:18]: Info: Name: HEADLESS-1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found monitor: Headless output 1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Offset: 0x0
sunshine[120973]: [2023:09:20:12:37:18]: Info: Resolution: 2360x1640
sunshine[120973]: [2023:09:20:12:37:18]: Info: Selected monitor [Headless output 1] for streaming
sunshine[120973]: [2023:09:20:12:37:18]: Info: SDR color coding [Rec. 601]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color depth: 8-bit
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color range: [JPEG]
sunshine[120973]: [2023:09:20:12:37:18]: Error: Couldn't open [av1_vaapi]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Screencasting with Wayland's protocol
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found display [wayland-1]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: zwlr_export_dmabuf_manager_v1(7) version 1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: zxdg_output_manager_v1(49) version 3
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: wl_output(51) version 4
sunshine[120973]: [2023:09:20:12:37:18]: Info: Name: HEADLESS-1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found monitor: Headless output 1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Offset: 0x0
sunshine[120973]: [2023:09:20:12:37:18]: Info: Resolution: 2360x1640
sunshine[120973]: [2023:09:20:12:37:18]: Info: Selected monitor [Headless output 1] for streaming
sunshine[120973]: [2023:09:20:12:37:18]: Info: SDR color coding [Rec. 601]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color depth: 8-bit
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color range: [JPEG]
sunshine[120973]: [2023:09:20:12:37:18]: Error: Couldn't open [av1_vaapi]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Screencasting with Wayland's protocol
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found display [wayland-1]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: zwlr_export_dmabuf_manager_v1(7) version 1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: zxdg_output_manager_v1(49) version 3
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: wl_output(51) version 4
sunshine[120973]: [2023:09:20:12:37:18]: Info: Name: HEADLESS-1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found monitor: Headless output 1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Offset: 0x0
sunshine[120973]: [2023:09:20:12:37:18]: Info: Resolution: 2360x1640
sunshine[120973]: [2023:09:20:12:37:18]: Info: Selected monitor [Headless output 1] for streaming
sunshine[120973]: [2023:09:20:12:37:18]: Info: SDR color coding [Rec. 709]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color depth: 10-bit
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color range: [JPEG]
sunshine[120973]: [2023:09:20:12:37:18]: Error: [AVHWFramesContext @ 0x7f4824269f40] Unsupported format: yuv420p10le.
sunshine[120973]: [2023:09:20:12:37:18]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
sunshine[120973]: [2023:09:20:12:37:18]: Info:
sunshine[120973]: [2023:09:20:12:37:18]: Info: // Ignore any errors mentioned above, they are not relevant. //
sunshine[120973]: [2023:09:20:12:37:18]: Info:
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found H.264 encoder: h264_vaapi [vaapi]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found HEVC encoder: hevc_vaapi [vaapi]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Executing [Desktop]
sunshine[120973]: [2023:09:20:12:37:18]: Info: CLIENT CONNECTED
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found display [wayland-1]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: zwlr_export_dmabuf_manager_v1(7) version 1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: zxdg_output_manager_v1(49) version 3
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: wl_output(51) version 4
sunshine[120973]: [2023:09:20:12:37:18]: Info: Name: HEADLESS-1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found monitor: Headless output 1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Offset: 0x0
sunshine[120973]: [2023:09:20:12:37:18]: Info: Resolution: 2360x1640
sunshine[120973]: [2023:09:20:12:37:18]: Info: Screencasting with Wayland's protocol
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found display [wayland-1]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: zwlr_export_dmabuf_manager_v1(7) version 1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: zxdg_output_manager_v1(49) version 3
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found interface: wl_output(51) version 4
sunshine[120973]: [2023:09:20:12:37:18]: Info: Name: HEADLESS-1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Found monitor: Headless output 1
sunshine[120973]: [2023:09:20:12:37:18]: Info: Offset: 0x0
sunshine[120973]: [2023:09:20:12:37:18]: Info: Resolution: 2360x1640
sunshine[120973]: [2023:09:20:12:37:18]: Info: Selected monitor [Headless output 1] for streaming
sunshine[120973]: [2023:09:20:12:37:18]: Info: SDR color coding [Rec. 601]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color depth: 8-bit
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color range: [MPEG]
sunshine[120973]: [2023:09:20:12:37:18]: Warning: [h264_vaapi @ 0x7f48101ddc80] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
sunshine[120973]: [2023:09:20:12:37:18]: Error: Couldn't import RGB Image: 0000300C
sunshine[120973]: [2023:09:20:12:37:18]: Error: Could not convert image
sunshine[120973]: [2023:09:20:12:37:18]: Info: SDR color coding [Rec. 601]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color depth: 8-bit
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color range: [MPEG]
sunshine[120973]: [2023:09:20:12:37:18]: Warning: [h264_vaapi @ 0x7f481023e640] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
sunshine[120973]: [2023:09:20:12:37:18]: Error: Couldn't import RGB Image: 0000300C
sunshine[120973]: [2023:09:20:12:37:18]: Info: SDR color coding [Rec. 601]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color depth: 8-bit
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color range: [MPEG]
sunshine[120973]: [2023:09:20:12:37:18]: Warning: [h264_vaapi @ 0x7f481023e640] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
sunshine[120973]: [2023:09:20:12:37:18]: Error: Couldn't import RGB Image: 0000300C
sunshine[120973]: [2023:09:20:12:37:18]: Error: Could not convert image
sunshine[120973]: [2023:09:20:12:37:18]: Info: SDR color coding [Rec. 601]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color depth: 8-bit
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color range: [MPEG]
sunshine[120973]: [2023:09:20:12:37:18]: Warning: [h264_vaapi @ 0x7f481023e640] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
sunshine[120973]: [2023:09:20:12:37:18]: Error: Couldn't import RGB Image: 0000300C
sunshine[120973]: [2023:09:20:12:37:18]: Error: Could not convert image
sunshine[120973]: [2023:09:20:12:37:18]: Info: SDR color coding [Rec. 601]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color depth: 8-bit
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color range: [MPEG]
sunshine[120973]: [2023:09:20:12:37:18]: Warning: [h264_vaapi @ 0x7f481023e640] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
sunshine[120973]: [2023:09:20:12:37:18]: Error: Couldn't import RGB Image: 0000300C
sunshine[120973]: [2023:09:20:12:37:18]: Error: Could not convert image
sunshine[120973]: [2023:09:20:12:37:18]: Info: SDR color coding [Rec. 601]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color depth: 8-bit
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color range: [MPEG]
sunshine[120973]: [2023:09:20:12:37:18]: Warning: [h264_vaapi @ 0x7f481023e640] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
sunshine[120973]: [2023:09:20:12:37:18]: Error: Couldn't import RGB Image: 0000300C
sunshine[120973]: [2023:09:20:12:37:18]: Error: Could not convert image
sunshine[120973]: [2023:09:20:12:37:18]: Info: SDR color coding [Rec. 601]
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color depth: 8-bit
sunshine[120973]: [2023:09:20:12:37:18]: Info: Color range: [MPEG]
sunshine[120973]: [2023:09:20:12:37:18]: Warning: [h264_vaapi @ 0x7f481023e640] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
sunshine[120973]: [2023:09:20:12:37:19]: Info: Found default monitor by name: alsa_output.pci-0000_03_00.1.hdmi-stereo.monitor
sunshine[120973]: [2023:09:20:12:37:28]: Info: CLIENT DISCONNECTED
sunshine[120973]: [2023:09:20:12:37:39]: Fatal: Hang detected! Session failed to terminate in 10 seconds.
systemd-coredump[121250]: Process 120973 (sunshine) of user 1000 dumped core.
<core dump redacted due to length, see attachments>
systemd[821]: sunshine.service: Main process exited, code=dumped, status=6/ABRT
systemd[821]: sunshine.service: Failed with result 'core-dump'.
systemd[821]: sunshine.service: Consumed 2.239s CPU time.
systemd[821]: sunshine.service: Scheduled restart job, restart counter is at 1.
@s-daveb
Copy link
Author

s-daveb commented Sep 20, 2023

Detailed backtrace with system and sunshine debuginfo:
gdb.log

@lukaswrz
Copy link

Initially, I thought this was the same as #1442, but I am not sure the error message in that log is related to this coredump.

Your issue is indeed unrelated, check your log output:

sunshine[120973]: [2023:09:20:12:37:14]: Error: Failed to gain CAP_SYS_ADMIN
sunshine[120973]: [2023:09:20:12:37:14]: Error: Failed to gain CAP_SYS_ADMIN
sunshine[120973]: [2023:09:20:12:37:14]: Error: Couldn't get handle for DRM Framebuffer [120]: Possibly not permitted: do [sudo setcap cap_sys_admin+p sunshine]

@s-daveb
Copy link
Author

s-daveb commented Sep 20, 2023

Ah, of course! I’d done that before but I guess when I update Sunshine, I should perform that step again?

Also, just curious, It’s really strange that sometimes it will work and other times it doesn’t, is that normal when CAP_SYS_ADMIN isn’t set?

@ReenigneArcher
Copy link
Member

It's set against the executable file... it doesn't work against symbolic links, so yes it's normal that you have to do it after an update.

@ReenigneArcher ReenigneArcher closed this as not planned Won't fix, can't repro, duplicate, stale Sep 20, 2023
@lukaswrz
Copy link

when I update Sunshine, I should perform that step again?

Yes, I suggest creating a pacman hook to do that automatically.

Also, just curious, It’s really strange that sometimes it will work and other times it doesn’t, is that normal when CAP_SYS_ADMIN isn’t set?

In that case, I'm not so sure if your issue is actually unrelated... I currently don't have a system to test this on either.

Are you using sway on your server? (It seems that you are using a wlroots compositor at least, judging from your logs, e.g.: Found interface: zwlr_export_dmabuf_manager_v1(7) version 1 )

@s-daveb
Copy link
Author

s-daveb commented Sep 20, 2023

Yes, Im using Hyprland. I’ll try setting the capability and seeing what happens.

If I can recreate the coredump, I’ll post here again with more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants