ValveSoftware / ValveSoftware/Fossilize

Vulkan Shaders processing endlessly

Open
#264 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
780
Forks
78
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the shader_log.txt reproduction and the fossilize_replay invocation shown in the report, focusing on the replay stopping at 73% and the effects of cancelling it. Investigate the replay and cancellation behavior using the reported AppID and shader-cache path. Done means shader processing completes or cancels cleanly without leaving background work that prevents shutdown.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.