NVENC fails on Pascal (GTX 1080 Ti) since 2026.914: cudaErrorNoKernelImageForDevice in RGBA_to_NV12

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

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

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

評価

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

調査の方向性

RGBA_to_NV12 CUDA 色変換パスから開始し、release ビルドでサポートされている GPU ターゲットと、失敗している Pascal sm_61 デバイスを比較します。別途、X11 の起動ハングについて SelectSources 後のキャプチャプローブを調査します。完了条件は、GTX 1080 Ti で NVENC が再び動作し、X11 で Capture が未設定の場合に起動が無期限にブロックされないことです。

索引モデルが issue の本文から書いたものです。

説明

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

Tested on the latest release, v2026.914.233613.

Describe the Bug

After upgrading from 2025.923.33222 to 2026.914.233613, NVENC no longer works on a Pascal GPU (GTX 1080 Ti, compute capability 6.1). The encoder probe fails in the CUDA color conversion step, and Sunshine falls back to software libx264:

Info: Trying encoder [nvenc]
Info: Creating encoder [h264_nvenc]
Error: RGBA_to_NV12 failed: cudaErrorNoKernelImageForDevice:no kernel image is available for execution on the device
Error: RGBA_to_NV12 failed: cudaErrorNoKernelImageForDevice:no kernel image is available for execution on the device
Info: Encoder [nvenc] failed
...
Info: Found H.264 encoder: libx264 [software]

cudaErrorNoKernelImageForDevice suggests the bundled CUDA kernels were built without Pascal (sm_61) targets, for example a CUDA 13 toolchain or a CUDA_ARCHITECTURES list that no longer includes 6.1.

Downgrading to 2025.923.33222 on the same machine, with the same driver and config, restores NVENC:

Info: Found H.264 encoder: h264_nvenc [nvenc]
Info: Found HEVC encoder: hevc_nvenc [nvenc]
Expected Behavior

NVENC keeps working on Pascal GPUs, which the 580 driver still supports. If Pascal support was dropped on purpose, it should be in the release notes.

Additional Context

A separate issue in the same release on an X11 session: with no capture option set, startup hangs at "Detecting displays". Debug logs show it stopping after the portal SelectSources call:

Debug: [portalgrab] RemoteDesktop CreateSession response_code: 0
Debug: [portalgrab] SelectDevices response_code: 0
Debug: [portalgrab] SelectSources response_code: 0
<hangs indefinitely; web UI never comes up>

Setting capture = x11 works around it. The portal capture probe probably shouldn't block startup on X11.

Host Operating System

Linux

Operating System Version

Ubuntu 24.04.5 LTS, kernel 7.0.0-31-generic, GNOME on X11

Architecture

amd64/x86_64

Package

Linux - deb (sunshine_2026.914.233613-1+ubuntu24.04_amd64.deb)

GPU Type

NVIDIA

GPU Model

GeForce GTX 1080 Ti (x2), compute capability 6.1

GPU Driver/Mesa Version

NVIDIA 580.173.02

Capture Method

X11 (capture = x11)

主要言語
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 を短くまとめたダイジェスト。