Vulkan Shaders processing endlessly

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

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
冷清
技术栈
cpp

调研方向

从报告中所示的 shader_log.txt 复现和 fossilize_replay 调用开始,重点关注回放在 73% 处停止以及取消回放的影响。使用报告中的 AppID 和 shader-cache 路径调查回放和取消行为。完成的标准是 shader 处理能够正常完成或取消,且不会留下阻止关闭的后台工作。

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

描述

Sometimes, when steam is fossilizing the shaders, the process runs endlessly. Here is an example log file from shader_log.txt:

[2025-03-11 07:46:59] Starting processing job for app 2683150!
[2025-03-11 07:46:59] Setting MESA_GLSL_CACHE_DIR=/media/zhujik/0B260D570B260D57/Spiele/Steam/SteamApps/shadercache/2683150 MESA_DISK_CACHE_READ_ONLY_FOZ_DBS=steam_cache,steam_precompiled,steam_precompiled_904f69d2b1b44b65,steam_precompil
ed_6c3f2d6fd9f36627
[2025-03-11 07:46:59] Starting replay of FOZ databases for AppID 2683150 with /home/zhujik/.steam/debian-installation/ubuntu12_32/../ubuntu12_64/fossilize_replay in:
[2025-03-11 07:46:59]   /media/zhujik/0B260D570B260D57/Spiele/Steam/SteamApps/shadercache/2683150/fozpipelinesv6/steamapprun_pipeline_cache.904f69d2b1b44b65/steam_pipeline_cache.foz.
[2025-03-11 07:46:59] Still replaying 2683150 (0%, 0/33841).
[2025-03-11 07:47:09] Still replaying 2683150 (6%, 2257/35529).
[2025-03-11 07:47:19] Still replaying 2683150 (35%, 12552/35832).
[2025-03-11 07:47:29] Still replaying 2683150 (52%, 19253/36441).
[2025-03-11 07:47:39] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:47:49] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:48:00] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:48:10] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:48:20] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:48:30] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:48:40] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:48:50] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:49:00] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:49:10] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:49:20] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:49:30] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:49:40] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:49:50] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:50:00] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:50:11] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:50:21] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:50:31] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:50:41] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:50:51] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:51:01] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:51:11] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:51:21] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:51:31] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:51:41] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:51:51] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:52:01] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:52:11] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:52:21] Still replaying 2683150 (73%, 26975/36488).
[2025-03-11 07:52:31] Still replaying 2683150 (73%, 26975/36488).

When i skip or cancel in steam window, steam becomes unresponsive, i can force quit steam after a while and restart it, then recompilation will succeed. however, something in the background is still processing, because the system cannot be shut down properly afterwards (it freezes on suspend / shutdown).

I suspect some kind of resource exhaustion, however, I cannot find anything when investigating (CPU, Mem, Disk are not exhausted). Please advice

主要语言
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 摘要。