Xbox2Windows: Failed #3913

Open
opened 2026-12-03 05:36:47 +00:00 by github-bot · 2 comments
Owner

@⁠Scraggle37 on GitHub · 2026-12-03 05:30 UTC · original

What happened

Launcher

  • VILauncher 2.2.0
  • CPU: Intel(R) Core(TM) i7-14700KF
  • GPU: NVIDIA GeForce RTX 4070
  • Memory: 32 GB

Project

  • Xbox2Windows (R0Y00/Xbox2Windows)
  • Last stage: Failed

Log (last 6 lines)

== Checking known problems
Verified: 0 problem(s) fixed or checked; every check passed.
== Playing
Session playtime <1s · FPS unavailable (no renderer readings)
Build telemetry (parser 1): first frame - s, shader preparation - s, pipelines made - loaded -, library rejected -, refused for memory -, memory guard -, device lost -, dips -; known problems none; fixes none; Agility -; switches 0
ERROR: "C:\\Users\\<private>\\AppData\\Local\\VILauncher\\target\\R0Y00_Xbox2Windows\\from-release\\app\\offscreen_check.exe" ended with exit code: 2
**@⁠Scraggle37** on GitHub · 2026-12-03 05:30 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3911) ## What happened <!-- What did you do, and what did you expect? --> ## Launcher - VILauncher 2.2.0 - CPU: Intel(R) Core(TM) i7-14700KF - GPU: NVIDIA GeForce RTX 4070 - Memory: 32 GB ## Project - Xbox2Windows (`R0Y00/Xbox2Windows`) - Last stage: Failed ## Log (last 6 lines) ```text == Checking known problems Verified: 0 problem(s) fixed or checked; every check passed. == Playing Session playtime <1s · FPS unavailable (no renderer readings) Build telemetry (parser 1): first frame - s, shader preparation - s, pipelines made - loaded -, library rejected -, refused for memory -, memory guard -, device lost -, dips -; known problems none; fixes none; Agility -; switches 0 ERROR: "C:\\Users\\<private>\\AppData\\Local\\VILauncher\\target\\R0Y00_Xbox2Windows\\from-release\\app\\offscreen_check.exe" ended with exit code: 2 ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 05:36:47 +00:00
Author
Owner

@⁠triggered02 on GitHub · 2026-12-03 16:42 UTC · original

The exit code in this log is diagnostic: offscreen_check returns 2 only for a command-line usage error, so the tool never reached the renderer — that is why FPS is unavailable and the stage ends in under a second. There was no device, no adapter and no shader work involved.

The problem is that the tool says nothing on that path. In tests/offscreen_check.cpp, resolve_cli returns {CliAction::usage_error} silently for every one of these:

  • fewer than three arguments (offscreen_check, or offscreen_check warp);
  • a backend word that is not warp or hardware;
  • a --operation name that is unknown, or whose operand count or validation fails (this one does print Unknown GPU operation or invalid arguments: <argv[2]>);
  • a draw invocation whose argument count is neither 3 nor 5.

Only the third prints a reason. So a launcher run that fails here leaves exactly the log in this report: exit 2, no renderer readings, no message.

I am going to fix the diagnostic side rather than guess at the launcher's command line: make every usage-error path print the reason, the argument that broke the rule and a one-line usage, and cover each path with the existing --self-test harness so this cannot regress. That does not identify which argument your launcher passes — if you can attach the launcher's command line for the offscreen_check.exe step (or run the tool by hand with the same arguments), that pins it down immediately, and the new message will name it.

Scope: tests/offscreen_check.cpp only. Environment: Linux; I can build the tool with clang-cl and run the usage paths and --self-test under Wine, and I will say plainly that the launcher end-to-end run is on Windows and not reproducible here.

AI-assisted.

**@⁠triggered02** on GitHub · 2026-12-03 16:42 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3911#issuecomment-7385309376) The exit code in this log is diagnostic: `offscreen_check` returns **2 only for a command-line usage error**, so the tool never reached the renderer — that is why FPS is unavailable and the stage ends in under a second. There was no device, no adapter and no shader work involved. The problem is that the tool says *nothing* on that path. In `tests/offscreen_check.cpp`, `resolve_cli` returns `{CliAction::usage_error}` silently for every one of these: - fewer than three arguments (`offscreen_check`, or `offscreen_check warp`); - a backend word that is not `warp` or `hardware`; - a `--operation` name that is unknown, or whose operand count or validation fails (this one does print `Unknown GPU operation or invalid arguments: <argv[2]>`); - a draw invocation whose argument count is neither 3 nor 5. Only the third prints a reason. So a launcher run that fails here leaves exactly the log in this report: exit 2, no renderer readings, no message. I am going to fix the diagnostic side rather than guess at the launcher's command line: make every usage-error path print the reason, the argument that broke the rule and a one-line usage, and cover each path with the existing `--self-test` harness so this cannot regress. That does not identify which argument your launcher passes — if you can attach the launcher's command line for the `offscreen_check.exe` step (or run the tool by hand with the same arguments), that pins it down immediately, and the new message will name it. Scope: `tests/offscreen_check.cpp` only. Environment: Linux; I can build the tool with clang-cl and run the usage paths and `--self-test` under Wine, and I will say plainly that the launcher end-to-end run is on Windows and not reproducible here. AI-assisted.
Author
Owner

@⁠triggered02 on GitHub · 2026-12-03 16:47 UTC · original

PR #3950 now makes the tool say this instead of failing silently:

offscreen_check: <the rule that was broken>
command: <the command line it was started with>
usage: offscreen_check <warp|hardware> [<expected.bin> <pixels>] | <warp|hardware> <--operation> [operands] | --self-test

All four usage-error paths are covered, the exit code stays 2, and --self-test gained a case for each path plus an assertion that the echoed command line survives; a negative control (restoring one silent return) makes the self-test fail. Verified by running each path on a Linux Wine host — the launcher's own run on Windows is not reproduced here, so the argument your launcher passes is still unknown. After this lands, the failing step in the launcher log should name it.

If you can attach the launcher's command line for the offscreen_check.exe step, that will also tell us whether the launcher is calling it correctly in the first place.

AI-assisted.

**@⁠triggered02** on GitHub · 2026-12-03 16:47 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3911#issuecomment-7385442654) PR #3950 now makes the tool say this instead of failing silently: ``` offscreen_check: <the rule that was broken> command: <the command line it was started with> usage: offscreen_check <warp|hardware> [<expected.bin> <pixels>] | <warp|hardware> <--operation> [operands] | --self-test ``` All four usage-error paths are covered, the exit code stays 2, and `--self-test` gained a case for each path plus an assertion that the echoed command line survives; a negative control (restoring one silent return) makes the self-test fail. Verified by running each path on a Linux Wine host — the launcher's own run on Windows is not reproduced here, so the argument your launcher passes is still unknown. After this lands, the failing step in the launcher log should name it. If you can attach the launcher's command line for the `offscreen_check.exe` step, that will also tell us whether the launcher is calling it correctly in the first place. AI-assisted.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#3913
No description provided.