VICTORY_TRACE_PASSES writes no pictures when the dump folder does not exist #536

Open
opened 2026-11-28 01:02:56 +00:00 by github-bot · 11 comments
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-28 01:02 UTC · original

What happens

VICTORY_TRACE_PASSES=<dir>,<skip>,<presents> with VICTORY_TRACE_PASSES_DUMP_EACH=1 writes 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 .ppm without 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.

**@⁠LakshanSivakumar** on GitHub · 2026-11-28 01:02 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532) ### What happens `VICTORY_TRACE_PASSES=<dir>,<skip>,<presents>` with `VICTORY_TRACE_PASSES_DUMP_EACH=1` writes 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 `.ppm` without 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 01:02:56 +00:00
Author
Owner

@⁠marcus-4 on GitHub · 2026-11-28 01:47 UTC · original

/claim

**@⁠marcus-4** on GitHub · 2026-11-28 01:47 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7231920028) /claim
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 01:47 UTC · original

Claimed by @⁠marcus-4. Open a draft pull request with Refs #532 in its description within 24 hours, or the claim expires.

**@⁠github-actions[bot]** on GitHub · 2026-11-28 01:47 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7231921701) Claimed by @⁠marcus-4. Open a draft pull request with `Refs #532` in its description within 24 hours, or the claim expires.
Author
Owner

@⁠marcus-4 on GitHub · 2026-11-28 08:19 UTC · original

/release

**@⁠marcus-4** on GitHub · 2026-11-28 08:19 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7236505947) /release
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 08:19 UTC · original

Released. This issue is free to claim.

**@⁠github-actions[bot]** on GitHub · 2026-11-28 08:19 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7236507622) Released. This issue is free to claim.
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 10:28 UTC · original

Fixed by #543: (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.

**@⁠AnastasisKon** on GitHub · 2026-11-28 10:28 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7237920842) Fixed by #543: (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.
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 10:28 UTC · original

Fixed by #543: write_dump in 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.

**@⁠AnastasisKon** on GitHub · 2026-11-28 10:28 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7237922900) Fixed by #543: `write_dump` in 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.
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 10:38 UTC · original

/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.

**@⁠AnastasisKon** on GitHub · 2026-11-28 10:38 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7238024840) /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.
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 10:38 UTC · original

Claimed by @⁠AnastasisKon. Open a draft pull request with Refs #532 in its description within 24 hours, or the claim expires.

**@⁠github-actions[bot]** on GitHub · 2026-11-28 10:38 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7238026453) Claimed by @⁠AnastasisKon. Open a draft pull request with `Refs #532` in its description within 24 hours, or the claim expires.
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 10:39 UTC · original

/release

Already fixed on main by #543 (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.

**@⁠AnastasisKon** on GitHub · 2026-11-28 10:39 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7238034183) /release Already fixed on main by #543 (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.
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 10:39 UTC · original

Released. This issue is free to claim.

**@⁠github-actions[bot]** on GitHub · 2026-11-28 10:39 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7238035570) Released. This issue is free to claim.
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 12:36 UTC · original

Fixed on main by #543 and never closed, so it has been sitting in good first issue as free work. write_dump in 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 (glue.rs:481); the pass-trace .ppm writes go through it (glue.rs:1473), and a_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.

**@⁠AnastasisKon** on GitHub · 2026-11-28 12:36 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7239348720) Fixed on main by #543 and never closed, so it has been sitting in `good first issue` as free work. `write_dump` in `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 (`glue.rs:481`); the pass-trace `.ppm` writes go through it (`glue.rs:1473`), and `a_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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.