[Steam Frame] Flatpak Qt WebEngine apps render corrupt in Game Mode (X11 + the flatpak runtime's freedreno GL driver)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- linux
- Lĩnh vực
- backend
Hướng nghiên cứu
Start by reproducing the Jellyfin Desktop case in Game Mode using the listed test matrix: X11 with the flatpak runtime's freedreno driver corrupts rendering, while MESA_LOADER_DRIVER_OVERRIDE=zink or the vendor spoof produces a clean result. The issue proposes a system-wide Flatpak environment override as one fix, but does not identify SteamOS files or tests to change. Done means resolving the X11/freedreno corruption for affected Qt WebEngine apps without relying on per-app overrides.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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: a flatpak app started from Game Mode ("Launch Program") renders the same as it does in Desktop Mode.
Actual: Jellyfin Desktop (Flathub org.jellyfin.JellyfinDesktop 2.0.0, Qt WebEngine 6.11.3) is unusable in Game Mode. As soon as the page scrolls or animates, the window fills with stray triangles, smeared tiles and missing content (screenshots 1 and 2). In Desktop Mode the same app is fine.
Cause
Three things combine:
- "Launch Program" starts apps without
WAYLAND_DISPLAY, so flatpak apps fall back to X11 on gamescope's Xwayland. - Inside the flatpak sandbox the GL driver is the runtime's own Mesa (
org.freedesktop.Platform.GL.default, Mesa 26.2.5), which picks freedreno. SteamOS itself does not use that driver on this device: the host Mesa (deckard-mesa26.3.0-devel) ships onlyzink_dri.so, and a host Qt WebEngine window reportszink Vulkan 1.4 (Turnip Adreno (TM) 750). - On X11, Qt WebEngine runs ANGLE on a desktop OpenGL 4.6 context. With the vendor string
freedrenothat hits a known ANGLE/Skia bug (https://issues.angleproject.org/issues/431097618). Mesa already works around it in00-msm-defaults.confby spoofing the vendor string (force_gl_vendor=angleisbroken), but only for a fixed list of executables (chrome,chromium,code,element-desktop,vivaldi-bin). Qt WebEngine apps are not on it.
So this is not a SteamOS code bug as such, but on the Frame it affects every flatpak that embeds Qt WebEngine and is started from Game Mode, and SteamOS is where the environment for those apps is decided.
Test matrix
Same app, same scrolling test page injected over the remote-debugging port, throwaway config directory. "On-screen" means an xwd grab of the window on the X display; "in-app" means a DevTools Page.captureScreenshot.
| Session | Window system | GL renderer reported by the app | Result |
|---|---|---|---|
| Game Mode | X11 (:0), GLX |
ANGLE (freedreno, FD750, OpenGL 4.6 (Core Profile) Mesa 26.2.5) |
corrupt (on-screen, screenshots 1, 2) |
| Game Mode | X11, QT_XCB_GL_INTEGRATION=xcb_egl |
same | corrupt (on-screen) |
| Game Mode | X11, force_gl_vendor=angleisbroken |
ANGLE (angleisbroken, FD750, OpenGL 4.6 (Core Profile) Mesa 26.2.5) |
clean (on-screen, screenshot 4) |
| Game Mode | X11, MESA_LOADER_DRIVER_OVERRIDE=zink |
ANGLE (Mesa, zink Vulkan 1.4(Turnip Adreno (TM) 750), OpenGL 4.6 (Core Profile) Mesa 26.2.5) |
clean (on-screen, screenshot 3) |
| Desktop Mode | X11 (nested Plasma's Xwayland) | ANGLE (freedreno, FD750, OpenGL 4.6 (Core Profile) Mesa 26.2.5) |
corrupt (in-app, screenshot 6) |
| Desktop Mode | Wayland | ANGLE (freedreno, FD750, OpenGL ES 3.2 Mesa 26.2.5) |
clean (in-app, screenshot 5) |
| Game Mode | X11, Chromium flatpak 157 (on Mesa's workaround list) | ANGLE (angleisbroken, FD750, OpenGL 4.6 (Core Profile) Mesa 26.2.5) |
clean (on-screen) |
The corruption therefore follows "X11 + freedreno + ANGLE without the vendor spoof", not gamescope specifically. Game Mode is where users hit it because it is the only place flatpak apps are forced onto X11.
Suggested fixes
- Make flatpak apps on this device use the same GL driver SteamOS uses, e.g. a system-wide flatpak override setting
MESA_LOADER_DRIVER_OVERRIDE=zink. This fixes the whole class of apps and matches the host's driver choice. I have been running Jellyfin Desktop this way in Game Mode (UI, input and mpv video playback all work). - Or give "Launch Program" apps a Wayland display. That currently has its own blocker: on gamescope's Wayland socket Qt ignores VR trigger taps because
wl_touch.frameis never sent (reported separately: https://github.com/ValveSoftware/gamescope/issues/2552). - Upstream, Mesa's workaround list could be extended to Qt WebEngine hosts; I intend to raise that with Mesa separately.
Workaround for users
Add --env=MESA_LOADER_DRIVER_OVERRIDE=zink (or --env=force_gl_vendor=angleisbroken) to the app's flatpak run command line, or set it with flatpak override --user --env=... <app id>.
Steps for reproducing this issue:
- Install Jellyfin Desktop from Flathub (
org.jellyfin.JellyfinDesktop). - In Game Mode, start it via "Launch Program".
- Scroll any page (the server list or library). The window content breaks up as in screenshots 1 and 2.
Screenshots: the synthetic scrolling test page used for the matrix above, loaded in the Jellyfin Desktop window. The numbers are the ones used in the text and the matrix.
1 – Game Mode, X11, freedreno (default driver): corrupt
2 – same configuration after scrolling: corrupt
3 – Game Mode, X11, MESA_LOADER_DRIVER_OVERRIDE=zink: clean
4 – Game Mode, X11, force_gl_vendor=angleisbroken: clean
5 – Desktop Mode, Wayland, freedreno: clean (in-app capture)
6 – Desktop Mode, X11 (nested Plasma's Xwayland), freedreno: corrupt (in-app capture)
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 2.7k
- Fork
- 89
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ValveSoftware/SteamOS
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
ValveSoftware/SteamOS#3037 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ValveSoftware/SteamOS#2983 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ValveSoftware/SteamOS#2927 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ValveSoftware/SteamOS#2875 · 1 bình luận ·
-
steam-short-session-tracker: incorrect registry backup path resets settings during automatic repairĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
ValveSoftware/SteamOS#2829 ·
Tất cả issue của ValveSoftware/SteamOS
Issue tương tự
-
Send-Document has no job-state check, resurrects canceled jobs and re-prints processing jobsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
OpenPrinting/cups#1833 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Task retarget keeps the old host in task scope and adds the new host in a form that matches nothingCó thể đã có người làm @chaitanya0305 đã nhận hôm nay. Đang mởbug P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
BaaRai/ARTEX#652 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug effort:S P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
nightscout/nocturne#4563 ·
Maintainer thường phản hồi trong vòng 1 ngày