[BUG] Steam crashes when opening Desktop view with multiple displays
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 8/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- linux
调研方向
This repository is only an issue tracker for the Linux SteamVR port; the crash is in the proprietary steamui.so NV12-to-ARGB conversion, so there is no source here to patch. The first step is for a maintainer to forward the logs and minidump ids (bp-16afcdd2-584e-4023-9e72-ad4642261114 for case 1, bp-20638a5a-e11c-4371-9b67-b71172261114 for case 2) to Valve and cross-reference #963 to confirm it is a distinct crash site. Done means the frame dimensions are validated against the shared-memory buffer size, or the desktop frame is built only for the portal-selected screen, and a reporter with a multi-monitor setup confirms the Desktop view no longer crashes.
由索引模型根据 Issue 内容生成。
描述
Describe the bug
Whenever I open the Desktop view in the SteamVR dashboard, the whole Steam client crashes and leaves SteamVR in a broken state. It happens with and without steam -pipewire.
Setup: 3 screens, 2× 4K (scaled 1.5×) and 1× 1080p. Steam's desktop size depends on the 1080p screen's scaling, and the crash looks slightly different in each case. Both crash in steamui.so, in NV12ToARGBRow_AVX2 (called from NV12ToARGBMatrix), reading past the end of the frame buffer.
In both cases Steam builds the desktop frame for the whole desktop layout, even though I've selected only one screen in the PipeWire screen-sharing portal and the PipeWire stream is just that one screen:
CDesktopCapturePipeWire: PipeWire stream format changed (size: 3840x2160, format 8, stride 15360, size 33177600, dmabuf: 0)
Case 1: 1080p screen at 1× (desktop 10560×2160), crashes immediately
Desktop state changed: desktop: { pos: 0, 0 size: 10560,2160 } primary: { pos: 3840, 0 size: 3840,2160 }
>>> Starting desktop stream
CDesktopCapturePipeWire: Start signal received.
Steam crashes in the same second, before the PipeWire stream even connects. The frame being converted is 10560×2160. As NV12 that's 34.2 MB, but the shared-memory buffer it's read from is 32 MiB, and the read fails exactly at the end of the buffer.
Case 2: 1080p screen at 1.5× (desktop 9600×2160), green flash, then crash
Desktop state changed: desktop: { pos: 0, 0 size: 9600,2160 } primary: { pos: 3840, 0 size: 3840,2160 }
>>> Starting desktop stream
CDesktopCapturePipeWire: Start signal received.
CDesktopCapturePipeWire: PipeWire stream format changed (size: 3840x2160, format 8, stride 15360, size 33177600, dmabuf: 0)
CDesktopCapturePipeWire: PipeWire stream state changed to streaming
A green image flashes briefly in the headset (seen at least once).. The PipeWire stream (one screen, 3840×2160) connects and starts streaming, and about a second later Steam crashes. The frame being converted is 9600×2160, the full desktop layout, not the stream size.
In both cases the reader seems to take width and height from the frame header without checking them against the buffer size.
This is also logged when the stream starts (might not be related):
pw_stream_update_params called from wrong context, check thread and locking: Operation not permitted
To Reproduce
Steps to reproduce the behavior:
- Use 3 monitors (2× 4K + 1× 1080p) on KDE Plasma Wayland, with 150% scaling on the 4K screens. Set the 1080p screen to 1× for case 1 or 1.5× for case 2.
- Start Steam with
-pipewireand select a single screen in the portal. - Start SteamVR (Steam Frame via Steam Link) and open the dashboard.
- Click "Desktop". Case 1 crashes immediately, case 2 flashes green first (in my case).
Expected behavior
The desktop view shows the selected screen. If a frame is too big for the buffer, it should be scaled down or dropped, not crash the client.
System Information (please complete the following information):
- Steam client version (build number or date): build 1794536281 (publicbeta, currently the same build as stable)
- SteamVR version: 2.19.3 beta (build 26655409)
- Distribution (e.g. Ubuntu): CachyOS, kernel 7.3.4, KDE Plasma 6.8.2 (Wayland), PipeWire 1.6.11, NVIDIA RTX 3090 (driver 620.70.06)
- Steam runtime diagnostics: available on request
- Steam and SteamVR logs: relevant excerpts above, full logs available on request
- Minidumps: uploaded by Steam's crash handler
- Case 1 (1×):
bp-16afcdd2-584e-4023-9e72-ad4642261114(with-pipewire),bp-3456691c-59af-48a9-a0e3-53d3a2261114(without-pipewire) - Case 2 (1.5×):
bp-20638a5a-e11c-4371-9b67-b71172261114,bp-1b287f47-fb16-4006-a92c-68daa2261114(with-pipewire),bp-c67395aa-7953-4f05-b053-037302261114(without-pipewire)
- Case 1 (1×):
Additional context
- Without
-pipewire, Steam logsDesktop capture unavailable, try running Steam with -pipewire, but still starts the desktop stream and crashes at the same place in both cases. - The Steam crash takes SteamVR down with it: vrdashboard and vrmonitor hit assertions, the compositor shuts down, and vrmonitor later aborts.
- #963 looks similar, but it's a different crash site and cause. It is the 32-bit
vrclient.sofailing to load a shader (Failed to load pixel shader !). That error doesn't appear here, and this crash is in the 64-bitsteamui.soduring NV12 conversion.
- 主要语言
- Shell
- 星标
- 1.2k
- 派生
- 58
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ValveSoftware/SteamVR-for-Linux 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
ValveSoftware/SteamVR-for-Linux#981 · 4 条评论 · 1 个 reaction ·
-
bug
难度 4/5 3-5 天 新手友好度 38/100
ValveSoftware/SteamVR-for-Linux#1097 ·
-
bug
难度 4/5 3-5 天 新手友好度 35/100
ValveSoftware/SteamVR-for-Linux#1095 · 2 条评论 ·
-
bug
难度 4/5 3-5 天 新手友好度 45/100
ValveSoftware/SteamVR-for-Linux#1094 ·
-
难度 4/5 3-5 天 新手友好度 35/100
ValveSoftware/SteamVR-for-Linux#1093 ·
查看 ValveSoftware/SteamVR-for-Linux 的全部 Issue
相似的 Issue
-
area: build-and-ci guard-red-main S3: minor
难度 2/5 1-3 小时 新手友好度 72/100
manaflow-ai/cmux#65616 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
achisolomon/software-factory#300 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 78/100
flathub/cc.arduino.IDE2#168 ·
-
documentation good first issue help wanted
难度 2/5 1-3 小时 新手友好度 90/100
oscarbol09/solwatch#28 ·
维护者通常 2 天内回复
-
difficulty:easy func:buildsystem prio:low type:task
难度 2/5 1-3 小时 新手友好度 87/100
NatronGitHub/Natron#2070 ·
维护者通常 1 天内回复