run: an output Series S cannot take is refused, show a proper error for the user #373

Manually merged
github merged 1 commit from github-bot/gh-373 into gh-pr/373/base 2026-12-05 17:31:14 +00:00 AGit
Owner

@⁠delacor on GitHub · 2026-12-03 21:06 UTC · original
delacor:fix/series-s-output-refused → main · +18 −3 · 1 files · 1 commits · merged 2026-12-05 17:26 UTC

series_s_output knew that the Series S profile's title takes at most 1920x1080 -- its display buffers come from a block sized for 1080p, and at 2560x1440 the second swap chain buffer found 3.25 MiB left of its 15 and the title stopped at its own check while starting (#66) -- but the caller only printed the reason and carried on:

Err(why) => eprintln!("VIctory: {why}"),

So a run.conf that inherited VICTORY_OUTPUT=2560x1440 (the default in run.conf.default, a Series X size) with CONSOLE=series-s started anyway and died a second later: an exception in the title's own check, which reads as a crash of ours. Two of them here, at +0x28f03e8 (divide by zero) and +0x56a2afd (breakpoint), both with E_INVALIDARG in a register and neither saying what was wrong.

The refusal now ends the run before any title code, and says what to do:

Error: VICTORY_OUTPUT=2560x1440 is larger than the Series S profile takes (1920x1080).
The title's display buffers come from a block it sizes for 1080p, so at 2560x1440 it
stops at its own check while it starts (usually as an exception, or a black window).
Use VICTORY_OUTPUT=1920x1080 (or 1280x720) with the Series S profile,
or CONSOLE=series-x for 2560x1440.

A test holds the refusal to naming both ways out. 1920x1080 and 1280x720 still start, and Series X is untouched.

**@⁠delacor** on GitHub · 2026-12-03 21:06 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/373) `delacor:fix/series-s-output-refused` → `main` · +18 −3 · 1 files · 1 commits · merged 2026-12-05 17:26 UTC `series_s_output` knew that the Series S profile's title takes at most 1920x1080 -- its display buffers come from a block sized for 1080p, and at 2560x1440 the second swap chain buffer found 3.25 MiB left of its 15 and the title stopped at its own check while starting (#66) -- but the caller only printed the reason and carried on: Err(why) => eprintln!("VIctory: {why}"), So a run.conf that inherited `VICTORY_OUTPUT=2560x1440` (the default in run.conf.default, a Series X size) with `CONSOLE=series-s` started anyway and died a second later: an exception in the title's own check, which reads as a crash of ours. Two of them here, at +0x28f03e8 (divide by zero) and +0x56a2afd (breakpoint), both with E_INVALIDARG in a register and neither saying what was wrong. The refusal now ends the run before any title code, and says what to do: Error: VICTORY_OUTPUT=2560x1440 is larger than the Series S profile takes (1920x1080). The title's display buffers come from a block it sizes for 1080p, so at 2560x1440 it stops at its own check while it starts (usually as an exception, or a black window). Use VICTORY_OUTPUT=1920x1080 (or 1280x720) with the Series S profile, or CONSOLE=series-x for 2560x1440. A test holds the refusal to naming both ways out. 1920x1080 and 1280x720 still start, and Series X is untouched.
`series_s_output` knew that the Series S profile's title takes at most
1920x1080 -- its display buffers come from a block sized for 1080p, and at
2560x1440 the second swap chain buffer found 3.25 MiB left of its 15 and the
title stopped at its own check while starting (#66) -- but the caller only
printed the reason and carried on:

    Err(why) => eprintln!("VIctory: {why}"),

So a run.conf that inherited `VICTORY_OUTPUT=2560x1440` (the default in
run.conf.default, a Series X size) with `CONSOLE=series-s` started anyway and
died a second later: an exception in the title's own check, which reads as a
crash of ours. Two of them here, at +0x28f03e8 (divide by zero) and
+0x56a2afd (breakpoint), both with E_INVALIDARG in a register and neither
saying what was wrong.

The refusal now ends the run before any title code, and says what to do:

    Error: VICTORY_OUTPUT=2560x1440 is larger than the Series S profile takes (1920x1080).
    The title's display buffers come from a block it sizes for 1080p, so at 2560x1440 it
    stops at its own check while it starts (usually as an exception, or a black window).
    Use VICTORY_OUTPUT=1920x1080 (or 1280x720) with the Series S profile,
    or CONSOLE=series-x for 2560x1440.

A test holds the refusal to naming both ways out. 1920x1080 and 1280x720
still start, and Series X is untouched.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 21:10:29 +00:00
Author
Owner

@⁠Luxuride on GitHub · 2026-12-04 12:20 UTC · original

Small, correct, and it removes a real user trap. Nothing to argue about.

  • The test (a_refusal_names_the_way_out) fails before the change and passes after, so it is a genuine regression guard rather than a test written to match the code.
  • Turning the refusal into anyhow::bail! instead of eprintln! + return is the substantive half: carrying on leaves the title stopping at its own internal check, which reads to a user as a crash with no explanation. The comment saying that is worth keeping.
  • One thing to confirm in the body: the refusal is reached only for CONSOLE=series-s and leaves series-x untouched (SERIES_S_LARGEST_OUTPUT = (1920, 1080), series_s_output gated #[cfg(any(windows, test))], run() gated #[cfg(windows)]). If so, nothing else moves — and saying so saves the next reader the check.

Malformed sizes still fall through Ok(None) as before; unchanged by this PR, which is the right scope.

50 behind, no conflict. Rebase and land.

**@⁠Luxuride** on GitHub · 2026-12-04 12:20 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/373#issuecomment-7411295420) Small, correct, and it removes a real user trap. Nothing to argue about. - The test (`a_refusal_names_the_way_out`) fails before the change and passes after, so it is a genuine regression guard rather than a test written to match the code. - Turning the refusal into `anyhow::bail!` instead of `eprintln!` + return is the substantive half: carrying on leaves the title stopping at its own internal check, which reads to a user as a crash with no explanation. The comment saying that is worth keeping. - One thing to confirm in the body: the refusal is reached only for `CONSOLE=series-s` and leaves `series-x` untouched (`SERIES_S_LARGEST_OUTPUT = (1920, 1080)`, `series_s_output` gated `#[cfg(any(windows, test))]`, `run()` gated `#[cfg(windows)]`). If so, nothing else moves — and saying so saves the next reader the check. Malformed sizes still fall through `Ok(None)` as before; unchanged by this PR, which is the right scope. 50 behind, no conflict. Rebase and land.
github-bot changed target branch from main to gh-pr/373/base 2026-12-05 17:31:07 +00:00
github manually merged commit f1936d988f into gh-pr/373/base 2026-12-05 17:31:14 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.