gpu(native): the pass trace reads no object at a placed texture's key (preview branch) #509
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-27T23:01:01Z.
Against
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.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-27T23:55:32Z.
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.