[Linux/Vulkan] Segfault when loading vulkan encoder
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- cpp, linux
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- C++
- 星标
- 43k
- 派生
- 2.4k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
LizardByte/Sunshine 的其他 Issue
-
Linux keyboard backend has no mapping for VK_ABNT_C1 (ABNT2 dedicated `/ ?` key) — key is silently dropped可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
LizardByte/Sunshine#6051 · 2 条评论 ·
-
PIN pairing fails with "Missing CSRF token" - web UI never fetches/attaches the token可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
LizardByte/Sunshine#5467 · 2 条评论 ·
-
Virtual HID Driver License notifications appearing even though Enable Gamepad Input is unchecked未关闭
难度 3/5 1-2 天 新手友好度 65/100
LizardByte/Sunshine#6222 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 47/100
LizardByte/Sunshine#6208 ·
-
难度 4/5 3-5 天 新手友好度 43/100
LizardByte/Sunshine#6201 ·
查看 LizardByte/Sunshine 的全部 Issue
相似的 Issue
-
Bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
connector-maintenance
难度 2/5 1-3 小时 新手友好度 72/100
gettakaro/connectors#1067 ·
维护者通常 1 天内回复
-
bot-triaged enhancement module: fft triaged
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
-
RTL-SDR: re-enumerating while streaming removes the in-use entry from the device selection dialog可能已有人在做 @dpc00 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复