[Steam Frame] Qt app with a tray icon kills the session dbus-broker in Game Mode (fd exhaustion), ending the whole session
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- linux
- Bereich
- infrastructure, operating-systems
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Keine Sprachdaten
- Sterne
- 2.7k
- Forks
- 89
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus ValveSoftware/SteamOS
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
ValveSoftware/SteamOS#3037 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
ValveSoftware/SteamOS#2983 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
ValveSoftware/SteamOS#2927 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
ValveSoftware/SteamOS#2875 · 1 Kommentar ·
-
steam-short-session-tracker: incorrect registry backup path resets settings during automatic repairOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
ValveSoftware/SteamOS#2829 ·
Alle Issues in ValveSoftware/SteamOS
Ähnliche Issues
-
Add govulncheck workflowOffenenhancement good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
losisin/helm-values-schema-json#437 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
CI: tests/*.mjs and install.sh are never checkedEvtl. vergeben @shuhuNB515 hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Leonxlnx/taste-skill#229 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
[BUG] SMTP listener now binds to EMAIL_PORT instead of 2525 since the gunicorn switch 5.0.3-ls373Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
linuxserver/docker-healthchecks#137 · 1 Kommentar ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 65/100
BenjaminPoilve/minichord#203 ·
-
area:infra help wanted type:ci
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
JoeyHammoth/semiconductor-bandgap-belvedere#62 ·
Maintainer antworten meist innerhalb von 1 Tag