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

Aperta
#5,725 3 commenti 3 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp, linux

Direzione di ricerca

Inizia dal percorso di conversione del colore CUDA RGBA_to_NV12 e confronta i target GPU supportati dalla build di release con il dispositivo Pascal sm_61 che non funziona. Esamina separatamente la probe di cattura dopo SelectSources per il blocco dell’avvio di X11. Il lavoro è completato quando NVENC funziona di nuovo sulla GTX 1080 Ti e l’avvio non si blocca indefinitamente quando Capture non è impostato su X11.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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)

Lingua principale
C++
Stelle
43k
Fork
2.4k
Merge medio
1g 15h
PR unite (30g)
105

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di LizardByte/Sunshine

Tutte le issue di LizardByte/Sunshine

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.