VICTORY_TRACE_PASSES writes no pictures when the dump folder does not exist #532
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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-28T01:02:33Z.
What happens
VICTORY_TRACE_PASSES=<dir>,<skip>,<presents>withVICTORY_TRACE_PASSES_DUMP_EACH=1writes no pictures at all if<dir>does not exist. The run looks fine and the PASS lines are in the log, but the folder is never made.Cause
glue.rs(near line 1459) writes each.ppmwithout creating the folder first and ignores the error.Fix
Create the folder before the first write, and log once if a write fails. One or two lines. Good first issue.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by marcus-4 on 2026-11-28T01:47:35Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T01:47:44Z.
Claimed by @marcus-4. Open a draft pull request with
Refs #532in its description within 24 hours, or the claim expires.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by marcus-4 on 2026-11-28T08:19:13Z.
/release
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T08:19:22Z.
Released. This issue is free to claim.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T10:28:37Z.
Fixed by #539: (crates/victory-gpu/src/native/glue.rs:481) now s the dump folder before the first write and logs the first failure once; the pass-trace writes go through it (glue.rs:1473). Covered by the test. Closing.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T10:28:49Z.
Fixed by #539:
write_dumpin crates/victory-gpu/src/native/glue.rs now runs create_dir_all on the dump folder before the first write and logs the first failure once; the pass-trace ppm writes go through it (glue.rs:1473). Covered by the a_dump_makes_its_folder_and_reports_a_write_it_cannot_make unit test. Closing as done.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T10:38:17Z.
/claim
Taking this one: create the dump folder before the first .ppm write in glue.rs and log once on write failure, with a unit test where testable without the game. Will open a draft PR from my fork's vibe/ branch shortly.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T10:38:26Z.
Claimed by @AnastasisKon. Open a draft pull request with
Refs #532in its description within 24 hours, or the claim expires.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T10:39:10Z.
/release
Already fixed on main by #539 (
ba5a77c9): one helper now makes the folder first and warns once on a failed write, covering VICTORY_TRACE_PASSES, VICTORY_DUMP_TARGETS and VICTORY_DUMP_TITLE, with a unit test. Closing the loop here.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T10:39:19Z.
Released. This issue is free to claim.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T12:36:54Z.
Fixed on main by #539 and never closed, so it has been sitting in
good first issueas free work.write_dumpincrates/victory-gpu/src/native/glue.rsnow runscreate_dir_allon the dump folder before the first write and logs the first failure once (glue.rs:481); the pass-trace.ppmwrites go through it (glue.rs:1473), anda_dump_makes_its_folder_and_reports_a_write_it_cannot_make(glue.rs:495) covers it. Verified on the tree at my fork's main (69146296) before closing. Closing it so nobody spends a claim on work that is already in.