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

Open
opened 2026-11-28 01:02:33 +00:00 by LakshanSivakumar · 11 comments
LakshanSivakumar commented 2026-11-28 01:02:33 +00:00 (Migrated from github.com)
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-28T01:02:33Z.


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.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6656991551 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-28T01:02:33Z. --- ### 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.
marcus-4 commented 2026-11-28 01:47:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by marcus-4 on 2026-11-28T01:47:35Z.


/claim

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7231920028 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7231920028). Originally posted by [marcus-4](https://github.com/marcus-4) on 2026-11-28T01:47:35Z. --- /claim
github-actions[bot] commented 2026-11-28 01:47:44 +00:00 (Migrated from github.com)
Author
Contributor

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 #532 in its description within 24 hours, or the claim expires.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7231921701 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7231921701). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T01:47:44Z. --- Claimed by @marcus-4. Open a draft pull request with `Refs #532` in its description within 24 hours, or the claim expires.
marcus-4 commented 2026-11-28 08:19:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by marcus-4 on 2026-11-28T08:19:13Z.


/release

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7236505947 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7236505947). Originally posted by [marcus-4](https://github.com/marcus-4) on 2026-11-28T08:19:13Z. --- /release
github-actions[bot] commented 2026-11-28 08:19:22 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7236507622 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7236507622). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T08:19:22Z. --- Released. This issue is free to claim.
AnastasisKon commented 2026-11-28 10:28:37 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7237920842 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7237920842). Originally posted by [AnastasisKon](https://github.com/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.
AnastasisKon commented 2026-11-28 10:28:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T10:28:49Z.


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

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7237922900 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7237922900). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-28T10:28:49Z. --- Fixed by #539: `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 commented 2026-11-28 10:38:17 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7238024840 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7238024840). Originally posted by [AnastasisKon](https://github.com/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.
github-actions[bot] commented 2026-11-28 10:38:26 +00:00 (Migrated from github.com)
Author
Contributor

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 #532 in its description within 24 hours, or the claim expires.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7238026453 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7238026453). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T10:38:26Z. --- Claimed by @AnastasisKon. Open a draft pull request with `Refs #532` in its description within 24 hours, or the claim expires.
AnastasisKon commented 2026-11-28 10:39:10 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7238034183 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7238034183). Originally posted by [AnastasisKon](https://github.com/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.
github-actions[bot] commented 2026-11-28 10:39:19 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7238035570 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7238035570). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T10:39:19Z. --- Released. This issue is free to claim.
AnastasisKon commented 2026-11-28 12:36:54 +00:00 (Migrated from github.com)
Author
Contributor

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

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7239348720 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/532#issuecomment-7239348720). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-28T12:36:54Z. --- Fixed on main by #539 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.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LakshanSivakumar/Native-Victory-macOS#532
No description provided.