[Linux/Vulkan] Segfault when loading vulkan encoder

Đang mở
#6,202 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp, linux
Lĩnh vực
audio-video-rtc, backend

Hướng nghiên cứu

The crash occurs while Sunshine creates the AV1 Vulkan encoder after H.264 and HEVC initialization succeeds. Start by tracing the Vulkan encoder initialization path for AV1 and compare it with the preceding codec setup; the issue does not name source files or tests. Done means Sunshine starts without a segmentation fault on the reported Debian 13, AMD RX 5700 setup.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Is there an existing issue for this?
  • I have searched the existing issues
Is your issue described in the documentation?
  • I have read the documentation
Is your issue present in the latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

error404@debian:~/.config/sunshine$ sunshine
[2026-11-29 10:11:09.638924] [0x00007fd6e0a1c000] [info] [misc] has_elevated_privileges found permitted cap:21
[2026-11-29 10:11:09.638972] [0x00007fd6e0a1c000] [info] [misc] drop_elevated_privileges succeeded in dropping capabilities
[2026-11-29 10:11:09.639024] [0x00007fd6e0a1c000] [info] [misc] has_elevated_privileges found permitted cap:23
[2026-11-29 10:11:09.639034] [0x00007fd6e0a1c000] [info] [misc] drop_elevated_privileges succeeded in dropping capabilities
[2026-11-29 10:11:09.639081] [0x00007fd6e0a1c000] [info] config: 'vaapi_quality' = balanced
[2026-11-29 10:11:09.639087] [0x00007fd6e0a1c000] [info] config: 'upnp' = enabled
[2026-11-29 10:11:09.639094] [0x00007fd6e0a1c000] [info] config: 'output_name' = Virtual-sunshine-vm
[2026-11-29 10:11:09.639100] [0x00007fd6e0a1c000] [info] config: 'global_prep_cmd' = [{"do":"/home/error404/.config/sunshine/hooks/stream-start.sh","elevated":"false","undo":"/home/error404/.config/sunshine/hooks/stream-end.sh"}]
[2026-11-29 10:11:09.639105] [0x00007fd6e0a1c000] [info] config: 'encoder' = vulkan
[2026-11-29 10:11:09.639109] [0x00007fd6e0a1c000] [info] config: 'capture' = kwin
[2026-11-29 10:11:09.639]: Info: Sunshine version: 2026.1114.155648 commit: 02246e670f5641d732ac2d6c957677b3edeab08c
[2026-11-29 10:11:09.639]: Info: Package Publisher: LizardByte
[2026-11-29 10:11:09.639]: Info: Publisher Website: https://app.lizardbyte.dev
[2026-11-29 10:11:09.639]: Info: Get support: https://app.lizardbyte.dev/support
[2026-11-29 10:11:09.639]: Info: config: 'capture' = kwin
[2026-11-29 10:11:09.639]: Info: config: 'encoder' = vulkan
[2026-11-29 10:11:09.639]: Info: config: 'global_prep_cmd' = [{"do":"/home/error404/.config/sunshine/hooks/stream-start.sh","elevated":"false","undo":"/home/error404/.config/sunshine/hooks/stream-end.sh"}]
[2026-11-29 10:11:09.639]: Info: config: 'output_name' = Virtual-sunshine-vm
[2026-11-29 10:11:09.639]: Info: config: 'upnp' = enabled
[2026-11-29 10:11:09.639]: Info: config: 'vaapi_quality' = balanced
[2026-11-29 10:11:09.641]: Info: [kwingrab] Found matching system KWin desktop permission file: /usr/share/applications/dev.lizardbyte.app.Sunshine.kwin.desktop
[2026-11-29 10:11:09.645]: Info: [kwingrab] Found output: DP-3 order: 0 position: 0x0 resolution: 2560x1440
[2026-11-29 10:11:09.674]: Info: [libvirtualhid] initialized linux-uhid-uinput backend
[2026-11-29 10:11:09.675]: Info: [libvirtualhid] created mouse 2
[2026-11-29 10:11:09.675]: Info: Trying encoder [vulkan]
[2026-11-29 10:11:09.675]: Info: [misc] drop_elevated_privileges succeeded in dropping capabilities
[2026-11-29 10:11:09.675]: Info: Screencasting with KWin ScreenCast
[2026-11-29 10:11:09.679]: Info: [pipewire] Requested variable frame rate (Sunshine pacing required: 16.6667ms)
[2026-11-29 10:11:09.679]: Info: [wayland] Found display [wayland-0]
[2026-11-29 10:11:09.708]: Info: [kwingrab] Pipewire stream created: node=80
[2026-11-29 10:11:09.708]: Info: [kwingrab] Screencasting output name DP-3 position 0x0 resolution 2560x1440
[2026-11-29 10:11:09.708]: Info: [pipewire] Streaming display 'Virtual-sunshine-vm' offset: 0x0 resolution: 2560x1440
[2026-11-29 10:11:09.708]: Info: [wayland] Found display [wayland-0]
[2026-11-29 10:11:09.711]: Info: [wayland] Found interface: wl_shm(9) version 1
[2026-11-29 10:11:09.711]: Info: [wayland] Found interface: zxdg_output_manager_v1(31) version 3
[2026-11-29 10:11:09.711]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(52) version 4
[2026-11-29 10:11:09.711]: Info: [wayland] Found interface: wl_output(80) version 4
[2026-11-29 10:11:09.711]: Info: [wayland] Resolution: 2560x1440
[2026-11-29 10:11:09.711]: Info: [wayland] Offset: 0x0
[2026-11-29 10:11:09.711]: Info: [wayland] Logical size: 2226x1252
[2026-11-29 10:11:09.711]: Info: [wayland] Name: DP-3
[2026-11-29 10:11:09.711]: Info: [wayland] Found monitor: Shenzhen KTC Technology Group H24T7
[2026-11-29 10:11:09.711]: Info: [pipewire] Using frame_timestamp (pts) metadata source: Sunshine
[2026-11-29 10:11:09.714]: Info: [pipewire] PipeWire stream state: unconnected -> connecting
[2026-11-29 10:11:09.715]: Info: [pipewire] Connected to pipewire version 1.4.2
[2026-11-29 10:11:09.715]: Info: [pipewire] PipeWire stream state: connecting -> paused
[2026-11-29 10:11:09.719]: Info: [pipewire] Video format: 12
[2026-11-29 10:11:09.719]: Info: [pipewire] Size: 2560x1440
[2026-11-29 10:11:09.719]: Info: [pipewire] Color primaries: 0
[2026-11-29 10:11:09.719]: Info: [pipewire] Transfer function: 0
[2026-11-29 10:11:09.719]: Info: [pipewire] Compositor negotiated frame rate: 0/1, max: 180/1
[2026-11-29 10:11:09.720]: Info: [pipewire] using DMA-BUF buffers
[2026-11-29 10:11:09.720]: Info: [pipewire] Video format: 12
[2026-11-29 10:11:09.720]: Info: [pipewire] Size: 2560x1440
[2026-11-29 10:11:09.720]: Info: [pipewire] Color primaries: 0
[2026-11-29 10:11:09.720]: Info: [pipewire] Transfer function: 0
[2026-11-29 10:11:09.720]: Info: [pipewire] Compositor negotiated frame rate: 0/1, max: 180/1
[2026-11-29 10:11:09.720]: Info: [pipewire] using DMA-BUF buffers
[2026-11-29 10:11:09.721]: Info: [pipewire] PipeWire stream state: paused -> streaming
[2026-11-29 10:11:09.724]: Info: Creating encoder [h264_vulkan]
[2026-11-29 10:11:09.724]: Info: Color coding: SDR (Rec. 601)
[2026-11-29 10:11:09.724]: Info: Color depth: 8-bit
[2026-11-29 10:11:09.724]: Info: Color range: JPEG
[2026-11-29 10:11:09.771]: Info: Streaming bitrate is 1000000
[2026-11-29 10:11:09.771]: Info: [vulkan] Encoder quality set to 0 (balanced), driver range: 0-1
[2026-11-29 10:11:09.772]: Info: Vulkan encode using GPU: AMD Radeon RX 5700 (RADV NAVI10)
[2026-11-29 10:11:09.786]: Info: Creating encoder [hevc_vulkan]
[2026-11-29 10:11:09.786]: Info: Color coding: SDR (Rec. 601)
[2026-11-29 10:11:09.786]: Info: Color depth: 8-bit
[2026-11-29 10:11:09.786]: Info: Color range: JPEG
[2026-11-29 10:11:09.809]: Info: Streaming bitrate is 1000000
[2026-11-29 10:11:09.809]: Info: [vulkan] Encoder quality set to 0 (balanced), driver range: 0-1
[2026-11-29 10:11:09.809]: Info: Vulkan encode using GPU: AMD Radeon RX 5700 (RADV NAVI10)
[2026-11-29 10:11:09.823]: Info: Creating encoder [av1_vulkan]
[2026-11-29 10:11:09.823]: Info: Color coding: SDR (Rec. 601)
[2026-11-29 10:11:09.823]: Info: Color depth: 8-bit
[2026-11-29 10:11:09.823]: Info: Color range: JPEG
段错误(核心已转储)

Expected Behavior

start normally

Additional Context

No response

Host Operating System

Linux

Operating System Version

Debian 13

Architecture

amd64/x86_64

Package

Linux - deb

GPU Type

AMD

GPU Model

AMD RX 5700

GPU Driver/Mesa Version

error404@debian:/.config/sunshine$ glxinfo -B name of display: :1 display: :1 screen: 0 direct rendering: Yes Extended renderer info (GLX_MESA_query_renderer): Vendor: AMD (0x1002) Device: AMD Radeon RX 5700 (radeonsi, navi10, LLVM 19.1.7, DRM 3.61, 6.12.118+deb13-amd64) (0x731f) Version: 25.0.7 Accelerated: yes Video memory: 8192MB Unified memory: no Preferred profile: core (0x1) Max core profile version: 4.6 Max compat profile version: 4.6 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.2 Memory info (GL_ATI_meminfo): VBO free memory - total: 6770 MB, largest block: 6770 MB VBO free aux. memory - total: 7739 MB, largest block: 7739 MB Texture free memory - total: 6770 MB, largest block: 6770 MB Texture free aux. memory - total: 7739 MB, largest block: 7739 MB Renderbuffer free memory - total: 6770 MB, largest block: 6770 MB Renderbuffer free aux. memory - total: 7739 MB, largest block: 7739 MB Memory info (GL_NVX_gpu_memory_info): Dedicated video memory: 8192 MB Total available memory: 16153 MB Currently available dedicated video memory: 6770 MB OpenGL vendor string: AMD OpenGL renderer string: AMD Radeon RX 5700 (radeonsi, navi10, LLVM 19.1.7, DRM 3.61, 6.12.118+deb13-amd64) OpenGL core profile version string: 4.6 (Core Profile) Mesa 25.0.7-2+deb13u1 OpenGL core profile shading language version string: 4.60 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL version string: 4.6 (Compatibility Profile) Mesa 25.0.7-2+deb13u1 OpenGL shading language version string: 4.60 OpenGL context flags: (none) OpenGL profile mask: compatibility profile OpenGL ES profile version string: OpenGL ES 3.2 Mesa 25.0.7-2+deb13u1 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 error404@debian:/.config/sunshine$

Capture Method

None

Apps

Log output

Online logs

No response

Ngôn ngữ chính
C++
Star
43k
Fork
2.4k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của LizardByte/Sunshine

Tất cả issue của LizardByte/Sunshine

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.