Xbox2Windows: Failed #3911

Open
opened 2026-12-03 05:30:47 +00:00 by Scraggle37 · 2 comments
Scraggle37 commented 2026-12-03 05:30:47 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Scraggle37 on 2026-12-03T05:30:47Z.


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
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6761566834 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3911). Originally posted by [Scraggle37](https://github.com/Scraggle37) on 2026-12-03T05:30:47Z. --- ## 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 ```
triggered02 commented 2026-12-03 16:42:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-12-03T16:42:36Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7385309376 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3911#issuecomment-7385309376). Originally posted by [triggered02](https://github.com/triggered02) on 2026-12-03T16:42:36Z. --- 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 commented 2026-12-03 16:47:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-12-03T16:47:06Z.


PR #3948 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7385442654 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3911#issuecomment-7385442654). Originally posted by [triggered02](https://github.com/triggered02) on 2026-12-03T16:47:06Z. --- PR #3948 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.
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
R0Y00/Xbox2Windows#3911
No description provided.