[GAME STATUS]: Marvel's Wolverine (PPSA03671) crashes: "indirect image table at pc 0x0000114c has incompatible candidates" #1453

Closed
opened 2026-11-26 09:57:03 +00:00 by github-bot · 3 comments
Owner

@⁠Pinkman42 on GitHub · 2026-10-12 13:47 UTC · original

Game title

Wolverine 2026

Game ID / serial

PPSA03671

KytyPS5 version

KytyPS5-2026-10-12-5b0ef07 and KytyPS5-2026-10-12-df5b9b9

Compatibility status

Logo

Last working build / first broken build

first test on Wovlerine

Result details

Title: Marvel's Wolverine (PPSA03671) crashes: "indirect image table at pc 0x0000114c has incompatible candidates"

Game: Marvel's Wolverine, Title ID PPSA03671
Emulator builds tested: KytyPS5-2026-10-12-5b0ef07 and KytyPS5-2026-10-12-df5b9b9 (both official builds)
OS: Windows [10,]
GPU: 3060,
CPU / RAM: [Amd Ryzen 7 7800] / [16GB]

What happens:
The game starts, shaders compile (last state: VS 3 | PS 2 | CS 13), then
the emulator crashes with a fatal error. The crash is reproducible on every
launch and in both builds. The Vulkan pipeline cache was empty
(freshly created), so it is not caused by a stale cache.

Relevant log lines:
shader resource specialization failed: indirect image table at pc 0x0000114c has incompatible candidates
Error: condition (!ShaderRecompiler::IR::MaterializeResources(entry->second.resource_plan, runtime, entry->second.resources, entry->second.specialization)) is true in src/graphics/host_gpu/renderer/pipeline/pipelineCache.cpp:427

Also seen before the crash (probably unrelated):
Unresolved import stub called: juWbTNM+8hw[Posix_v1][libkernel_v1.1][Func]

Full log is attached.

Steps to reproduce the result

kytyps5_wolverine_log_5b0ef07.txt

kytyps5_wolverine_log_df5b9b9.txt

Expected behavior

Steps to reproduce:

  1. Start Marvel's Wolverine (PPSA03671) in KytyPS5 (build df5b9b9, also 5b0ef07).
  2. The game logo is shown, but the game never reaches the main menu. Shaders compile (last state: VS 3 | PS 2 | CS 13).
  3. The emulator crashes with "shader resource specialization failed: indirect image table at pc 0x0000114c has incompatible candidates" and a fatal error in pipelineCache.cpp:427.
    Happens on every launch.

Expected behavior:
The shader should compile and the game should continue past the logo into the main menu instead of the emulator crashing.

OS

Windows 10

CPU

Amd Ryzen 7

GPU

Nvidia 3060

RAM / VRAM

16Gb

Log file upload

build-log.txt

Screenshots/video

Image

Extra notes

No response

**@⁠Pinkman42** on GitHub · 2026-10-12 13:47 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1453) ### Game title Wolverine 2026 ### Game ID / serial PPSA03671 ### KytyPS5 version KytyPS5-2026-10-12-5b0ef07 and KytyPS5-2026-10-12-df5b9b9 ### Compatibility status Logo ### Last working build / first broken build first test on Wovlerine ### Result details Title: Marvel's Wolverine (PPSA03671) crashes: "indirect image table at pc 0x0000114c has incompatible candidates" Game: Marvel's Wolverine, Title ID PPSA03671 Emulator builds tested: KytyPS5-2026-10-12-5b0ef07 and KytyPS5-2026-10-12-df5b9b9 (both official builds) OS: Windows [10,] GPU: 3060, CPU / RAM: [Amd Ryzen 7 7800] / [16GB] What happens: The game starts, shaders compile (last state: VS 3 | PS 2 | CS 13), then the emulator crashes with a fatal error. The crash is reproducible on every launch and in both builds. The Vulkan pipeline cache was empty (freshly created), so it is not caused by a stale cache. Relevant log lines: shader resource specialization failed: indirect image table at pc 0x0000114c has incompatible candidates Error: condition (!ShaderRecompiler::IR::MaterializeResources(entry->second.resource_plan, runtime, entry->second.resources, entry->second.specialization)) is true in src/graphics/host_gpu/renderer/pipeline/pipelineCache.cpp:427 Also seen before the crash (probably unrelated): Unresolved import stub called: juWbTNM+8hw[Posix_v1][libkernel_v1.1][Func] Full log is attached. ### Steps to reproduce the result [kytyps5_wolverine_log_5b0ef07.txt](https://github.com/user-attachments/files/33340292/kytyps5_wolverine_log_5b0ef07.txt) [kytyps5_wolverine_log_df5b9b9.txt](https://github.com/user-attachments/files/33340302/kytyps5_wolverine_log_df5b9b9.txt) ### Expected behavior Steps to reproduce: 1. Start Marvel's Wolverine (PPSA03671) in KytyPS5 (build df5b9b9, also 5b0ef07). 2. The game logo is shown, but the game never reaches the main menu. Shaders compile (last state: VS 3 | PS 2 | CS 13). 3. The emulator crashes with "shader resource specialization failed: indirect image table at pc 0x0000114c has incompatible candidates" and a fatal error in pipelineCache.cpp:427. Happens on every launch. Expected behavior: The shader should compile and the game should continue past the logo into the main menu instead of the emulator crashing. ### OS Windows 10 ### CPU Amd Ryzen 7 ### GPU Nvidia 3060 ### RAM / VRAM 16Gb ### Log file upload [build-log.txt](https://github.com/user-attachments/files/33340761/build-log.txt) ### Screenshots/video <img width="1415" height="506" alt="Image" src="https://github.com/user-attachments/assets/56221a2f-f737-46a0-bb14-1c11cdde6fe3" /> ### Extra notes _No response_
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:57:04 +00:00
Author
Owner

@⁠danielmod on GitHub · 2026-10-14 05:30 UTC · original · edited 2026-10-14 05:34 UTC

Same crash here, plus findings from a few days of debugging it. Hope this helps whoever picks up the material tables.

Setup: Windows 11, RTX 3070 Ti 8 GB, Ryzen 5 3600X, 16 GB RAM, game 01.001.005.

Build matrix (same scene, pc 0x114c, shader 0xade1bef389644fa5)

Build Result
Official 10-02 e317465 GetImageResource dword 0 is not a valid runtime value (ResourceTracking.cpp:367)
Official 10-09 4c8fc53, 10-12 df5b9b9 indirect image table at pc 0x0000114c has incompatible candidates
Source 9e41d83 (10-13) No crash, but frozen at frame 892 for 5+ min: GPU thread inside ConstantPropagationPass ← TranslateProgram ← GetComputeProgram ← DispatchIndirect
Side branch bb8f49c (09-30, the bindless branch behind #937) with --bindless --readback-linear-images true --redzone --tessellation and skip list bad108e74fb72e9f,4e7f2c6bb9b158a1,8bfd230b9cd875a2,c4df2a00067e0666,dc76e1223a9bf673,e6d76d24f59f8015 Plays. Cinematics, then in-game at ~12–15 fps

What the table at pc 0x114c looks like

One indirect root with 289 candidates, all mip 1, no conversion:
210× Dim2DArray Float, 65× Dim2DArray Uint, 11× cube Float, 2× cube Uint. Float and Uint candidates are interleaved, with 37 gaps in descriptor indices.
The table only became a specialized indirect table after 973809c ("retain bounded scalar material image selectors").

Experiments on top of df5b9b9

  1. Relaxed the BuildResourceSpecialization check and emitted conversion/swizzle/numeric class per candidate, returning raw result bits (fetch/sample/gather). The crash goes away and the existing compute tests pass. (Upstream 652154ae later did something similar.)
  2. But the shaders become huge. The five material compute shaders (ade1bef3…, 095aca4c…, f19caea4…, e0cca8c2…, 6637473f…) were 300k–800k SPIR-V words, and NVIDIA's compiler took 8–26 s each. Every texture access expands into a 289-way run dispatch.
  3. Grouping candidates by (kind, dimension, cube, class, conversion, swizzle) behind a private constant ordinal → (group, slot) lookup array cut SPIR-V size by ~45% and capped the worst compile at ~10 s. Each shader was still recompiled 8–9 times, though, because ResourceSpecialization includes every candidate: each texture streamed into the table produces a new permutation. That alone was minutes of compiling, and the game crawled (~frame 50 → 58 in 4 min).
  4. VRAM exhaustion on 8 GB. The game sweeps dynamic resolution at startup (3328×1872 → 3072×1728 → … → 1536×864, about 20 RTs per step). The same guest address gets up to 12 extents (e.g. 0x1158260000: 3840×2160, 3328×1872, …). ResolveOverlap never frees the old images because they stay bound through the material table (is_bound within the same draw), so VMA hits VK_ERROR_OUT_OF_DEVICE_MEMORY (heap 0 at 8.07 GB allocated). A system-memory fallback in GraphicContext::CreateImage avoids the crash.

So with the specialized-table approach this game currently either crashes, hangs in the translator, or compiles/recompiles enormous shaders. The bindless path on the 09-30 branch avoids all three.

Profiling the working 09-30 branch in-game (cdb stack sampling + its own diagnostics)

The branch: tree at bb8f49c · its 61 commits since splitting from main at 05057c94 · Windows/Linux/macOS release. Neither Senaxx/main nor Senaxx/wolverine contains it any more; the bindless, skip-shaders, worker-thread pipelines and skip-draw-on-failure code lives in those commits.

  • GPU thread: ~24% waiting on GPU fences (readback drains), ~17% MaterializeResources/SrtWalker, ~17% buffer sync/upload, plus tracker-lock spins.
  • Indirect draw args are read on the CPU (CommandProcessor::DrawIndirect memcpy). The game's meshlet-culling compute writes them, so each read faults and drains the GPU. The earlier "GPU-read indirect draws" commits that #937 dropped would probably help a lot here.
  • Write-fault thrash: in 3 minutes, one guest instruction (pc 0x903dc951d) took 4.67M write faults (36 s total), plus three others at 0.6–1.0M. Pages get re-protected at every sync and rewritten right away. (Keeping repeatedly faulting pages permanently CPU-dirty fixed the fault count, but uploading them at every sync made fps worse overall, so it needs a smarter policy.)
  • Game threads waiting in faults: 16 thread-samples across 15 snapshots sat in the TrackingSpinLock busy-spin. That dropped to ~6 with _mm_pause + yield (006875ed's pause, backported).
  • Warning: game uses occlusion queries, which are currently treated as always visible.
  • Small wins I measured on the 09-30 branch: a per-program LRU cache of materialization results (keyed by user data, shader base and workgroup size, validated by re-reading every logged SRT word from GPU-clean backing), plus the spinlock change. In-game 13.3 → 15.0 fps in an A/B run. The cache hit rate is only ~20% because per-draw user data points into per-frame rings.
  • Tried and reverted: prefetching hot readback windows at submit end. The GPU rewrites them every submission, so it just wasted bandwidth (1 fps).

Suggestions

  • Make materialization failures non-fatal again (skip the draw), as the 09-30 branch does.
  • Bring back a bindless path, or key specialization on the set of candidate kinds rather than per-candidate state, so streaming textures don't trigger recompiles.
  • Native (GPU-read) indirect draws.
  • Look at the ConstantPropagationPass hang on 9e41d83 for this shader.

Patches

Shared as-is for reference: https://gist.github.com/danielmod/f24ea5d05385b8a6bc338f4e84d57de2

  • mainline-df5b9b9-wolverine-indirect-tables.patch (applies to df5b9b9; conflicts with current main, where these areas have since been rewritten):
    • per-candidate numeric class/conversion/swizzle in spirvEmitterImage.cpp, returning raw bits
    • relaxed candidate check with a precise failure reason in ResourceMaterialization.cpp
    • grouped table dispatch through a private constant lookup array (SpirvBuilder::DefineInitializedGlobalVariable)
    • device-memory → system-memory image fallback in vma.cpp
    • two count expectations updated in ShaderRecompilerComputeTests (all compute tests pass on an RTX 3070 Ti)
  • sidebranch-bb8f49c-materialization-cache-spinlock.patch (applies to bb8f49c): the per-program materialization cache and the TrackingSpinLock pause/yield. Memory tracker and page manager tests pass.
**@⁠danielmod** on GitHub · 2026-10-14 05:30 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1453#issuecomment-6161620315) · edited 2026-10-14 05:34 UTC Same crash here, plus findings from a few days of debugging it. Hope this helps whoever picks up the material tables. **Setup:** Windows 11, RTX 3070 Ti 8 GB, Ryzen 5 3600X, 16 GB RAM, game 01.001.005. ### Build matrix (same scene, pc 0x114c, shader `0xade1bef389644fa5`) | Build | Result | |---|---| | Official 10-02 `e317465` | `GetImageResource dword 0 is not a valid runtime value` (ResourceTracking.cpp:367) | | Official 10-09 `4c8fc53`, 10-12 `df5b9b9` | `indirect image table at pc 0x0000114c has incompatible candidates` | | Source `9e41d83` (10-13) | No crash, but frozen at frame 892 for 5+ min: GPU thread inside `ConstantPropagationPass` ← `TranslateProgram` ← `GetComputeProgram` ← `DispatchIndirect` | | Side branch `bb8f49c` (09-30, the bindless branch behind #937) with `--bindless --readback-linear-images true --redzone --tessellation` and skip list `bad108e74fb72e9f,4e7f2c6bb9b158a1,8bfd230b9cd875a2,c4df2a00067e0666,dc76e1223a9bf673,e6d76d24f59f8015` | **Plays.** Cinematics, then in-game at ~12–15 fps | ### What the table at pc 0x114c looks like One indirect root with **289 candidates**, all mip 1, no conversion: `210× Dim2DArray Float`, `65× Dim2DArray Uint`, `11× cube Float`, `2× cube Uint`. Float and Uint candidates are interleaved, with 37 gaps in descriptor indices. The table only became a specialized indirect table after 973809c ("retain bounded scalar material image selectors"). ### Experiments on top of df5b9b9 1. Relaxed the `BuildResourceSpecialization` check and emitted conversion/swizzle/numeric class **per candidate**, returning raw result bits (fetch/sample/gather). The crash goes away and the existing compute tests pass. (Upstream 652154ae later did something similar.) 2. **But the shaders become huge.** The five material compute shaders (`ade1bef3…`, `095aca4c…`, `f19caea4…`, `e0cca8c2…`, `6637473f…`) were 300k–800k SPIR-V words, and NVIDIA's compiler took **8–26 s each**. Every texture access expands into a 289-way run dispatch. 3. Grouping candidates by (kind, dimension, cube, class, conversion, swizzle) behind a private constant `ordinal → (group, slot)` lookup array cut SPIR-V size by ~45% and capped the worst compile at ~10 s. Each shader was still **recompiled 8–9 times**, though, because `ResourceSpecialization` includes every candidate: each texture streamed into the table produces a new permutation. That alone was minutes of compiling, and the game crawled (~frame 50 → 58 in 4 min). 4. **VRAM exhaustion on 8 GB.** The game sweeps dynamic resolution at startup (3328×1872 → 3072×1728 → … → 1536×864, about 20 RTs per step). The same guest address gets up to 12 extents (e.g. `0x1158260000`: 3840×2160, 3328×1872, …). `ResolveOverlap` never frees the old images because they stay bound through the material table (`is_bound` within the same draw), so VMA hits `VK_ERROR_OUT_OF_DEVICE_MEMORY` (heap 0 at 8.07 GB allocated). A system-memory fallback in `GraphicContext::CreateImage` avoids the crash. So with the specialized-table approach this game currently either crashes, hangs in the translator, or compiles/recompiles enormous shaders. The bindless path on the 09-30 branch avoids all three. ### Profiling the working 09-30 branch in-game (cdb stack sampling + its own diagnostics) The branch: [tree at `bb8f49c`](https://github.com/Senaxx/KytyPS5/tree/bb8f49c15d232d5b9e72983cb40c0b406e1ad9cb) · [its 61 commits since splitting from main at `05057c94`](https://github.com/KytyPS5/KytyPS5/compare/05057c94...bb8f49c15d232d5b9e72983cb40c0b406e1ad9cb) · [Windows/Linux/macOS release](https://github.com/Senaxx/KytyPS5/releases/tag/KytyPS5-2026-09-30-bb8f49c). Neither `Senaxx/main` nor `Senaxx/wolverine` contains it any more; the bindless, skip-shaders, worker-thread pipelines and skip-draw-on-failure code lives in those commits. - **GPU thread:** ~24% waiting on GPU fences (readback drains), ~17% `MaterializeResources`/`SrtWalker`, ~17% buffer sync/upload, plus tracker-lock spins. - **Indirect draw args are read on the CPU** (`CommandProcessor::DrawIndirect` memcpy). The game's meshlet-culling compute writes them, so each read faults and drains the GPU. The earlier "GPU-read indirect draws" commits that #937 dropped would probably help a lot here. - **Write-fault thrash:** in 3 minutes, one guest instruction (`pc 0x903dc951d`) took **4.67M write faults** (36 s total), plus three others at 0.6–1.0M. Pages get re-protected at every sync and rewritten right away. (Keeping repeatedly faulting pages permanently CPU-dirty fixed the fault count, but uploading them at every sync made fps worse overall, so it needs a smarter policy.) - **Game threads waiting in faults:** 16 thread-samples across 15 snapshots sat in the `TrackingSpinLock` busy-spin. That dropped to ~6 with `_mm_pause` + yield (006875ed's pause, backported). - `Warning: game uses occlusion queries, which are currently treated as always visible`. - **Small wins I measured on the 09-30 branch:** a per-program LRU cache of materialization results (keyed by user data, shader base and workgroup size, validated by re-reading every logged SRT word from GPU-clean backing), plus the spinlock change. In-game **13.3 → 15.0 fps** in an A/B run. The cache hit rate is only ~20% because per-draw user data points into per-frame rings. - **Tried and reverted:** prefetching hot readback windows at submit end. The GPU rewrites them every submission, so it just wasted bandwidth (1 fps). ### Suggestions - Make materialization failures non-fatal again (skip the draw), as the 09-30 branch does. - Bring back a bindless path, or key specialization on the *set of candidate kinds* rather than per-candidate state, so streaming textures don't trigger recompiles. - Native (GPU-read) indirect draws. - Look at the `ConstantPropagationPass` hang on `9e41d83` for this shader. ### Patches Shared as-is for reference: https://gist.github.com/danielmod/f24ea5d05385b8a6bc338f4e84d57de2 - **`mainline-df5b9b9-wolverine-indirect-tables.patch`** (applies to `df5b9b9`; conflicts with current main, where these areas have since been rewritten): - per-candidate numeric class/conversion/swizzle in `spirvEmitterImage.cpp`, returning raw bits - relaxed candidate check with a precise failure reason in `ResourceMaterialization.cpp` - grouped table dispatch through a private constant lookup array (`SpirvBuilder::DefineInitializedGlobalVariable`) - device-memory → system-memory image fallback in `vma.cpp` - two count expectations updated in `ShaderRecompilerComputeTests` (all compute tests pass on an RTX 3070 Ti) - **`sidebranch-bb8f49c-materialization-cache-spinlock.patch`** (applies to `bb8f49c`): the per-program materialization cache and the `TrackingSpinLock` pause/yield. Memory tracker and page manager tests pass.
Author
Owner

@⁠KelvinSilvaDev on GitHub · 2026-10-17 00:31 UTC · original

Hi. I'm not a graphics developer. I used an AI assistant (Claude) to read the Wolverine reports and the open PRs, and it helped me write this. I did not run the game for this comment, so please treat it as a reading guide, not a test result.

From the logs in #932, #1208, #1453 and #1487, they all stop at the same place: shader 0xade1bef389644fa5, pc 0x114c, then the fatal error at pipelineCache.cpp:427. If it's the same cause, they may be duplicates. #1497 only shows the last line, so I can't tell. #1079 and #1546 only have a screenshot.

What I could confirm on current main (42bb0da5):

  • The message "indirect image table ... has incompatible candidates" still exists in ResourceMaterialization.cpp, but the check was loosened by recent commits (for example 652154ae).
  • No report here is on a build after those commits, so I don't know if the crash is gone.
  • #1535 (draft, Codex-generated, no game test) only covers the stack overflow in #1513. #1412 only covers one race. #937 dropped the bindless parts. I did not find an open PR aimed at this crash.

The measurements in danielmod's comment above look useful: 289 mixed candidates, huge shaders, and VRAM running out on 8 GB. Could anyone with Wolverine retest on the newest build and post the line printed just before the fatal error? That would show whether this is still the same failure. Thanks.

**@⁠KelvinSilvaDev** on GitHub · 2026-10-17 00:31 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1453#issuecomment-6227374040) Hi. I'm not a graphics developer. I used an AI assistant (Claude) to read the Wolverine reports and the open PRs, and it helped me write this. I did not run the game for this comment, so please treat it as a reading guide, not a test result. From the logs in #932, #1208, #1453 and #1487, they all stop at the same place: shader `0xade1bef389644fa5`, `pc 0x114c`, then the fatal error at `pipelineCache.cpp:427`. If it's the same cause, they may be duplicates. #1497 only shows the last line, so I can't tell. #1079 and #1546 only have a screenshot. What I could confirm on current `main` (`42bb0da5`): - The message "indirect image table ... has incompatible candidates" still exists in `ResourceMaterialization.cpp`, but the check was loosened by recent commits (for example `652154ae`). - No report here is on a build after those commits, so I don't know if the crash is gone. - #1535 (draft, Codex-generated, no game test) only covers the stack overflow in #1513. #1412 only covers one race. #937 dropped the bindless parts. I did not find an open PR aimed at this crash. The measurements in danielmod's comment above look useful: 289 mixed candidates, huge shaders, and VRAM running out on 8 GB. Could anyone with Wolverine retest on the newest build and post the line printed just before the fatal error? That would show whether this is still the same failure. Thanks.
Author
Owner

@⁠danielmod on GitHub · 2026-10-21 11:16 UTC · original

Retested on current main as asked: 4644c529 (2026-10-21), clean source build, same machine as above (RTX 3070 Ti 8 GB, Ryzen 5 3600X, 16 GB, Windows 11, game 01.001.005).

Result on unmodified 4644c529

The "incompatible candidates" fatal is gone, but there's a new crash at the same shader. The game shows the splash screen and reaches ~frame 1000, then the emulator exits silently, with nothing printed before it. The last log lines:

ShaderRecompiler CS phase begin: stage=CS hash=0xade1bef389644fa5 IR TranslateProgram

Windows reports exception 0xc00000fd (STATUS_STACK_OVERFLOW). Caught under cdb, with /Z7 on ResourceTracking.cpp:

IR::Value::Resolve
Tracker::CollectScalarRead+0x3e     ResourceTracking.cpp @ 824
Tracker::CollectScalarRead+0x275    ResourceTracking.cpp @ 853   <- ~1600 frames, 0x270 bytes each
...
IR::TrackResources
ShaderRecompiler::TranslateProgram
PipelineCache::ProgramCache::Get<ShaderComputeInputInfo>
RenderExecutor::DispatchIndirect

CollectScalarRead recurses through every operand of every instruction, and this shader's dependency chains go ~1600 deep, which overflows the GPU thread's 1 MB stack. This looks like a different path from #1513's LoopBoundProof overflow.

Fixes (patch on 4644c529, linked below)

  1. Tracker::CollectScalarRead → iterative with an explicit stack. Same child order, same cycle rule (Phi allowed), and the same post-order for m_scalar_reads. m_srt_visited becomes an unordered_set, since the vector find was quadratic.
  2. Tracker::MemoryIndexBelongsTo scanned the whole program on every call, and PlanIndirectDescriptors → TryMakeNestedDescriptor → MatchDescriptorReads calls it per dword of every table candidate. With fix 1 alone, translation sat in this loop for minutes. It's now a per-index owner table, rebuilt when the instruction count changes (planning only prepends instructions). The answer is identical.
  3. System-memory fallback in GraphicContext::CreateImage on VK_ERROR_OUT_OF_DEVICE_MEMORY. Without it, the 8 GB card fails failed to create image: extent=1792x1008x1 format=13 (image.cpp:731) during the dynamic-resolution sweep described above.

resource_tracking_tests, resource_materialization_tests and shader_recompiler_compute_tests all pass.

Result with the patch

The game gets past the splash screen for the first time on main here (VS 7 | PS 11 | CS 103 compiled). It then crawls at 0–1 fps (frame ~900 → ~950 in a minute). Samples show the time going to NVIDIA's compiler (nvgpucomp) on the material shaders. 0xade1bef389644fa5 alone was translated 22 times in one run, because each change to the 289-candidate table produces a new specialization/permutation. That's the same churn I described above, and it's the next thing to solve for this game.

Patch: https://gist.github.com/danielmod/f24ea5d05385b8a6bc338f4e84d57de2#file-latest-4644c52-wolverine-stackoverflow-memindex-sysmem-patch (latest-4644c52-wolverine-stackoverflow-memindex-sysmem.patch, applies cleanly to 4644c529)

**@⁠danielmod** on GitHub · 2026-10-21 11:16 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1453#issuecomment-6314588800) Retested on current `main` as asked: **`4644c529`** (2026-10-21), clean source build, same machine as above (RTX 3070 Ti 8 GB, Ryzen 5 3600X, 16 GB, Windows 11, game 01.001.005). ### Result on unmodified `4644c529` The "incompatible candidates" fatal is gone, but there's a new crash at the same shader. The game shows the splash screen and reaches ~frame 1000, then the emulator **exits silently**, with nothing printed before it. The last log lines: ``` ShaderRecompiler CS phase begin: stage=CS hash=0xade1bef389644fa5 IR TranslateProgram ``` Windows reports exception **`0xc00000fd` (STATUS_STACK_OVERFLOW)**. Caught under cdb, with `/Z7` on `ResourceTracking.cpp`: ``` IR::Value::Resolve Tracker::CollectScalarRead+0x3e ResourceTracking.cpp @ 824 Tracker::CollectScalarRead+0x275 ResourceTracking.cpp @ 853 <- ~1600 frames, 0x270 bytes each ... IR::TrackResources ShaderRecompiler::TranslateProgram PipelineCache::ProgramCache::Get<ShaderComputeInputInfo> RenderExecutor::DispatchIndirect ``` `CollectScalarRead` recurses through every operand of every instruction, and this shader's dependency chains go ~1600 deep, which overflows the GPU thread's 1 MB stack. This looks like a different path from #1513's `LoopBoundProof` overflow. ### Fixes (patch on `4644c529`, linked below) 1. **`Tracker::CollectScalarRead` → iterative** with an explicit stack. Same child order, same cycle rule (Phi allowed), and the same post-order for `m_scalar_reads`. `m_srt_visited` becomes an `unordered_set`, since the vector `find` was quadratic. 2. **`Tracker::MemoryIndexBelongsTo`** scanned the whole program on every call, and `PlanIndirectDescriptors` → `TryMakeNestedDescriptor` → `MatchDescriptorReads` calls it per dword of every table candidate. With fix 1 alone, translation sat in this loop for minutes. It's now a per-index owner table, rebuilt when the instruction count changes (planning only prepends instructions). The answer is identical. 3. **System-memory fallback** in `GraphicContext::CreateImage` on `VK_ERROR_OUT_OF_DEVICE_MEMORY`. Without it, the 8 GB card fails `failed to create image: extent=1792x1008x1 format=13` (image.cpp:731) during the dynamic-resolution sweep described above. `resource_tracking_tests`, `resource_materialization_tests` and `shader_recompiler_compute_tests` all pass. ### Result with the patch The game **gets past the splash screen** for the first time on `main` here (`VS 7 | PS 11 | CS 103` compiled). It then crawls at 0–1 fps (frame ~900 → ~950 in a minute). Samples show the time going to NVIDIA's compiler (`nvgpucomp`) on the material shaders. `0xade1bef389644fa5` alone was translated **22 times** in one run, because each change to the 289-candidate table produces a new specialization/permutation. That's the same churn I described above, and it's the next thing to solve for this game. Patch: https://gist.github.com/danielmod/f24ea5d05385b8a6bc338f4e84d57de2#file-latest-4644c52-wolverine-stackoverflow-memindex-sysmem-patch (`latest-4644c52-wolverine-stackoverflow-memindex-sysmem.patch`, applies cleanly to `4644c529`)
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/KytyPS5--KytyPS5#1453
No description provided.