VICTORY_BVH_BUILDER=1 crashes the title within ~7 s of the builder starting: "no number left for another copy" (COPIES=1023) #1257

Open
opened 2026-11-26 04:00:31 +00:00 by github-bot · 3 comments
Owner

@⁠arch0n-8 on GitHub · 2026-11-26 03:30 UTC · original

Summary

With VICTORY_BVH_BUILDER=1 the structure builder starts ("runs: all of its programs have host pipelines"), then title memory by address runs out of copy numbers within seconds and the title dies with an access violation. Without the builder variable the same build does not crash.

Environment

  • Commit: [bcce702`]
  • GPU / driver: [ Name AMD Radeon RX 6700 XT Driver Version 32.0.21045.29003]
  • Host wave lanes (from log): 32-64
  • Build: target\diag\victory.exe run <game exe> --execute
  • Game files: XboxBvhBuilder.dll present (884224 bytes)
  • Environment: VICTORY_BVH_BUILDER=1, VICTORY_D3D12_DRED=faults, everything else VICTORY_* unset

Steps

  1. Start the title with VICTORY_BVH_BUILDER=1 (second run: also VICTORY_BVH_QUARANTINE=1).
  2. Let the opening video start (two voice lines are audible).
  3. The process crashes.

Expected

The builder runs whole and the title keeps running (or the builder turns itself off, as the log says it does when a program is missing).

Actual

Log (frame 1368/1369):

  • the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53
  • title memory by address: shaders touched pages that had no copy (those accesses read 0 or were dropped); the copies are made now pages=1203 first=0x10000
  • title memory by address: no number left for another copy; its pages read zeros COPIES=1023 (about 7 s after the first line)

Crashes (crashes.log), same image offset in both runs:

  • Without quarantine: 0xc0000005 at victory-image-…dll+0x4e335b4 (read 0xffffffffffffffff), rax 0x7f8000007f800000; second thread at +0x8f92a, rax 0xc1cf1b00bfc9c000. Died about 2 s after the builder line.
  • With VICTORY_BVH_QUARANTINE=1: 0xc0000005 at +0x8f92a, read 0x600000018 (reserved, never committed), rax 0x600000000, about 13 s after the first "title memory by address" line.

Notes

memory.rs says a frame of the opening cutscene names about 50 windows; here 1023 numbers are used within seconds, and the module doc says a page without a copy is a lost access, which for the builder equals a dropped stage ("all or none"). I suspect Memory::name / ready name copies for constants that only look like addresses (c >= 0x0100_0000 taken as a 256-byte-unit address), but I have not verified this.

Not a GPU reset: no TDR/DEVICE_REMOVED in this run, the title faults in its own image. Full log and crashes.log excerpts available on request.

**@⁠arch0n-8** on GitHub · 2026-11-26 03:30 UTC · [original](https://github.com/fxceless/victory-fork/issues/1257) ## Summary With `VICTORY_BVH_BUILDER=1` the structure builder starts ("runs: all of its programs have host pipelines"), then title memory by address runs out of copy numbers within seconds and the title dies with an access violation. Without the builder variable the same build does not crash. ## Environment - Commit: [bcce702`] - GPU / driver: [ Name AMD Radeon RX 6700 XT Driver Version 32.0.21045.29003] - Host wave lanes (from log): 32-64 - Build: `target\diag\victory.exe run <game exe> --execute` - Game files: `XboxBvhBuilder.dll` present (884224 bytes) - Environment: `VICTORY_BVH_BUILDER=1`, `VICTORY_D3D12_DRED=faults`, everything else `VICTORY_*` unset ## Steps 1. Start the title with `VICTORY_BVH_BUILDER=1` (second run: also `VICTORY_BVH_QUARANTINE=1`). 2. Let the opening video start (two voice lines are audible). 3. The process crashes. ## Expected The builder runs whole and the title keeps running (or the builder turns itself off, as the log says it does when a program is missing). ## Actual Log (frame 1368/1369): - `the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53` - `title memory by address: shaders touched pages that had no copy (those accesses read 0 or were dropped); the copies are made now pages=1203 first=0x10000` - `title memory by address: no number left for another copy; its pages read zeros COPIES=1023` (about 7 s after the first line) Crashes (crashes.log), same image offset in both runs: - Without quarantine: `0xc0000005` at `victory-image-…dll+0x4e335b4` (read `0xffffffffffffffff`), rax `0x7f8000007f800000`; second thread at `+0x8f92a`, rax `0xc1cf1b00bfc9c000`. Died about 2 s after the builder line. - With `VICTORY_BVH_QUARANTINE=1`: `0xc0000005` at `+0x8f92a`, read `0x600000018` (reserved, never committed), rax `0x600000000`, about 13 s after the first "title memory by address" line. ## Notes `memory.rs` says a frame of the opening cutscene names about 50 windows; here 1023 numbers are used within seconds, and the module doc says a page without a copy is a lost access, which for the builder equals a dropped stage ("all or none"). I suspect `Memory::name` / `ready` name copies for constants that only look like addresses (`c >= 0x0100_0000` taken as a 256-byte-unit address), but I have not verified this. Not a GPU reset: no TDR/DEVICE_REMOVED in this run, the title faults in its own image. Full log and crashes.log excerpts available on request.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:00:31 +00:00
Author
Owner

@⁠arch0n-8 on GitHub · 2026-11-26 03:59 UTC · original

Memory log from the two builder runs (3 s samples, private bytes of the title process):

  • Run without QUARANTINE: private 22.0 GB -> 25.1 GB, free RAM 6.2 GB at the lowest, crash 2 s after "structure builder runs".
  • Run with QUARANTINE=1: private 17.3 GB at the builder line -> 30.0 GB 13 s later, shared GPU usage 1.6 -> 9.1 GB, free RAM down to 2.36 GB, crash at +14 s.
    Dedicated GPU usage was already 10.5-11.0 GB before the builder started.
    This fits the "no number left for another copy" (COPIES=1023) line: the number of 4 MiB copies keeps growing instead of settling at ~50 windows.
**@⁠arch0n-8** on GitHub · 2026-11-26 03:59 UTC · [original](https://github.com/fxceless/victory-fork/issues/1257#issuecomment-7182191233) Memory log from the two builder runs (3 s samples, private bytes of the title process): - Run without QUARANTINE: private 22.0 GB -> 25.1 GB, free RAM 6.2 GB at the lowest, crash 2 s after "structure builder runs". - Run with QUARANTINE=1: private 17.3 GB at the builder line -> 30.0 GB 13 s later, shared GPU usage 1.6 -> 9.1 GB, free RAM down to 2.36 GB, crash at +14 s. Dedicated GPU usage was already 10.5-11.0 GB before the builder started. This fits the "no number left for another copy" (COPIES=1023) line: the number of 4 MiB copies keeps growing instead of settling at ~50 windows.
Author
Owner

@⁠arch0n-8 on GitHub · 2026-11-26 17:05 UTC · original

Tested PR #1265 (merged locally onto main 93db653, local merge 2b1d455), RX 6700 XT, VICTORY_BVH_BUILDER=1, no quarantine, VICTORY_TEXTURE_ROOM_PERCENT=94, title resolutionFullscreen set to 1920x1080.

Result: the title still crashes, before the limit is reached.

  • 17:47:15 "the ray-tracing structure builder runs ... pipelines=53", then "title memory by address: a shader reads or writes through raw addresses".
  • No "no number left for another copy" line, and no "builder is turned off" line: the process died first, 5 s after the builder started (17:47:20).
  • Memory over those 5 s: private bytes 16.0 -> 20.7 -> 25.5 GB, free RAM down to 2.4 GB.
  • crashes.log: access violation in the title image, first frame +0x40206; registers contain f32/f16 -inf patterns (rax 0xfffeffff, r12 0xff80000001810180), as in earlier runs and issue #16.

So the PR's clean shutdown only helps when the copies run out first; here the title faults before that. Earlier runs on the same card (bcce702, with and without VICTORY_BVH_QUARANTINE=1) crashed at +0x4e335b4 / +0x8f92a / read 0x600000018.

generated with perplexity

**@⁠arch0n-8** on GitHub · 2026-11-26 17:05 UTC · [original](https://github.com/fxceless/victory-fork/issues/1257#issuecomment-7198485067) Tested PR #1265 (merged locally onto main 93db653, local merge 2b1d455), RX 6700 XT, VICTORY_BVH_BUILDER=1, no quarantine, VICTORY_TEXTURE_ROOM_PERCENT=94, title resolutionFullscreen set to 1920x1080. Result: the title still crashes, before the limit is reached. - 17:47:15 "the ray-tracing structure builder runs ... pipelines=53", then "title memory by address: a shader reads or writes through raw addresses". - No "no number left for another copy" line, and no "builder is turned off" line: the process died first, 5 s after the builder started (17:47:20). - Memory over those 5 s: private bytes 16.0 -> 20.7 -> 25.5 GB, free RAM down to 2.4 GB. - crashes.log: access violation in the title image, first frame +0x40206; registers contain f32/f16 -inf patterns (rax 0xfffeffff, r12 0xff80000001810180), as in earlier runs and issue #16. So the PR's clean shutdown only helps when the copies run out first; here the title faults before that. Earlier runs on the same card (bcce702, with and without VICTORY_BVH_QUARANTINE=1) crashed at +0x4e335b4 / +0x8f92a / read 0x600000018. generated with perplexity
Author
Owner

@⁠KingKaom on GitHub · 2026-11-27 04:00 UTC · original

RDNA4 data point: with the builder off the same fault persists (RX 9070 XT, RDNA4, release, measured)

Ran current master 6742906 (plus PR #1213 merged locally, so the compiler wave passes clean; xboxbvhbuilder.dll bound: 9 hle, 48 host, 0 title, 0 missing) with VICTORY_BVH_BUILDER=0 per the README's play workaround (status 2026-11-27 03:45 UTC). The title still died at t+41 s with 0xc0000005 write 0x0 at victory-image-b99f876b74d4a77f.dll+0x2215c35 — exactly the fault and offset the README describes as "about 30-40 s after the builder starts, the title crashes on a write to address 0", and identical to our two runs one head back (81d54b0 + the same #1213 merge, no knob: crashes at t+37 s and t+40 s). So on this card the knob did not avert the boot fault (1 run). Caveat: no log line confirms the knob took effect; if there is a line to look for with =0, we can re-run and check it.

For scale, the same title fault (same image, same offset) also kills 4eb6cfd of the Belobug-AMD line on this box at t+94/100 s (2/2), so three forks, one fault address.

— tested on RX 9070 XT (RDNA4), measured · AI-assisted (Hermes Agent)

**@⁠KingKaom** on GitHub · 2026-11-27 04:00 UTC · [original](https://github.com/fxceless/victory-fork/issues/1257#issuecomment-7209442236) **RDNA4 data point: with the builder off the same fault persists (RX 9070 XT, RDNA4, release, measured)** Ran current master `6742906` (plus PR #1213 merged locally, so the compiler wave passes clean; `xboxbvhbuilder.dll` bound: 9 hle, 48 host, 0 title, 0 missing) with `VICTORY_BVH_BUILDER=0` per the README's play workaround (status 2026-11-27 03:45 UTC). The title still died at **t+41 s** with `0xc0000005` write `0x0` at `victory-image-b99f876b74d4a77f.dll+0x2215c35` — exactly the fault and offset the README describes as "about 30-40 s after the builder starts, the title crashes on a write to address 0", and identical to our two runs one head back (`81d54b0` + the same #1213 merge, no knob: crashes at t+37 s and t+40 s). So on this card the knob did not avert the boot fault (1 run). Caveat: no log line confirms the knob took effect; if there is a line to look for with `=0`, we can re-run and check it. For scale, the same title fault (same image, same offset) also kills `4eb6cfd` of the Belobug-AMD line on this box at t+94/100 s (2/2), so three forks, one fault address. — tested on RX 9070 XT (RDNA4), measured · AI-assisted (Hermes Agent)
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/fxceless--victory-fork#1257
No description provided.