Sunshine crashes (nvcuda64.dll, c0000005) when creating 10-bit HEVC NVENC encoder on RTX 4060

オープン
#5,580 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp

調査の方向性

報告されているRTX 4060を使用してsunshine.exeのエンコーダーテストフェーズを再現し、SDR Rec. 709 10-bit出力に対して「Creating encoder [hevc_nvenc]」の後に到達するNVENCパスを調査します。先行するH.264、HEVC、AV1、yuv444のエンコーダー試行と比較します。HEVC 10-bitテストが成功するか、プロセスをクラッシュさせずに適切に失敗し、フォールバック動作が維持されれば完了です。

索引モデルが 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?

None

Describe the Bug

Describe the bug
Sunshine crashes with an access violation (c0000005) in nvcuda64.dll every time it tries to create the second-pass HEVC 10-bit NVENC encoder during the encoder testing phase. This happens consistently, even when running sunshine.exe manually (not as a service).

To Reproduce

  1. Run sunshine.exe (manually via cmd, or via service)
  2. Sunshine successfully creates: H.264 (8-bit), HEVC (8-bit), AV1 (8-bit), H.264 yuv444
  3. Crashes immediately when creating HEVC 10-bit encoder (Color coding: SDR Rec. 709, Color depth: 10-bit)

Expected behavior
Sunshine should either successfully create the 10-bit encoder, or fail gracefully and fall back to another encoder, instead of crashing the entire process.

System info

  • GPU: NVIDIA GeForce RTX 4060 (Desktop)
  • OS: Windows 10 Pro 22H2
  • Sunshine versions tested: v2025.628.4510 and v2025.924.154138 (both crash identically)
  • NVIDIA drivers tested: 616.56, 591.74 (both crash identically, ruling out driver issue)
  • Also tried: full DDU clean uninstall + reinstall, still crashes
  • Workaround: setting encoder = software in sunshine.conf avoids the crash entirely

Crash details (from Windows Event Viewer, Application Error)

  • Faulting module: nvcuda64.dll
  • Exception code: 0xc0000005
  • Consistent across all 3 driver versions tested (32.0.16.1656, 32.0.15.9597, 32.0.15.9174)

Logs
[Adjunta aquí una captura o copia del log de consola desde "Trying encoder [nvenc]" hasta el crash]

Expected Behavior

No response

Additional Context

No response

Host Operating System

Windows

Operating System Version

win 10

Architecture

amd64/x86_64

Package

Windows - exe installer

GPU Type

NVIDIA

GPU Model

Geforce rtx 4060

GPU Driver/Mesa Version

591.74 (also tested with 616.56)

Capture Method

Desktop Duplication API (Windows)

Apps

Log output
[2026-08-30 16:09:16.720]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2026-08-30 16:09:16.720]: Info: Trying encoder [nvenc]
[2026-08-30 16:09:16.968]: Info:
Device Description : NVIDIA GeForce RTX 4060
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002882
Device Video Mem   : 7957 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16356 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2026-08-30 16:09:16.970]: Info: Active GPU has HAGS disabled
[2026-08-30 16:09:16.970]: Info: Using realtime GPU priority
[2026-08-30 16:09:16.973]: Info: Creating encoder [h264_nvenc]
[2026-08-30 16:09:16.973]: Info: Color coding: SDR (Rec. 601)
[2026-08-30 16:09:16.974]: Info: Color depth: 8-bit
[2026-08-30 16:09:16.974]: Info: Color range: JPEG
[2026-08-30 16:09:17.046]: Info: NvEnc: created encoder H.264 P1 async two-pass rfi
[2026-08-30 16:09:17.074]: Info: Creating encoder [hevc_nvenc]
[2026-08-30 16:09:17.074]: Info: Color coding: SDR (Rec. 601)
[2026-08-30 16:09:17.074]: Info: Color depth: 8-bit
[2026-08-30 16:09:17.076]: Info: Color range: JPEG
[2026-08-30 16:09:17.140]: Info: NvEnc: created encoder HEVC P1 async two-pass rfi
[2026-08-30 16:09:17.168]: Info: Creating encoder [av1_nvenc]
[2026-08-30 16:09:17.168]: Info: Color coding: SDR (Rec. 601)
[2026-08-30 16:09:17.168]: Info: Color depth: 8-bit
[2026-08-30 16:09:17.169]: Info: Color range: JPEG
[2026-08-30 16:09:17.222]: Info: NvEnc: created encoder AV1 P1 async two-pass rfi
[2026-08-30 16:09:17.246]: Info: Creating encoder [h264_nvenc]
[2026-08-30 16:09:17.246]: Info: Color coding: SDR (Rec. 601)
[2026-08-30 16:09:17.247]: Info: Color depth: 8-bit
[2026-08-30 16:09:17.248]: Info: Color range: JPEG
[2026-08-30 16:09:17.303]: Info: NvEnc: created encoder H.264 P1 async yuv444 two-pass rfi
[2026-08-30 16:09:17.550]: Info:
Device Description : NVIDIA GeForce RTX 4060
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002882
Device Video Mem   : 7957 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16356 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2026-08-30 16:09:17.555]: Info: Active GPU has HAGS disabled
[2026-08-30 16:09:17.555]: Info: Using realtime GPU priority
[2026-08-30 16:09:17.557]: Info: Creating encoder [hevc_nvenc]
[2026-08-30 16:09:17.557]: Info: Color coding: SDR (Rec. 709)
[2026-08-30 16:09:17.558]: Info: Color depth: 10-bit
[2026-08-30 16:09:17.558]: Info: Color range: JPEG

--- PROCESS CRASHES HERE, no further log output ---

Windows Event Viewer (Application Error) details:
Faulting application name: sunshine.exe
Faulting module name: nvcuda64.dll, version: 32.0.15.9174
Exception code: 0xc0000005
Faulting module path: C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispi.inf_amd64_7840b4313191ae17\nvcuda64.dll
Online logs

No response

主要言語
C++
スター
43k
フォーク
2.4k
平均マージ
1日 15時間
マージ済み PR(30日)
105

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

LizardByte/Sunshine のほかの issue

LizardByte/Sunshine の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。