KMS capture throws EGL_BAD_MATCH 00003009 and continuously loops creating encoders

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

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

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

評価

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

調査の方向性

Start by comparing the provided cannot_stream.log and can_stream.log files in the linked Gist, focusing on the KMS capture errors and repeated encoder creation. Reproduce the failure on a Wayland session with the reported AMD GPU and Mesa setup, then trace the failing capture path. Done means streaming starts normally without the EGL_BAD_MATCH loop.

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

Here are the reproduction steps.
Step 1: Run sudo mkinitcpio -P in the terminal to regenerate the initramfs.
Step 2: Reboot the computer and log into a Wayland session.
Step 3: Start the Sunshine application.
Step 4: Connect using a Moonlight client.
Step 5: The connection times out and disconnects; Moonlight does not receive any video stream.
Note: If I skip Step 1 and just reboot the computer directly, this disconnect issue still occurs with a probability of about 1 in 20.
For the specific error logs and the infinite loop behavior, please refer to the online logs provided below.

Expected Behavior

Sunshine should stream video normally.

Additional Context

The provided Gist contains two files.
cannot_stream.log is the Sunshine log captured when streaming fails.
can_stream.log is the kernel log captured when streaming works normally.

Host Operating System

Linux

Operating System Version

CachyOS (Arch-based), kernel 7.3.0-4-cachyos

Architecture

amd64/x86_64

Package

other (not listed)

GPU Type

AMD

GPU Model

Radeon RX 590 GME (Polaris 10)

GPU Driver/Mesa Version

Mesa 26.2.5-arch3.1, LLVM 23.1.4-2

Capture Method

KMS (Linux)

Apps

Log output

Online logs

https://gist.github.com/aningQwQ/808e441eb7b7d743c465d0c211e48208

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