VICTORY_BVH_BUILDER=1 crashes the title within ~7 s of the builder starting: "no number left for another copy" (COPIES=1023) #1257
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#1257
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@arch0n-8 on GitHub · 2026-11-26 03:30 UTC · original
Summary
With
VICTORY_BVH_BUILDER=1the 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
bcce702`]target\diag\victory.exe run <game exe> --executeXboxBvhBuilder.dllpresent (884224 bytes)VICTORY_BVH_BUILDER=1,VICTORY_D3D12_DRED=faults, everything elseVICTORY_*unsetSteps
VICTORY_BVH_BUILDER=1(second run: alsoVICTORY_BVH_QUARANTINE=1).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=53title 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=0x10000title 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:
0xc0000005atvictory-image-…dll+0x4e335b4(read0xffffffffffffffff), rax0x7f8000007f800000; second thread at+0x8f92a, rax0xc1cf1b00bfc9c000. Died about 2 s after the builder line.VICTORY_BVH_QUARANTINE=1:0xc0000005at+0x8f92a, read0x600000018(reserved, never committed), rax0x600000000, about 13 s after the first "title memory by address" line.Notes
memory.rssays 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 suspectMemory::name/readyname copies for constants that only look like addresses (c >= 0x0100_0000taken 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:59 UTC · original
Memory log from the two builder runs (3 s samples, private bytes of the title process):
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 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.
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
@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.dllbound: 9 hle, 48 host, 0 title, 0 missing) withVICTORY_BVH_BUILDER=0per the README's play workaround (status 2026-11-27 03:45 UTC). The title still died at t+41 s with0xc0000005write0x0atvictory-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
4eb6cfdof 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)