[v2026.11.29.01] Immediate crash at +0x1e6c284 (System Init): XMemVirtualAlloc refused 6.09 GiB TileHeap under TITLE_TOP_BITS=37 (os error 8) #2356

Closed
opened 2026-11-29 12:21:49 +00:00 by github-bot · 6 comments
Owner

@⁠TheKovch on GitHub · 2026-11-29 12:20 UTC · original

What you would like

Environment

  • Build: v2026.11.29.01 (829188e9, release, Series X 4K, DLSS Performance + DLSS FG 2x)
  • OS: Windows 11 x64 (10.0.26300)
  • Hardware: Ryzen 9 7950X, 32 GB RAM (~17.7 GB free RAM, ~64.3 GB free virtual/commit), RTX 4090 24 GB (driver 621.01)

Issue

Right after host D3D12 device ready during System Init (frame 0), the title crashes immediately with 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x1e6c284.

This started happening consistently after host-pipelines.bin / known-pipelines.bin / known-shaders.bin were populated in the cache (the very first cold run booted fine).

Relevant log excerpt:

INFO victory_gpu::host: host D3D12 device ready
WARN victory_hle::modules::xmem: XMemVirtualAlloc refused size=6538919936 kind=0x42000 flags=0x23 error=Not enough memory resources are available to process this command. (os error 8)
VIctory: unhandled exception 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x1e6c284
  r9 0x4200000002004 rsi 0x185c0 r15 0x185c00000

Root Cause

size=6538919936 (0x185c00000, 6236 MiB) is the title's TileHeap placeholder reservation (MEM_RESERVE | MEM_RESERVE_PLACEHOLDER).
With the new TITLE_TOP_BITS = 37 (128 GiB) upper bound in crates/victory-hle/src/modules/xmem.rs (address_range), VirtualAlloc2 fails with ERROR_NOT_ENOUGH_MEMORY (os error 8) because there is no contiguous 6.09 GiB VA hole left below 0x1F_FFFF_FFFF once D3D12/Streamline and earlier reservations are in place.

Local Workaround Tested

Adding a fallback in crates/victory-hle/src/modules/xmem.rs right after let mut at = allocate(kind); to retry with the 40-bit console ceiling when <128 GiB fails:

if at.is_null() && constrained && highest < (1usize << 40) - 1 {
    requirements.HighestEndingAddress = ((1usize << 40) - 1) as *mut c_void;
    at = allocate(kind);
}

With this fallback, the game boots reliably every time (Windows places the TileHeap right at 0x1fffff0000). However, since part of the allocation extends above 128 GiB, occasional green/flickering texture artifacts appear in-game for by-address shader reads (as noted in #218).

Pre-reserving or keeping the 4..128 GiB VA range less fragmented before TileHeap allocation (or widening the by-address directory past 37 bits) would fix both the startup crash and the >128 GiB texture artifacts.

Are you working on a fix?

None

**@⁠TheKovch** on GitHub · 2026-11-29 12:20 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2356) ### What you would like ### Environment - **Build:** `v2026.11.29.01` (`829188e9`, release, Series X 4K, DLSS Performance + DLSS FG 2x) - **OS:** Windows 11 x64 (10.0.26300) - **Hardware:** Ryzen 9 7950X, 32 GB RAM (~17.7 GB free RAM, ~64.3 GB free virtual/commit), RTX 4090 24 GB (driver 621.01) ### Issue Right after `host D3D12 device ready` during `System Init` (frame 0), the title crashes immediately with `0x80000003` at `victory-image-b99f876b74d4a77f.dll+0x1e6c284`. This started happening consistently after `host-pipelines.bin` / `known-pipelines.bin` / `known-shaders.bin` were populated in the cache (the very first cold run booted fine). Relevant log excerpt: ```text INFO victory_gpu::host: host D3D12 device ready WARN victory_hle::modules::xmem: XMemVirtualAlloc refused size=6538919936 kind=0x42000 flags=0x23 error=Not enough memory resources are available to process this command. (os error 8) VIctory: unhandled exception 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x1e6c284 r9 0x4200000002004 rsi 0x185c0 r15 0x185c00000 ``` ### Root Cause `size=6538919936` (`0x185c00000`, 6236 MiB) is the title's `TileHeap` placeholder reservation (`MEM_RESERVE | MEM_RESERVE_PLACEHOLDER`). With the new `TITLE_TOP_BITS = 37` (128 GiB) upper bound in `crates/victory-hle/src/modules/xmem.rs` (`address_range`), `VirtualAlloc2` fails with `ERROR_NOT_ENOUGH_MEMORY` (`os error 8`) because there is no contiguous 6.09 GiB VA hole left below `0x1F_FFFF_FFFF` once D3D12/Streamline and earlier reservations are in place. ### Local Workaround Tested Adding a fallback in `crates/victory-hle/src/modules/xmem.rs` right after `let mut at = allocate(kind);` to retry with the 40-bit console ceiling when `<128 GiB` fails: ```rust if at.is_null() && constrained && highest < (1usize << 40) - 1 { requirements.HighestEndingAddress = ((1usize << 40) - 1) as *mut c_void; at = allocate(kind); } ``` With this fallback, the game boots reliably every time (Windows places the `TileHeap` right at `0x1fffff0000`). However, since part of the allocation extends above `128 GiB`, occasional green/flickering texture artifacts appear in-game for by-address shader reads (as noted in #218). Pre-reserving or keeping the `4..128 GiB` VA range less fragmented before `TileHeap` allocation (or widening the by-address directory past 37 bits) would fix both the startup crash and the >128 GiB texture artifacts. ### Are you working on a fix? None
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 12:21:49 +00:00
Author
Owner

@⁠chandlerryangames-blip on GitHub · 2026-11-29 12:22 UTC · original

I'm having the exact same issue on v2026.11.29.01 with an RTX 3090, i9-10850K, 32GB RAM, and Windows 11.

My crash happens at the same location (+0x1e6c284) with the exact same XMemVirtualAlloc refused size=6538919936 and os error 8.

Interestingly, the game sometimes launches successfully without me changing anything. I managed to capture both a successful launch log, where the 6.09 GiB allocation succeeds, and a failed launch log, where the same allocation is refused.

I've already tried increasing my paging file to 32GB, disabling MFG Unlocker, rebuilding the shader cache, and restarting Windows, but none of those fixed it.

The older VIctory release still works consistently.

I've attached both logs in case they help confirm the issue or identify why the allocation sometimes succeeds.

victory-success.log

victory-failed.log.log

**@⁠chandlerryangames-blip** on GitHub · 2026-11-29 12:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2356#issuecomment-7255769195) I'm having the exact same issue on v2026.11.29.01 with an RTX 3090, i9-10850K, 32GB RAM, and Windows 11. My crash happens at the same location (`+0x1e6c284`) with the exact same `XMemVirtualAlloc refused size=6538919936` and `os error 8`. Interestingly, the game sometimes launches successfully without me changing anything. I managed to capture both a successful launch log, where the 6.09 GiB allocation succeeds, and a failed launch log, where the same allocation is refused. I've already tried increasing my paging file to 32GB, disabling MFG Unlocker, rebuilding the shader cache, and restarting Windows, but none of those fixed it. The older VIctory release still works consistently. I've attached both logs in case they help confirm the issue or identify why the allocation sometimes succeeds. [victory-success.log](https://github.com/user-attachments/files/35571045/victory-success.log) [victory-failed.log.log](https://github.com/user-attachments/files/35571046/victory-failed.log.log)
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-29 15:59 UTC · original

Update: v2026.11.29.01 has a start-up crash (0x80000003 during System Init, often on non-16:9 or scaled displays) that we have fixed for the next build. The workaround until then is to run setx VICTORY_NATIVE_SIZE 2560x1440 once, open a new terminal and start again. If it still crashes, please attach the log from %LOCALAPPDATA%\VIctory\logs. If you need it playable right now, v2026.11.28.03 is the last build without these regressions.

**@⁠trustno1-coder** on GitHub · 2026-11-29 15:59 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2356#issuecomment-7258526830) Update: v2026.11.29.01 has a start-up crash (0x80000003 during System Init, often on non-16:9 or scaled displays) that we have fixed for the next build. The workaround until then is to run `setx VICTORY_NATIVE_SIZE 2560x1440` once, open a new terminal and start again. If it still crashes, please attach the log from %LOCALAPPDATA%\VIctory\logs. If you need it playable right now, v2026.11.28.03 is the last build without these regressions.
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-29 16:33 UTC · original

Correction to the workaround above: setx only reaches programs started after you sign out and back in, so it often never reaches the game. Start it with the size given directly instead:

victory.exe play --set VICTORY_NATIVE_SIZE=2560x1440

That workaround is only for the crash at System Init on a non-16:9 output size. If your log has a line XMemVirtualAlloc refused size=6538919936, it is a different crash (Windows refused the game a 6.5 GB memory reservation); closing other programs and setting the page file to "System managed" may help there, and v2026.11.28.03 works meanwhile.

**@⁠trustno1-coder** on GitHub · 2026-11-29 16:33 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2356#issuecomment-7259000348) Correction to the workaround above: `setx` only reaches programs started after you sign out and back in, so it often never reaches the game. Start it with the size given directly instead: ``` victory.exe play --set VICTORY_NATIVE_SIZE=2560x1440 ``` That workaround is only for the crash at System Init on a non-16:9 output size. If your log has a line `XMemVirtualAlloc refused size=6538919936`, it is a different crash (Windows refused the game a 6.5 GB memory reservation); closing other programs and setting the page file to "System managed" may help there, and v2026.11.28.03 works meanwhile.
Author
Owner

@⁠HailLucifer666 on GitHub · 2026-11-29 18:36 UTC · original

Opened #2723 to fix the 6.09 GiB \TileHeap\ reservation failure strictly inside < 1 << 37\ (avoiding the >128 GiB / #218 shader-read corruption you confirmed): bifurcates [4..96 GiB)\ vs [96..128 GiB), pre-reserves an early 16 GiB \MEM_RESERVE_PLACEHOLDER\ guard slab in [96..128 GiB)\ at \xmem::module()\ init (0 RAM / 0 commit), logs a \VirtualQueryEx\ VA-map summary on refusal, and adds a consumer-side map-time warning in \memory.rs. Would appreciate a boot test on your cache-populated setup!

**@⁠HailLucifer666** on GitHub · 2026-11-29 18:36 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2356#issuecomment-7260617122) Opened #2723 to fix the 6.09 GiB \TileHeap\ reservation failure strictly inside \< 1 << 37\ (avoiding the >128 GiB / #218 shader-read corruption you confirmed): bifurcates \[4..96 GiB)\ vs \[96..128 GiB)\, pre-reserves an early 16 GiB \MEM_RESERVE_PLACEHOLDER\ guard slab in \[96..128 GiB)\ at \xmem::module()\ init (0 RAM / 0 commit), logs a \VirtualQueryEx\ VA-map summary on refusal, and adds a consumer-side map-time warning in \memory.rs\. Would appreciate a boot test on your cache-populated setup!
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-29 20:37 UTC · original

This issue has the start-up crash where Windows refuses the game's 6.5 GB reservation (XMemVirtualAlloc refused size=6538919936 ... os error 8, then +0x1e6c284). v2026.11.29.04 is a build with only one fix aimed at exactly this crash.

We couldn't reproduce the real crash here, so it may not fix it for you. Please try it and tell us here whether the game now starts, and attach the play log and crashes.log either way. If the play log has a line with no room at first in the title's window, include that line; it tells us whether this was the cause.

**@⁠trustno1-coder** on GitHub · 2026-11-29 20:37 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2356#issuecomment-7262222528) This issue has the start-up crash where Windows refuses the game's 6.5 GB reservation (`XMemVirtualAlloc refused size=6538919936 ... os error 8`, then `+0x1e6c284`). [v2026.11.29.04](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.29.04) is a build with only one fix aimed at exactly this crash. We couldn't reproduce the real crash here, so it may not fix it for you. Please try it and tell us here whether the game now starts, and attach the play log and crashes.log either way. If the play log has a line with `no room at first in the title's window`, include that line; it tells us whether this was the cause.
github-bot 2026-11-30 23:48:21 +00:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-30 23:47 UTC · original

Closing this as a duplicate of #2081, which is the same problem. Everything posted here stays linked from #2081. Please add any new logs, details or test results there instead.

**@⁠trustno1-coder** on GitHub · 2026-11-30 23:47 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2356#issuecomment-7295522589) Closing this as a duplicate of #2081, which is the same problem. Everything posted here stays linked from #2081. Please add any new logs, details or test results there instead.
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#2356
No description provided.