v2026.11.29.04 hangs while walking the shader cache (never reaches the window; .03 starts on the same cache) #3273

Open
opened 2026-11-29 21:16:17 +00:00 by github-bot · 5 comments
Owner

@⁠straperlu on GitHub · 2026-11-29 21:13 UTC · original

What happened
v2026.11.29.04 (the XMem 8 GiB spare fix) never reaches the title. It stops during the shader-cache walk and stays there: no window, no error, no further log line.

$ victory.exe play --no-framegen-ready --res 1080to1440 --dlss quality ...
1000 shaders in the cache, file 18 of 27591 (0 %, 12 % of bytes), 6 s
...
19000 shaders in the cache, file 18 of 27591 (0 %, 12 % of bytes), 16 s
<- nothing after this, for 3+ minutes
The process is alive but idle: 16 s of CPU and ~1.3 GB working set after 3 minutes, so it is not translating, it is blocked. The last lines in stderr are the usual device setup (host D3D12 device ready, host view heaps hold 1000000 views, VICTORY_EARLY_DEPTH=1: pixel programs ...), then silence.

Notes:

The cache was already warm from .03 (27,591 entries). .03 walks the same cache in ~25 s and starts; the same cache with .04 stops at 19,000.
v2026.11.29.03 official does not start here (the #2081 refusal), so I could not compare .04 against a stock .03 on this PC. I compared it against .03 built from source at cec481f4 plus the #2133 fallback (xmem.rs: retry without the 128 GiB cap), which starts and runs.
What may matter for the spare-8-GiB reservation
If it helps: on this PC the address space around the title's window is crowded by DLSS's driver before the title asks (see #2081 / #2133: nvcuda64 reserves 36 + 28 GiB there). With .03 + the #2133 fallback the log says:

WARN victory_hle::modules::xmem: XMemVirtualAlloc: no room below 128 GiB, placed above it size=6538919936 at=0x...
so the capped range really is full here at the time the title asks. If .04's spare block is taken at a different moment or from a different range, that may be where it blocks — this is a guess, not evidence; I have no debugger on this box.

Setup
Windows 11 Pro 26200, i5-14600K, 32 GB DDR4-3200, RTX 3090 24 GB, driver 621.14.
Page file 48 GB fixed (the layer commits 31-40 GB); VICTORY_HOME on the game's SSD.
Series X files, title 1.0.2.1, --res 1080to1440, DLSS Quality (scene 1706x960), ray tracing off.
Extra switches: VICTORY_PROCESS_MEMORY=0, VICTORY_WINDOW_REACH_KB=512, VICTORY_ALIAS_TARGETS=0, VICTORY_TEXTURE_FIRST_UPLOAD_MB=32, VICTORY_LEAVE_OUT=02384a60fda6f2d0,731a39171b568298, VICTORY_HELPER_PRIORITY=1, VICTORY_TEXTURE_CATCHUP=1, VICTORY_TEXTURE_STAGE_MS=32, VICTORY_INDIRECT_MERGE=1.
Logs
The play log from the .04 run ends at the 19000 shaders in the cache line with no WARN or ERROR after it. Its last lines, verbatim:

INFO victory_gpu::host: host shader model model=6.8 runtime=Some("C:\WINDOWS\SYSTEM32\D3D12Core.dll")
INFO victory_gpu::pipeline::refused: host shader caps shader_model=6.8 wave_min=32 wave_max=32 ...
INFO victory_gpu::host: host D3D12 device ready
INFO victory_gpu::descriptor::host: host view heaps hold 1000000 views; view indices are clamped ...
INFO victory_gpu::shader_cache: VICTORY_EARLY_DEPTH=1: pixel programs whose console code tests depth ...
Happy to attach the full log to the issue if you want it.

**@⁠straperlu** on GitHub · 2026-11-29 21:13 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3273) What happened v2026.11.29.04 (the XMem 8 GiB spare fix) never reaches the title. It stops during the shader-cache walk and stays there: no window, no error, no further log line. $ victory.exe play <game> --no-framegen-ready --res 1080to1440 --dlss quality ... 1000 shaders in the cache, file 18 of 27591 (0 %, 12 % of bytes), 6 s ... 19000 shaders in the cache, file 18 of 27591 (0 %, 12 % of bytes), 16 s <- nothing after this, for 3+ minutes The process is alive but idle: 16 s of CPU and ~1.3 GB working set after 3 minutes, so it is not translating, it is blocked. The last lines in stderr are the usual device setup (host D3D12 device ready, host view heaps hold 1000000 views, VICTORY_EARLY_DEPTH=1: pixel programs ...), then silence. Notes: The cache was already warm from .03 (27,591 entries). .03 walks the same cache in ~25 s and starts; the same cache with .04 stops at 19,000. v2026.11.29.03 official does not start here (the #2081 refusal), so I could not compare .04 against a stock .03 on this PC. I compared it against .03 built from source at cec481f4 plus the #2133 fallback (xmem.rs: retry without the 128 GiB cap), which starts and runs. What may matter for the spare-8-GiB reservation If it helps: on this PC the address space around the title's window is crowded by DLSS's driver before the title asks (see #2081 / #2133: nvcuda64 reserves 36 + 28 GiB there). With .03 + the #2133 fallback the log says: WARN victory_hle::modules::xmem: XMemVirtualAlloc: no room below 128 GiB, placed above it size=6538919936 at=0x... so the capped range really is full here at the time the title asks. If .04's spare block is taken at a different moment or from a different range, that may be where it blocks — this is a guess, not evidence; I have no debugger on this box. Setup Windows 11 Pro 26200, i5-14600K, 32 GB DDR4-3200, RTX 3090 24 GB, driver 621.14. Page file 48 GB fixed (the layer commits 31-40 GB); VICTORY_HOME on the game's SSD. Series X files, title 1.0.2.1, --res 1080to1440, DLSS Quality (scene 1706x960), ray tracing off. Extra switches: VICTORY_PROCESS_MEMORY=0, VICTORY_WINDOW_REACH_KB=512, VICTORY_ALIAS_TARGETS=0, VICTORY_TEXTURE_FIRST_UPLOAD_MB=32, VICTORY_LEAVE_OUT=02384a60fda6f2d0,731a39171b568298, VICTORY_HELPER_PRIORITY=1, VICTORY_TEXTURE_CATCHUP=1, VICTORY_TEXTURE_STAGE_MS=32, VICTORY_INDIRECT_MERGE=1. Logs The play log from the .04 run ends at the 19000 shaders in the cache line with no WARN or ERROR after it. Its last lines, verbatim: INFO victory_gpu::host: host shader model model=6.8 runtime=Some("C:\\WINDOWS\\SYSTEM32\\D3D12Core.dll") INFO victory_gpu::pipeline::refused: host shader caps shader_model=6.8 wave_min=32 wave_max=32 ... INFO victory_gpu::host: host D3D12 device ready INFO victory_gpu::descriptor::host: host view heaps hold 1000000 views; view indices are clamped ... INFO victory_gpu::shader_cache: VICTORY_EARLY_DEPTH=1: pixel programs whose console code tests depth ... Happy to attach the full log to the issue if you want it.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 21:16:17 +00:00
Author
Owner

@⁠kibagami-nc on GitHub · 2026-11-29 21:14 UTC · original

One A/B would tell whether it's the spare. The only commit between .03 and .04 is f72cec77:

  • What .04 does at start: before anything else, it keeps 8 GiB of address space for the title, top-down in [4 GiB, 128 GiB).
  • Why that can matter here: on your PC that range is already crowded by the time the title asks (#2081, #2133). The 8 GiB come out of what is left there.

The spare can be turned off with VICTORY_TITLE_SPARE_MB=0. It is read at the very start, before play clears the VICTORY_ variables, so the environment works for once:

$env:VICTORY_TITLE_SPARE_MB = '0'; .\victory.exe play <game> --no-framegen-ready --res 1080to1440 --dlss quality

If .04 then gets past the cache walk like your .03 build, the spare is what blocks it.

**@⁠kibagami-nc** on GitHub · 2026-11-29 21:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3273#issuecomment-7262716103) One A/B would tell whether it's the spare. The only commit between .03 and .04 is f72cec77: - **What .04 does at start:** before anything else, it keeps 8 GiB of address space for the title, top-down in [4 GiB, 128 GiB). - **Why that can matter here:** on your PC that range is already crowded by the time the title asks (#2081, #2133). The 8 GiB come out of what is left there. The spare can be turned off with `VICTORY_TITLE_SPARE_MB=0`. It is read at the very start, before `play` clears the `VICTORY_` variables, so the environment works for once: ```powershell $env:VICTORY_TITLE_SPARE_MB = '0'; .\victory.exe play <game> --no-framegen-ready --res 1080to1440 --dlss quality ``` If .04 then gets past the cache walk like your .03 build, the spare is what blocks it.
Author
Owner

@⁠straperlu on GitHub · 2026-11-29 21:23 UTC · original

A/B done, and the answer is both: the spare is what blocks the walk, and it is also what the
title needs.

With VICTORY_TITLE_SPARE_MB=0 on the same machine (.04, same switches, same warm cache), the
cache walk completes — it gets past 19,000/27,591 and reaches "display the screen stays on while
the title runs" — and then the original failure is back:

WARN victory_hle::modules::xmem: XMemVirtualAlloc refused size=6538919936 kind=0x42000 flags=0x23
VIctory: unhandled exception 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x1e6c284

So with .04 as shipped the spare holds 8 GiB of [4 GiB, 128 GiB) for the whole of startup and the
walk cannot get its contiguous range; with the spare off the walk is fine but the 6.5 GB heap is
refused again. On this PC the window really is that tight (#2133's fallback, which retries without
the 128 GiB cap, is what makes .03 start here).

Would releasing the spare earlier help — i.e. keep it only until the title asks for the TileHeap,
rather than for the whole of startup? Or take it from the top of [4 GiB, 128 GiB) only, so the
walk's own range stays whole?

**@⁠straperlu** on GitHub · 2026-11-29 21:23 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3273#issuecomment-7262837287) A/B done, and the answer is both: the spare is what blocks the walk, and it is also what the title needs. With `VICTORY_TITLE_SPARE_MB=0` on the same machine (.04, same switches, same warm cache), the cache walk completes — it gets past 19,000/27,591 and reaches "display the screen stays on while the title runs" — and then the original failure is back: WARN victory_hle::modules::xmem: XMemVirtualAlloc refused size=6538919936 kind=0x42000 flags=0x23 VIctory: unhandled exception 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x1e6c284 So with .04 as shipped the spare holds 8 GiB of [4 GiB, 128 GiB) for the whole of startup and the walk cannot get its contiguous range; with the spare off the walk is fine but the 6.5 GB heap is refused again. On this PC the window really is that tight (#2133's fallback, which retries without the 128 GiB cap, is what makes .03 start here). Would releasing the spare earlier help — i.e. keep it only until the title asks for the TileHeap, rather than for the whole of startup? Or take it from the top of [4 GiB, 128 GiB) only, so the walk's own range stays whole?
Author
Owner

@⁠kibagami-nc on GitHub · 2026-11-29 21:41 UTC · original

Thanks, that pins it on the spare.

  • What the spare is: address space only (MEM_RESERVE, top-down in [4 GiB, 128 GiB)). No memory is committed, so the walk isn't short of memory. It's short of room in that range, and something in it waits instead of failing.
  • How it works when refused: the title's heap is 6,538,919,936 bytes (6,236 MiB), and the default spare is 8,192 MiB. When the heap request is refused, the spare is given back and the request is tried again, so the spare only has to be a little larger than the heap.

A test in between, on your PC:

$env:VICTORY_TITLE_SPARE_MB = '6300'; .\victory.exe play …

If the walk passes and the heap is placed, the default 8 GiB is simply too much for a window as tight as yours. That would point at a smaller default, or at holding the spare only until the title asks for its heap rather than through the whole start. That design choice is for the maintainer.

**@⁠kibagami-nc** on GitHub · 2026-11-29 21:41 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3273#issuecomment-7263068908) Thanks, that pins it on the spare. - **What the spare is:** address space only (`MEM_RESERVE`, top-down in [4 GiB, 128 GiB)). No memory is committed, so the walk isn't short of memory. It's short of room in that range, and something in it waits instead of failing. - **How it works when refused:** the title's heap is 6,538,919,936 bytes (6,236 MiB), and the default spare is 8,192 MiB. When the heap request is refused, the spare is given back and the request is tried again, so the spare only has to be a little larger than the heap. A test in between, on your PC: ```powershell $env:VICTORY_TITLE_SPARE_MB = '6300'; .\victory.exe play … ``` If the walk passes and the heap is placed, the default 8 GiB is simply too much for a window as tight as yours. That would point at a smaller default, or at holding the spare only until the title asks for its heap rather than through the whole start. That design choice is for the maintainer.
Author
Owner

@⁠straperlu on GitHub · 2026-11-29 22:01 UTC · original

That was it: VICTORY_TITLE_SPARE_MB=6300 works on this PC.

.04 exactly as shipped (the release asset, no local build, no patch), same switches, same warm
cache, spare 6,300 MiB instead of 8,192:

display the screen stays on while the title runs
Americas | VIctory-NVIDIA 14 fps (frame gen 28 fps) 72.5 ms/frame 4,772 draws/frame

No XMemVirtualAlloc refusal, no unhandled exception, and the 6,236 MiB heap is still placed. So
on a window as tight as this one the 8 GiB default is simply too much.

The three data points:

  • 8,192 MiB: the cache walk stops dead at 19,000/27,591 (16 s of CPU, ~1.3 GB working set, no
    error, no window, nothing after the last stderr line).
  • 6,300 MiB: the walk completes and the title runs.
  • 0: the walk completes and the title is refused its heap at start (the #2081 crash).

I did not bisect the limit: 6,300 works and 8,192 does not, so the ceiling is somewhere between
the two. Say the word and I will bisect it — each run is a couple of minutes with the cache warm.

One more thing that may be useful: this build has now run 10+ minutes here with no
"host command list did not close (0x80070057)", which .03 hit after about six minutes on the same
machine (#3152). Too early to call it fixed, but it is the difference between the two releases on
this PC so far.

On the design: +1 for releasing the spare before the walk (or holding it only until the title asks
for its heap). Making it depend on a number a user has to tune between their heap size and their
address-space layout is fragile, and on a 32 GB PC with DLSS already holding 36 + 28 GiB of that
range (#2081, #2133) there is very little room to tune in.

Thanks — happy to attach the full logs from any of the runs.

**@⁠straperlu** on GitHub · 2026-11-29 22:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3273#issuecomment-7263345376) That was it: `VICTORY_TITLE_SPARE_MB=6300` works on this PC. .04 exactly as shipped (the release asset, no local build, no patch), same switches, same warm cache, spare 6,300 MiB instead of 8,192: display the screen stays on while the title runs Americas | VIctory-NVIDIA 14 fps (frame gen 28 fps) 72.5 ms/frame 4,772 draws/frame No XMemVirtualAlloc refusal, no unhandled exception, and the 6,236 MiB heap is still placed. So on a window as tight as this one the 8 GiB default is simply too much. The three data points: - 8,192 MiB: the cache walk stops dead at 19,000/27,591 (16 s of CPU, ~1.3 GB working set, no error, no window, nothing after the last stderr line). - 6,300 MiB: the walk completes and the title runs. - 0: the walk completes and the title is refused its heap at start (the #2081 crash). I did not bisect the limit: 6,300 works and 8,192 does not, so the ceiling is somewhere between the two. Say the word and I will bisect it — each run is a couple of minutes with the cache warm. One more thing that may be useful: this build has now run 10+ minutes here with no "host command list did not close (0x80070057)", which .03 hit after about six minutes on the same machine (#3152). Too early to call it fixed, but it is the difference between the two releases on this PC so far. On the design: +1 for releasing the spare before the walk (or holding it only until the title asks for its heap). Making it depend on a number a user has to tune between their heap size and their address-space layout is fragile, and on a 32 GB PC with DLSS already holding 36 + 28 GiB of that range (#2081, #2133) there is very little room to tune in. Thanks — happy to attach the full logs from any of the runs.
Author
Owner

@⁠kibagami-nc on GitHub · 2026-11-29 22:10 UTC · original

Thanks, three clean data points. #3353 makes 6,300 MiB the default, with your table. No need to bisect: the spare only has to be larger than the 6,236 MiB heap, so a value just above it is the point.

I agree that holding the spare only until the title asks for its heap would be sturdier than any number. That's a design change for the maintainer; #3353 says so.

**@⁠kibagami-nc** on GitHub · 2026-11-29 22:10 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3273#issuecomment-7263462723) Thanks, three clean data points. #3353 makes 6,300 MiB the default, with your table. No need to bisect: the spare only has to be larger than the 6,236 MiB heap, so a value just above it is the point. I agree that holding the spare only until the title asks for its heap would be sturdier than any number. That's a design change for the maintainer; #3353 says so.
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/trustno1-coder--VIctory-NVIDIA#3273
No description provided.