Access violation at +0x4e33a92 while the first mission intro prestreams (Windows 10, RTX 4080) #99

Open
opened 2026-11-26 03:50:12 +00:00 by github-bot · 5 comments
Owner

@⁠Proudnoob4 on GitHub · 2026-11-24 00:29 UTC · original

Seen once, on Windows 10 with two local patches: #28 for the loader and the Agility SDK exports from #84. RTX 4080 (driver 621.01), i5-13600K, main 97c78d1, title build b99f876b…. AI-assisted (Claude); I did the run and the analysis below myself.

What happened

After the start screen, story mode loaded; the loading art showed at about 150 s. At 3 min 28 s, two job threads faulted on the same instruction with the same stack:

VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x4e33a92 (write 0x325a0570)
  r9 0x7f90560 r12 0x325a0560
VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x4e33a92 (write 0x325a0390)
  r9 0x7f90380 r12 0x325a0380
  #0 +0x4e33a92  #1 +0x4e33350  #2 +0x79fb0  #3 +0x1649d60  #4 +0x35b6d2c
  #5 +0x4eeaa59  #6 +0x2677819  #7 +0x256fb83  #8 +0x221c29c  #9 +0x2215eca

The instruction is in a loop that clears 48 bytes per step:

144e33a8e: vxorps  %xmm0, %xmm0, %xmm0
144e33a92: vmovups %ymm0, 0x10(%r12)    <- faults
144e33a99: vmovups %ymm0, (%r12)
144e33a9f: addq    $0x30, %r12

In both threads r12 - r9 is exactly 0x2A610000. Nothing in the log hands out an address in that range.

The title's own crash context

The title wrote this context to T:; its upload to backtrace.io was blocked as designed.

  • Game State: Game Running. Frame 4079, running time 3m28s.
  • Current SRL: fbk_stry000_FBK_STRY000_INTRO, state Prestream.
  • Pools were populated (52 peds, 84 vehicles, 4,218 objects) and the player was placed, so the world had loaded.
  • Game Physical: 2,177,984,304 / 2,305,818,624. Pool: 591,978,320 / 624,951,280.

Same run, GPU side

There was no GPU failure in this run: no driver reset, no device removed. VIctory logged that 70 compute and 21 pixel shaders did not translate, and the host refused 4 compute pipelines with E_INVALIDARG.

In an earlier run on the same setup, the world's first frame ended in a TDR instead (slow host submission ms=11341 lists=33, then device removed).

**@⁠Proudnoob4** on GitHub · 2026-11-24 00:29 UTC · [original](https://github.com/Marvisak/VIctory/issues/99) Seen once, on Windows 10 with two local patches: #28 for the loader and the Agility SDK exports from #84. RTX 4080 (driver 621.01), i5-13600K, main `97c78d1`, title build `b99f876b…`. AI-assisted (Claude); I did the run and the analysis below myself. ### What happened After the start screen, story mode loaded; the loading art showed at about 150 s. At 3 min 28 s, two job threads faulted on the same instruction with the same stack: ``` VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x4e33a92 (write 0x325a0570) r9 0x7f90560 r12 0x325a0560 VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x4e33a92 (write 0x325a0390) r9 0x7f90380 r12 0x325a0380 #0 +0x4e33a92 #1 +0x4e33350 #2 +0x79fb0 #3 +0x1649d60 #4 +0x35b6d2c #5 +0x4eeaa59 #6 +0x2677819 #7 +0x256fb83 #8 +0x221c29c #9 +0x2215eca ``` The instruction is in a loop that clears 48 bytes per step: ``` 144e33a8e: vxorps %xmm0, %xmm0, %xmm0 144e33a92: vmovups %ymm0, 0x10(%r12) <- faults 144e33a99: vmovups %ymm0, (%r12) 144e33a9f: addq $0x30, %r12 ``` In both threads `r12 - r9` is exactly `0x2A610000`. Nothing in the log hands out an address in that range. ### The title's own crash context The title wrote this context to `T:`; its upload to backtrace.io was blocked as designed. - Game State: Game Running. Frame 4079, running time 3m28s. - Current SRL: `fbk_stry000_FBK_STRY000_INTRO`, state Prestream. - Pools were populated (52 peds, 84 vehicles, 4,218 objects) and the player was placed, so the world had loaded. - Game Physical: 2,177,984,304 / 2,305,818,624. Pool: 591,978,320 / 624,951,280. ### Same run, GPU side There was no GPU failure in this run: no driver reset, no device removed. VIctory logged that 70 compute and 21 pixel shaders did not translate, and the host refused 4 compute pipelines with `E_INVALIDARG`. In an earlier run on the same setup, the world's first frame ended in a TDR instead (`slow host submission ms=11341 lists=33`, then device removed).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:50:12 +00:00
Author
Owner

@⁠Proudnoob4 on GitHub · 2026-11-24 00:38 UTC · original

It reproduces. Two more automated runs on the same setup (one Enter at the profile prompt, nothing else) crashed in the same phase, and each was again a write below 4 GB:

Run Fault Write Frame Game Physical
first (above) +0x4e33a92 0x325a0570 4079 2,177,984,304 / 2,305,818,624
2nd VCRUNTIME140.dll+0x1dbf3 (memset), called from +0x4e5013c 0x42426280 1262 2,181,902,528 / 2,305,818,624
3rd, D3D12 debug layer on +0x4e336b1 0x29604b80 1176 2,182,505,296 / 2,305,818,624

All three have Current SRL: fbk_stry000_FBK_STRY000_INTRO, state Prestream. In the 3rd, r12 - r9 is again a round base, 0x20C80000 (first run: 0x2A610000).

A candidate cause on NVIDIA. In every run the host refuses the same 76 compute pipelines (E_INVALIDARG). With VICTORY_D3D12_DEBUG=1, 75 of the refusals carry:

ID3D12Device::CreateComputeShader: Shader wants wave lane count of 64 but maximum wave lane count for device is 32. id=622

Their dispatches are then dropped (a dispatch without a host pipeline dropped). The world runs on the RX 6700 XT, which has 64-lane waves, so missing output from those dispatches could be where the bad pointers come from. I haven't verified that link. For reference, Leonida's translator has a --wave64-emulate mode for 32-lane GPUs.

The debug layer also names the two textures that fail with no host texture (id 599):

  • B5G5R5A1_UNORM with ALLOW_UNORDERED_ACCESS
  • B4G4R4A4_UNORM with ALLOW_RENDER_TARGET

This RTX 4080 supports neither of those combinations.

**@⁠Proudnoob4** on GitHub · 2026-11-24 00:38 UTC · [original](https://github.com/Marvisak/VIctory/issues/99#issuecomment-7118276395) It reproduces. Two more automated runs on the same setup (one Enter at the profile prompt, nothing else) crashed in the same phase, and each was again a write below 4 GB: | Run | Fault | Write | Frame | Game Physical | |---|---|---|---|---| | first (above) | `+0x4e33a92` | `0x325a0570` | 4079 | 2,177,984,304 / 2,305,818,624 | | 2nd | `VCRUNTIME140.dll+0x1dbf3` (memset), called from `+0x4e5013c` | `0x42426280` | 1262 | 2,181,902,528 / 2,305,818,624 | | 3rd, D3D12 debug layer on | `+0x4e336b1` | `0x29604b80` | 1176 | 2,182,505,296 / 2,305,818,624 | All three have `Current SRL: fbk_stry000_FBK_STRY000_INTRO`, state Prestream. In the 3rd, `r12 - r9` is again a round base, `0x20C80000` (first run: `0x2A610000`). **A candidate cause on NVIDIA.** In every run the host refuses the same 76 compute pipelines (`E_INVALIDARG`). With `VICTORY_D3D12_DEBUG=1`, 75 of the refusals carry: ``` ID3D12Device::CreateComputeShader: Shader wants wave lane count of 64 but maximum wave lane count for device is 32. id=622 ``` Their dispatches are then dropped (`a dispatch without a host pipeline dropped`). The world runs on the RX 6700 XT, which has 64-lane waves, so missing output from those dispatches could be where the bad pointers come from. I haven't verified that link. For reference, Leonida's translator has a `--wave64-emulate` mode for 32-lane GPUs. The debug layer also names the two textures that fail with `no host texture` (id 599): - `B5G5R5A1_UNORM` with `ALLOW_UNORDERED_ACCESS` - `B4G4R4A4_UNORM` with `ALLOW_RENDER_TARGET` This RTX 4080 supports neither of those combinations.
Author
Owner

@⁠tcurtsinger on GitHub · 2026-11-24 01:15 UTC · original

Independent Windows 11 result on unmodified d2a4bae1, with an RTX 4080 and NVIDIA driver 621.01. The player-selection screen ran at 30 fps. The native D3D12 run reached the first mission’s title card, where the window showed 616.8 ms/frame, 2 fps rounded, and 1,216 draws/frame.

The host had a Ryzen 9 9950X3D and 64 GiB of installed RAM, running Windows 11 Pro build 26300.9974. The mission run used the diag build with controller input enabled. Windows process and system counters were sampled roughly every six seconds.

Seconds after launch VIctory private commit VIctory working set System commit headroom
67 11.60 GiB 3.88 GiB 10.43 GiB
205 18.05 GiB 7.43 GiB 4.36 GiB
237 22.58 GiB 13.42 GiB 0.62 GiB
243 22.74 GiB 13.87 GiB 1.49 GiB

At about 246 seconds, VIctory logged a 6,928 ms host submission of 32 command lists. D3D12 reported DXGI_ERROR_DEVICE_HUNG (0x887A0006) as the removal reason. The process exited at 251 seconds with DXGI_ERROR_DEVICE_REMOVED (0x887A0005). This Windows 11 run reached the title card and ended in the GPU failure also discussed in #97. The connection between the memory pressure and the GPU hang is still open.

AI-assisted test report.

**@⁠tcurtsinger** on GitHub · 2026-11-24 01:15 UTC · [original](https://github.com/Marvisak/VIctory/issues/99#issuecomment-7118918262) Independent Windows 11 result on unmodified `d2a4bae1`, with an RTX 4080 and NVIDIA driver 621.01. The player-selection screen ran at 30 fps. The native D3D12 run reached the first mission’s title card, where the window showed **616.8 ms/frame, 2 fps rounded, and 1,216 draws/frame**. The host had a Ryzen 9 9950X3D and 64 GiB of installed RAM, running Windows 11 Pro build 26300.9974. The mission run used the `diag` build with controller input enabled. Windows process and system counters were sampled roughly every six seconds. | Seconds after launch | VIctory private commit | VIctory working set | System commit headroom | |---:|---:|---:|---:| | 67 | 11.60 GiB | 3.88 GiB | 10.43 GiB | | 205 | 18.05 GiB | 7.43 GiB | 4.36 GiB | | 237 | 22.58 GiB | 13.42 GiB | 0.62 GiB | | 243 | 22.74 GiB | 13.87 GiB | 1.49 GiB | At about 246 seconds, VIctory logged a 6,928 ms host submission of 32 command lists. D3D12 reported `DXGI_ERROR_DEVICE_HUNG` (0x887A0006) as the removal reason. The process exited at 251 seconds with `DXGI_ERROR_DEVICE_REMOVED` (0x887A0005). This Windows 11 run reached the title card and ended in the GPU failure also discussed in #97. The connection between the memory pressure and the GPU hang is still open. AI-assisted test report.
Author
Owner

@⁠Proudnoob4 on GitHub · 2026-11-24 06:26 UTC · original

Independent RTX 4080 / Windows 10 result from our machine, which agrees with most of this and can answer the debug-layer question.

Setup: RTX 4080 16 GB, driver 621.01, Windows 10 22H2 (19045), 32 GB RAM, diag, Series X and Series S, #175 Agility SDK 1.620.2. our first three runs (before the wave64 work) all ended 0x887A0005 / DEVICE_HUNG in the first-mission intro Prestream, at frames 1176–4079, in DispatchMesh runs — same as your table, no page fault.

Debug layer works on our Windows 10 build. D3D12GetDebugInterface succeeds and the device reports wave_range = 32..32. Of 76 refused compute pipelines, 75 gave debug-layer message id 622 — Shader wants wave lane count of 64 but maximum wave lane count for device is 32. We did not see your ids 527/538 dominate. So on this driver/OS the refusals are wave64, not buffer-state errors, which fits #334 not changing the outcome.

One difference worth noting: in our runs private commit reached 23.2–23.6 GiB and system commit 59–60 of ~67 GB with under 1.3 GB physical free, so memory pressure was severe. Yours stayed above 7 GiB headroom. So neither of us can claim commit exhaustion is the universal cause — it varies by build/config.

The hang is now avoidable here: with #579's VICTORY_SKIP_WAVE64=mesh,compute on top of our stack, one 900 s run had no device removal and only 2 refused pipelines (vs 117–120 before). So the wave64 class is the blocker on this card, matching #71's convergence across NVIDIA vendors.

Counts, error ids and frame numbers only; no game data. AI-assisted (Claude Code); I ran the tests on my machine.

**@⁠Proudnoob4** on GitHub · 2026-11-24 06:26 UTC · [original](https://github.com/Marvisak/VIctory/issues/99#issuecomment-7123936236) Independent RTX 4080 / Windows 10 result from our machine, which agrees with most of this and can answer the debug-layer question. **Setup:** RTX 4080 16 GB, driver 621.01, Windows 10 22H2 (19045), 32 GB RAM, diag, Series X and Series S, #175 Agility SDK 1.620.2. our first three runs (before the wave64 work) all ended `0x887A0005` / DEVICE_HUNG in the first-mission intro Prestream, at frames 1176–4079, in `DispatchMesh` runs — same as your table, no page fault. **Debug layer works on our Windows 10 build.** `D3D12GetDebugInterface` succeeds and the device reports `wave_range = 32..32`. Of 76 refused compute pipelines, 75 gave debug-layer message **id 622** — `Shader wants wave lane count of 64 but maximum wave lane count for device is 32`. We did not see your ids 527/538 dominate. So on this driver/OS the refusals are wave64, not buffer-state errors, which fits #334 not changing the outcome. **One difference worth noting:** in our runs private commit reached 23.2–23.6 GiB and system commit 59–60 of ~67 GB with under 1.3 GB physical free, so memory pressure was severe. Yours stayed above 7 GiB headroom. So neither of us can claim commit exhaustion is the universal cause — it varies by build/config. **The hang is now avoidable here:** with #579's `VICTORY_SKIP_WAVE64=mesh,compute` on top of our stack, one 900 s run had **no device removal** and only 2 refused pipelines (vs 117–120 before). So the wave64 class is the blocker on this card, matching #71's convergence across NVIDIA vendors. Counts, error ids and frame numbers only; no game data. AI-assisted (Claude Code); I ran the tests on my machine.
Author
Owner

@⁠colehammond65 on GitHub · 2026-11-24 06:25 UTC · original · edited 2026-11-24 06:27 UTC

RTX 4080 / Windows 10 A/B: the world hang remains; debug-layer state errors could not be measured

Environment

  • Windows 10 Pro, build 26300
  • AMD Ryzen 7 5800X, 32 GB RAM
  • NVIDIA GeForce RTX 4080 16 GB, driver 32.0.16.2135
  • Rust 1.98.1, diag profile with diagnostics
  • Xbox Series X mode, title 1.0.2.1
  • Baseline: main + PR #175 at 19aec59
  • Test branch: PR #334 at af2aecf + PR #175, merge 9c2d98b
  • Both used Agility SDK 1.620.2

Important limitation

This Windows build reports Feature name GraphicsTools is unknown. The app-local Agility SDK loads correctly, but D3D12GetDebugInterface still returns 0x887A002D. The PR's debug-layer child test also prints no D3D12 debug layer; skipped.

So this run cannot confirm whether error IDs 527/538 disappeared. It can confirm whether the device removal remains. DRED was enabled; GPU timing and GPU-based validation were not.

Method

Two runs per variant, each with a new empty cache, the same profile/data directory, and the same scripted Enter schedule from 8 through 47 seconds. Run order was baseline, #334, #334, baseline. Each run stopped on process exit or at an eight-minute timeout.

Results

Metric Baseline + #175 #334 + #175
Runs 2 2
Total survival 132.7–183.5 s 162.7–194.1 s
World-entry proxy 58.1–67.9 s 59.7–59.8 s
Exit code 0x887A0005 0x887A0005
Device-removed reason 0x887A0006 0x887A0006
Lists in failed submission 29–32 11–30
Stopped command EXECUTE_INDIRECT (op 5) or DISPATCH_MESH (op 42) DISPATCH_MESH (op 42) or EXECUTE_INDIRECT (op 5)
Page fault / freed allocation none / none none / none
Median world frame time 1671–2048 ms 1233–2049 ms
Peak working set 10.46–11.36 GiB 11.72–12.82 GiB
Peak private commit 20.37–22.69 GiB 21.48–22.12 GiB
Minimum system commit headroom 7.14–9.44 GiB 7.13–7.94 GiB

The survival and frame-time ranges overlap. Two runs per variant are not enough to claim a performance improvement or regression.

All four runs reached the world and then lost the device. None reported a page fault or a freed allocation. Commit headroom stayed above 7 GiB, so these particular failures were not commit exhaustion.

The largest shader-translation gaps were the same in both variants: lane masks read as data, selects on untracked masks, addresses in non-root SGPRs, and structured buffers of unknown stride.

Source-only verification

  • Baseline + #175: 266 passed, 0 failed, 4 ignored with serial test execution.
  • #334 + #175: 268 passed, 0 failed, 4 ignored with serial test execution.
  • The new buffer-state unit test passed. The debug-layer child test skipped because the layer is unavailable.
  • The parallel victory-shader suite crashes on this host; the same suite passes serially.

Conclusion

PR #334 did not prevent the RTX 4080 world-load device removal in this test. The failure still lands in indirect execution or mesh dispatch, without a page fault. The targeted D3D12 state-error removal remains unverified here because the debug layer cannot be installed on this Windows build.

A debug-layer-equipped tester is still needed to confirm the 527/538 result. No game files, paths, screenshots, shader dumps, or proprietary data are included in this report. AI-assisted testing and reporting; I ran the tests.

**@⁠colehammond65** on GitHub · 2026-11-24 06:25 UTC · [original](https://github.com/Marvisak/VIctory/issues/99#issuecomment-7123910930) · edited 2026-11-24 06:27 UTC ## RTX 4080 / Windows 10 A/B: the world hang remains; debug-layer state errors could not be measured ### Environment - Windows 10 Pro, build 26300 - AMD Ryzen 7 5800X, 32 GB RAM - NVIDIA GeForce RTX 4080 16 GB, driver 32.0.16.2135 - Rust 1.98.1, `diag` profile with `diagnostics` - Xbox Series X mode, title 1.0.2.1 - Baseline: `main` + PR #175 at `19aec59` - Test branch: PR #334 at `af2aecf` + PR #175, merge `9c2d98b` - Both used Agility SDK 1.620.2 ### Important limitation This Windows build reports `Feature name GraphicsTools is unknown`. The app-local Agility SDK loads correctly, but `D3D12GetDebugInterface` still returns `0x887A002D`. The PR's debug-layer child test also prints `no D3D12 debug layer; skipped`. So this run **cannot confirm whether error IDs 527/538 disappeared**. It can confirm whether the device removal remains. DRED was enabled; GPU timing and GPU-based validation were not. ### Method Two runs per variant, each with a new empty cache, the same profile/data directory, and the same scripted Enter schedule from 8 through 47 seconds. Run order was baseline, #334, #334, baseline. Each run stopped on process exit or at an eight-minute timeout. ### Results | Metric | Baseline + #175 | #334 + #175 | |---|---:|---:| | Runs | 2 | 2 | | Total survival | 132.7–183.5 s | 162.7–194.1 s | | World-entry proxy | 58.1–67.9 s | 59.7–59.8 s | | Exit code | `0x887A0005` | `0x887A0005` | | Device-removed reason | `0x887A0006` | `0x887A0006` | | Lists in failed submission | 29–32 | 11–30 | | Stopped command | `EXECUTE_INDIRECT` (op 5) or `DISPATCH_MESH` (op 42) | `DISPATCH_MESH` (op 42) or `EXECUTE_INDIRECT` (op 5) | | Page fault / freed allocation | none / none | none / none | | Median world frame time | 1671–2048 ms | 1233–2049 ms | | Peak working set | 10.46–11.36 GiB | 11.72–12.82 GiB | | Peak private commit | 20.37–22.69 GiB | 21.48–22.12 GiB | | Minimum system commit headroom | 7.14–9.44 GiB | 7.13–7.94 GiB | The survival and frame-time ranges overlap. Two runs per variant are not enough to claim a performance improvement or regression. All four runs reached the world and then lost the device. None reported a page fault or a freed allocation. Commit headroom stayed above 7 GiB, so these particular failures were not commit exhaustion. The largest shader-translation gaps were the same in both variants: lane masks read as data, selects on untracked masks, addresses in non-root SGPRs, and structured buffers of unknown stride. ### Source-only verification - Baseline + #175: 266 passed, 0 failed, 4 ignored with serial test execution. - #334 + #175: 268 passed, 0 failed, 4 ignored with serial test execution. - The new buffer-state unit test passed. The debug-layer child test skipped because the layer is unavailable. - The parallel `victory-shader` suite crashes on this host; the same suite passes serially. ### Conclusion PR #334 **did not prevent the RTX 4080 world-load device removal** in this test. The failure still lands in indirect execution or mesh dispatch, without a page fault. The targeted D3D12 state-error removal remains unverified here because the debug layer cannot be installed on this Windows build. A debug-layer-equipped tester is still needed to confirm the 527/538 result. No game files, paths, screenshots, shader dumps, or proprietary data are included in this report. AI-assisted testing and reporting; I ran the tests.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 01:47 UTC · original

Automated triage for the maintainers.

Thank you for the careful runs. No other open report has this access violation (writes below 4 GB at +0x4e33a92 / +0x4e336b1 while the first mission prestreams), so this issue is where it is tracked. The GPU side of the same runs (device hung in mesh dispatch, 75 compute pipelines refused with "wave lane count of 64") is the NVIDIA hang tracked in #71: on main, Lower::new in crates/victory-shader/src/emit/lower.rs declares WaveSize(64) for those programs and their dispatches are dropped on 32-lane hosts, which fits your guess that their missing output could feed bad pointers. The comments also show heavy commit pressure in some runs (see #471).

The runs used local patches on an older main (#175 is now closed unmerged; #463 is the open Agility SDK PR). If you rerun on current main, a note of whether the access violation still appears would help. One request: please don't post disassembly of the title's code or the title's own internal crash context here; crash addresses, registers and VIctory's log lines are enough.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:47 UTC · [original](https://github.com/Marvisak/VIctory/issues/99#issuecomment-7149959670) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-24T06:26:32Z at=2026-11-25T01:50:10Z --> Automated triage for the maintainers. Thank you for the careful runs. No other open report has this access violation (writes below 4 GB at `+0x4e33a92` / `+0x4e336b1` while the first mission prestreams), so this issue is where it is tracked. The GPU side of the same runs (device hung in mesh dispatch, 75 compute pipelines refused with "wave lane count of 64") is the NVIDIA hang tracked in #71: on `main`, `Lower::new` in `crates/victory-shader/src/emit/lower.rs` declares `WaveSize(64)` for those programs and their dispatches are dropped on 32-lane hosts, which fits your guess that their missing output could feed bad pointers. The comments also show heavy commit pressure in some runs (see #471). The runs used local patches on an older `main` (#175 is now closed unmerged; #463 is the open Agility SDK PR). If you rerun on current `main`, a note of whether the access violation still appears would help. One request: please don't post disassembly of the title's code or the title's own internal crash context here; crash addresses, registers and VIctory's log lines are enough. --- _Generated by [Claude Code](https://claude.ai/code)_
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/Marvisak--VIctory#99
No description provided.