gpu(native): the pass trace reads no object at a placed texture's key (preview branch) #513
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!513
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-509"
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?
@Olima34 on GitHub · 2026-11-27 23:01 UTC · original
Olima34:fix/pass-trace-placed-keys→main· +19 −1 · 1 files · 1 commits · merged 2026-11-28 00:21 UTCAgainst
preview/graphics-2026-11-28, notmain:maindoesn't have this bug.What crashed. On the preview branch,
c8f5d940("trace placed mips") makes the pass trace list placed textures too, bytextures::placed_key. That key is a number with the top bit set, and it's no object's address. At the window's last present, the trace dump read every key as a resource object first. SoVICTORY_TRACE_PASSESended the game on a segmentation fault at the first placed key: 3 of 3 traced runs on an M5 Pro, after 0–3 PASSTEX lines.Fix (1 file, +19/-1,
crates/victory-gpu/src/native/glue.rs).pass_info(key, host)takes a placed key's description from the host's own record only.Test.
the_pass_trace_reads_no_object_at_a_placed_textures_key: without the fix the test binary aborts (SIGABRT); with it, it passes.In game. With the fix, the same trace wrote 514 and 524 PASSTEX lines, and the run ended on its time limit.
Checks: victory-hle, victory, victory-gpu (413) and xtask tests pass. Windows clippy on the workspace is clean with
-D warnings, andcargo xtask policypasses. There's no docs change: the trace behaves as before, it just no longer crashes.It belongs with
c8f5d940when that lands onmain.@Olima34 on GitHub · 2026-11-27 23:55 UTC · original
Retargeted from
preview/graphics-2026-11-28tomain: the preview branch is on main since86cefd22, and so is the bug (it came withc8f5d940). The branch's base,b3c1a1b0, is in main and the PR merges cleanly. The same change replayed on86cefd22(identical diff, only line offsets differ) passescargo test -p victory-hle -p victory -p victory-gpu -p xtask(victory-gpu 428 passed, 6 ignored), Windows clippy-D warningsandcargo xtask policy. Without it, anyVICTORY_TRACE_PASSESrun on main ends in a segfault at the first placed texture's key.@LakshanSivakumar on GitHub · 2026-11-28 00:21 UTC · original · approved these changes