NvFBC is incorrectly rejected when XRandR is unavailable, despite valid virtual desktop capture support
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- cpp, docker, linux
調査の方向性
まず、「Found [0] outputs」、「Virtual Desktop」、および「XrandR: unavailable」のログ行に関連するディスプレイ検出とNvFBC初期化の経路を追跡します。提供されたX設定で再現し、Sunshineがクラッシュしなくなり、NvFBCがXRandRなしで報告された1920x1080の仮想デスクトップをキャプチャできることを確認します。
索引モデルが 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
I'm running Sunshine inside an LXC container with an NVIDIA GPU and a headless X server. The X server provides a valid virtual desktop, but does not expose the XRandR extension (I intentionally disabled the XRandR extension to resolve the Xfce desktop environment issue).
In this environment, NvFBC appears to initialize successfully and reports a valid virtual desktop size:
[2026-09-13 23:14:03.366]: Info: Found [0] outputs
[2026-09-13 23:14:03.366]: Info: Virtual Desktop: 1920x1080
[2026-09-13 23:14:03.366]: Info: XrandR: unavailable
However, Sunshine then crashes:
Xlib: extension "RANDR" missing on display ":0".
Segmentation fault (core dumped) sunshine
The crash is unexpected because the lack of XRandR should only prevent selecting individual monitors, not prevent NvFBC screen capture entirely.
Expected Behavior
If NvFBC reports (1) capture is possible, (2) a valid non-zero virtual desktop size, and (3) XRandR is unavailable / there are no individual outputs, Sunshine should still consider NvFBC a valid capture backend and capture the entire virtual desktop. Eventually, Sunshine should be able to start in this case.
Additional Context
Below is my X config for your reference:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/mouse"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "NVIDIA RTX A6000"
BusID "PCI:65:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "AllowEmptyInitialConfiguration" "True"
Option "UseDisplayDevice" "none"
Option "MetaModes" "NULL"
SubSection "Display"
Depth 24
Modes "1920x1080"
Virtual 1920 1080
EndSubSection
EndSection
Section "Extensions"
Option "RANDR" "Disable"
EndSection
Host Operating System
Docker
Operating System Version
Ubuntu 26.04
Architecture
amd64/x86_64
Package
Linux - deb
GPU Type
NVIDIA
GPU Model
RTX A6000
GPU Driver/Mesa Version
615.71.09
Capture Method
NvFBC (Linux)
Apps
The issue is not specific to a certain app
Log output
$ sunshine
[2026-09-13 23:14:03.102598] [0x00007fccd0c86000] [info] config: 'output_name' = 0
[2026-09-13 23:14:03.102]: Info: Sunshine version: 2026.912.143204 commit: fbf12d019c16c6f8ff6fb4aaff8519d74e298fdf
[2026-09-13 23:14:03.102]: Info: Package Publisher: LizardByte
[2026-09-13 23:14:03.102]: Info: Publisher Website: https://app.lizardbyte.dev
[2026-09-13 23:14:03.102]: Info: Get support: https://app.lizardbyte.dev/support
[2026-09-13 23:14:03.102]: Info: config: 'output_name' = 0
[2026-09-13 23:14:03.366]: Info: Found [0] outputs
[2026-09-13 23:14:03.366]: Info: Virtual Desktop: 1920x1080
[2026-09-13 23:14:03.366]: Info: XrandR: unavailable
[2026-09-13 23:14:03.389]: Error: Couldn't release NvFBC context from current thread:
[2026-09-13 23:14:03.389]: Error: Couldn't open: /dev/dri/card1: Permission denied
[2026-09-13 23:14:03.389]: Error: [wayland] Environment variable WAYLAND_DISPLAY has not been defined
[2026-09-13 23:14:03.389]: Info: Detecting displays
Xlib: extension "RANDR" missing on display ":0".
Segmentation fault (core dumped) sunshine
Online logs
No response
- 主要言語
- C++
- スター
- 43k
- フォーク
- 2.4k
- 平均マージ
- 1日 15時間
- マージ済み PR(30日)
- 105
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
LizardByte/Sunshine のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
LizardByte/Sunshine#6051 ·
メンテナーはふだん 1 日以内に返信
-
PIN pairing fails with "Missing CSRF token" - web UI never fetches/attaches the token再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
LizardByte/Sunshine#5467 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 18/100
LizardByte/Sunshine#6072 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
LizardByte/Sunshine#6063 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
LizardByte/Sunshine#6048 ·
メンテナーはふだん 1 日以内に返信
LizardByte/Sunshine の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
charmplusplus/charm#4210 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
[BUG] VPN auth dialog spawned by the secret agent fails with "TLS support is not available" on NixOSオープンbug nixos umbriel
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
noctalia-dev/noctalia#5310 ·
メンテナーはふだん 1 日以内に返信
-
area/docdb kind/bug priority/medium status/awaiting-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
yugabyte/yugabyte-db#37426 ·
メンテナーはふだん 1 日以内に返信