Repeated shader-processing delays on GTX 970: replay times out at 10 seconds but completes at 60

未关闭
#318 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
cpp, linux

调研方向

Start by locating the Steam fossilize_replay timeout handling and how it decides a worker has made no progress; the issue identifies a 10-second no-completion limit and timeout logs but names no source files or tests. Review the controlled cold and warm logs and the reproduction setup in the linked evidence. Done means determining whether the timeout or retry policy can be changed or configured without preventing valid shader workloads from completing.

由索引模型根据 Issue 内容生成。

描述

Launching The Sims 4 repeatedly stops at “Processing Vulkan shaders,” even after a previous pass finished. One recorded repeat pass delayed startup by roughly three minutes. The aim is to let precompilation finish and reuse its results on later launches while keeping shader pre-caching enabled.

Tests on this machine found that Steam's bundled fossilize_replay, invoked with --timeout-seconds 10, interrupts workers during compilation. Increasing that limit to 60 seconds allowed a selected workload to finish. Its driver cache was then reusable under the original 10-second limit.

System

Linux Mint 22.3; kernel 7.0.0-38-generic; native Steam build 1792618285; GTX 970 with NVIDIA 580.178.04; i7-2600K; 32 GB RAM. The Sims 4 AppID 1222670, Proton Experimental 1791989105 experimental-11.0-20261014-x86_64.

Comparison

These runs used Valve's original replayer, the same downloaded database, graphics indices 84000–92000, device 0, one worker and SPIR-V validation. Cold A and B used separate empty driver-cache directories. Each run restored identical initial replay metadata and validation whitelist; warm runs reused only the corresponding branch's driver cache.

Run Limit Wall time Result
Cold A 60 s 107.59 s Completed, no timeouts
Cold B 10 s 57.13 s Two timeouts; ended with “Cannot continue”
Warm A 60 s 12.54 s Completed, no timeouts
Warm B 10 s 53.88 s Three timeouts/retries
Completed A cache, original limit 10 s 12.34 s Completed, no timeouts

The interrupted run's shorter time reflects unfinished work. These are replay timings, not full game-launch times. An independent C++ build overlapped part of Cold A, so these are completion/failure comparisons rather than precise performance benchmarks.

The failing original-binary run logged:

Fossilize ERROR: Timed out replaying pipelines!
Fossilize ERROR: Child process 117112 terminated before we could receive progress. Cannot continue.

An earlier diagnostic-build GDB run caught the timeout-generated SIGABRT inside NVIDIA's shader compiler. This was not a spontaneous driver crash; the original-binary comparison above is the main evidence.

A Sims 4-only wrapper changing the limit to 60 also completed full Steam processing before and after restarting the client. An ordinary subsequent game relaunch started no new shader replay. A deliberately forced warm scan still took about a minute: this workaround does not eliminate Steam's scan overhead or establish that 60 seconds is appropriate for every system.

Request and evidence

Please review Steam's explicit 10-second no-completion limit for this workload and whether it could be configurable or handled with a different retry policy.

The supporting evidence Gist contains the full investigation, controlled logs, reproduction setup, and alternatives tested. A fresh cache and an unmodified upstream replayer did not resolve the tested failures.

The exact shader database and initial metadata are not included, so the published evidence is not a standalone reproducer. Their packaging-time hashes and required paths are recorded. Other GPUs/drivers, newer driver versions and future shader updates have not been tested.

Individual controlled-run logs

Related: ValveSoftware/steam-for-linux#13622 concerns NVIDIA cache merging with Mismatching key! errors. Those errors were absent in the inspected logs here; this report focuses on the reproducible timeout behavior.

主要语言
C++
星标
800
派生
82
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ValveSoftware/Fossilize 的其他 Issue

查看 ValveSoftware/Fossilize 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。