[Steam Frame] Qt app with a tray icon kills the session dbus-broker in Game Mode (fd exhaustion), ending the whole session
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- linux
調査の方向性
Start by reviewing the reported dbus-broker fd exhaustion, the measured VLC tray-icon reproductions, and the three suggested mitigation paths; the issue names no repository files or tests. Reproduce by launching default-settings VLC from Game Mode and check whether the session still ends. Done means the session remains up when the trigger occurs, but the issue does not establish which mitigation should be chosen.
索引モデルが issue の本文から書いたものです。
説明
Your system information
- Steam client version: 1794424036 (client beta
linux_arm64_beta_861407927dc8efb407da7cf) - SteamOS version: 0.5.8 (
BUILD_ID=20261106.6144341,VARIANT_ID=vr, update branchbeta), Steam Frame, aarch64 - Opted into Steam client beta?: Yes
- Opted into SteamOS beta?: Yes
- Have you checked for updates in Settings > System?: Not rechecked before filing
Please describe your issue in as much detail as possible:
Expected: launching a flatpak app from Game Mode cannot take down the session.
Actual: launching flatpak VLC from Game Mode ("Launch Program") ends the entire gamescope session about 3 seconds later. Steam, SteamVR's web helpers and WirePlumber all crash at the same moment and the device returns to a fresh session.
This is the session-bus fd exhaustion mentioned as "secondary impact" in #2904, here with a fast, deterministic trigger and no xdg-desktop-portal-holo crash involved.
The cause is the user session dbus-broker exiting with Too many open files. Three things combine:
- The game-mode environment exports
QT_QPA_PLATFORMTHEME=kde, but noorg.kde.StatusNotifierWatcheris on the game-mode session bus. A Qt app that loads the KDE platform theme and enables a tray icon then retries tray registration in a tight loop, opening a new session-bus connection on each attempt (long-standing KDE bug, https://bugs.kde.org/show_bug.cgi?id=353062). - The user
dbus-broker.serviceruns with a softRLIMIT_NOFILEof 1024 (hard 524288). - dbus-broker 37 treats
EMFILEwhile accepting a peer as fatal and exits (CVE-2026-16730, https://bugzilla.redhat.com/show_bug.cgi?id=2506348).
Any sandboxed app with session-bus access can trigger 2 + 3; VLC is just the one that does it by accident.
System
- dbus-broker 37-3, systemd 257.7-2.5, gamescope 3.16.30-4, flatpak 1.16.3
- VLC 3.0.24 from Flathub (runtime org.kde.Platform 5.15-25.08, Qt 5.15.18), default settings
Journal at the moment of failure
systemd[1611]: Started app-flatpak-org.videolan.VLC-445256089.scope. (19:00:02.83)
dbus-broker-launch[1700]: ERROR sockopt_get_peerpidfd @ ../dbus-broker-37/src/util/sockopt.c +244: Too many open files (19:00:05.53)
dbus-broker-launch[1700]: peer_new_with_fd @ ../dbus-broker-37/src/bus/peer.c +290
dbus-broker-launch[1700]: listener_dispatch @ ../dbus-broker-37/src/bus/listener.c +54
dbus-broker-launch[1700]: dispatch_context_dispatch @ ../dbus-broker-37/src/util/dispatch.c +344
dbus-broker-launch[1700]: broker_run @ ../dbus-broker-37/src/broker/broker.c +209
systemd[1611]: Got disconnect on API bus.
cef_log[2168]: FATAL:bus.cc(1246)] D-Bus connection was disconnected. Aborting. (steamwebhelper, SIGTRAP)
select_steamvr.sh[166428]: FATAL:bus.cc(1246)] D-Bus connection was disconnected. Aborting. (vrwebhelper, SIGTRAP)
steamos[223571]: Gamescope Session Ended - Performing Final Cleanup
dbus-broker-launch[1699]: Exiting due to fatal error: -131
systemd[1611]: dbus-broker.service: Failed with result 'exit-code'.
WirePlumber also segfaults right after losing the bus (wp_spa_json_new_from_string called from a Lua script, both times), which is what first drew attention to this.
Measurements
To reproduce without losing the session, I raised the running broker's soft limit (prlimit --pid <dbus-broker pid> --nofile=524288:524288), launched VLC with Steam's game-mode environment, and sampled ls /proc/<broker>/fd | wc -l:
| VLC launch | Broker open fds |
|---|---|
| Default settings, game-mode environment | 87 -> 2,615 in 18 s, still climbing |
Same, with --no-qt-system-tray |
peak 95 |
Tray enabled, QT_QPA_PLATFORMTHEME unset |
peak 89, no warnings |
Tray enabled, QT_QPA_PLATFORMTHEME=kde |
1,769 after 8 s; 841 QSystemTrayIcon::setVisible: No Icon set lines |
The fds are released as soon as VLC exits. The idle broker sits at about 87 fds, so the 1024 limit is reached within about 3 seconds.
Suggested fixes
Any one of these would stop the session from dying; the first two are the general ones.
- Raise the soft
LimitNOFILEfor the userdbus-broker.service. With the limit raised to 524288 on the running broker the session survived the same launch. - Ship a dbus-broker build that refuses the connection on
EMFILEinstead of exiting (CVE-2026-16730). - Do not export
QT_QPA_PLATFORMTHEME=kdeinto the gamescope session, or provide a StatusNotifierWatcher there, since the KDE platform theme assumes one exists.
Workaround for users
Set qt-system-tray=0 in ~/.var/app/org.videolan.VLC/config/vlc/vlcrc.
Steps for reproducing this issue:
- Install VLC from Flathub (
org.videolan.VLC) and leave its settings at defaults (tray icon enabled). - In Game Mode, start it via "Launch Program".
- About 3 seconds later the session dies. This happened twice in a row, the second time 28 seconds after boot.
- 主要言語
- 言語のデータがありません
- スター
- 2.7k
- フォーク
- 89
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ValveSoftware/SteamOS のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
ValveSoftware/SteamOS#3037 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ValveSoftware/SteamOS#2983 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ValveSoftware/SteamOS#2927 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ValveSoftware/SteamOS#2875 · コメント 1 件 ·
-
steam-short-session-tracker: incorrect registry backup path resets settings during automatic repairオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
ValveSoftware/SteamOS#2829 ·
ValveSoftware/SteamOS の issue をすべて見る
似ている issue
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
losisin/helm-values-schema-json#437 ·
メンテナーはふだん 2 日以内に返信
-
CI: tests/*.mjs and install.sh are never checked対応中かも @shuhuNB515 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Leonxlnx/taste-skill#229 ·
メンテナーはふだん 3 日以内に返信
-
[BUG] SMTP listener now binds to EMAIL_PORT instead of 2525 since the gunicorn switch 5.0.3-ls373オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
linuxserver/docker-healthchecks#137 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
BenjaminPoilve/minichord#203 ·
-
area:infra help wanted type:ci
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
JoeyHammoth/semiconductor-bandgap-belvedere#62 ·
メンテナーはふだん 1 日以内に返信