Title memory by address: the structure builder turns off when no copy number is left (#1257) #1262
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by Humb8l on 2026-11-26T05:29:19Z.
Refs #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
Pull request closed