Title memory by address: the structure builder turns off when no copy number is left (#1257) #1265
No reviewers
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!1265
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1265"
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?
@Humb8l on GitHub · 2026-11-26 05:29 UTC · original
Humb8l:fix/memory-copies-builder-off-1257→main· +48 −9 · 2 files · 1 commits · openRefs #1257.
What happened
With
VICTORY_BVH_BUILDER=1,memory.rsran out of its 1023 copy numbers within seconds. It loggedno number left for another copy; its pages read zerosonce and kept running the builder. The builder's stages then read zeros and dropped stores. The module itself treats that as a dropped stage ("all or none"). The title then faulted in its own image (0xc0000005).Change
memory::readyreturnsReady::whole. It isfalsewhen a page named by this dispatch found no number left.State::bind, a builder stage for whichwholeisfalseis dropped, andpipeline::builder_off(...)is called. A stage that cannot be bound already takes this path. Programs outside the builder are unchanged.views,pairs,units(constants in 256-byte units) andfaults. The reporter's hypothesis is that constants are being taken for addresses. The next run of the log will confirm it or rule it out before anyone touches the heuristic inready.This does not make the builder work: it stops it cleanly instead of letting the title crash. The root cause (why so many copies are numbered) is left for the measurement above.
Checks
cargo clippy --locked -p victory-gpu --all-targets --features diagnostics -- -D warnings: OKcargo test --locked -p victory-gpu --lib memory: 15 passedVICTORY_BVH_BUILDER=1should now showthe ray-tracing structure builder is turned off for the rest of the runright after theno number leftwarning, and no crash.🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.