Preserve Windows D3D12 launch failure status #3210
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3210"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by ubiquitarianism on 2026-12-02T19:30:12Z.
Claimed as D3D12-SERIES-X-2160-STARTUP.
What and why
scripts/play-d3d12.ps1,play-nvidia.ps1, and the documented Series X 2160p preset, with or without-Log. A runtime spawn failure and an explicit render height above the console’s output now return nonzero status with a diagnostic.launcher_exitedwith the launcher’s exit code when the game gate misses an early exit before observing the runtime process. The gate’s verdict logic is unchanged.0through the Windows launcher on upstreammainand1with this fix in both log modes.Tested
mainatb41763227and the previous candidate. The synthetic game gate run captured exit status23in thelauncher_exitedevent.python -I scripts/check_no_game_data.py) andgit diff --checkpassed. Verification used no game files.GPUs tested were none. The tests exercised launch and reporting behavior.
AI-assisted with OpenAI Codex (GPT-6.2 Sol) for implementation and independent reviews, including the follow-up review on the published head.
Checklist
main.Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T19:45:31Z.
Independent check on
917cb9e32againstb41763227. I used PowerShell 7.7.0 on Linux, a stub for Windows build detection, and a synthetic child returning 23. The top-level wrapper returned 0 onmainand 23 with the PR, both with and without-Log. The documented 2160p preset also changed from 0 to 23. Series S with explicit-Resolution 2160changed from 0 to 1 without starting the child.One existing preflight gap remains in
d3d12/scripts/play-nvidia.ps1:161. With simulated Windows build 19045 and noD3D12Core.dll,play-d3d12.ps1gives the expected Agility SDK diagnostic and returns 0 without starting the child. The conflicting-Dlss quality -NoDlsspreflight at line 109 also returns 0. Both results were the same onmain. I consider these separate preflight follow-ups to the runtime-exit fix.AI-assisted: OpenAI Codex (GPT-6).
Imported from ubiquitarianism/leonida. Originally posted by ecox982745 on 2026-12-02T20:02:30Z.
Native Windows integration check at
917cb9e32(baseb41763227) with #3027299e84b11. I resolved the existing #3172 precompile-text conflict in a scratch tree as described in #3027. The #3210 process-exit changes stayed intact.All 16 checks passed across #3210 alone and the combined tree, in Windows PowerShell 5.1 and PowerShell 7, with or without
-Logand with default/full or used-only warm-up. The synthetic shaders command exited 37 and warm exited 42. The combined tree warned once for each phase, ran the title stub, and returned the stub's own exit 23 in all 8 combined cases. The title stub’s stderr followed the requested log mode. CPU-only, no game files. AI-assisted validation.Imported from ubiquitarianism/leonida. Originally posted by TurboTheTurtle on 2026-12-02T20:26:35Z.
tested: #3210 on RTX 5080 16 GB (Windows 11, NVIDIA 621.47), same- the four suites the description names are green on both trees, and the head adds 23 tests over main with no regressions.Counts,
python -Iper file, head917cb9e32againstmainatf37c4a87d:tests/test_win_launchers.pytests/test_game_gate.pytests/test_leonida_launcher.pytests/test_play_nvidia_menu_choice.pyThe 9, 35 and 26 match the description, and the menu suite is unchanged at 16. The two added skips in the game-gate file are the only difference in the skip count.
Start through
d3d12/scripts/play-X-2160p.ps1 -Exe <leonida.exe>, with and without-Log, on the diag build: exit status1on the head and1on main for the same fixture, which is the layer's ownthe title's own DLLs are missing: USER32.dll, winmm.dll, ...error with the package's DLLs not copied next to the build. So the propagation is the same here, and the two logs differ only by theLEONIDA_DLSS_DIRandLEONIDA_FRAME_GENentries the DLSS path adds. NoVK_ERROR_DEVICE_LOST, no unhandled exception, no device-removed data.Machines and settings: Windows 11, hardware-accelerated GPU scheduling on (
HwSchMode=2,HwScheme=2), page file 49,152 MB, the named adapterNVIDIA GeForce RTX 5080(index 1 of 2, the panel is on the iGPU). No game files attached; only counts and exit statuses.GPUs tested: NVIDIA GeForce RTX 5080, driver 621.47, Windows 11. AI-assisted: Qwen3.8-Flash-Next.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T20:40:49Z.
VERIFY-3210 — Windows nativo:
red then green, y la cadena de estado comprobada de punta a punta(this PR)b41763227= currentmainmainb41763227—merge-treeclean,git merge --no-ffcleanRan (native Windows, real PowerShell — the tests that need it are
skipUnless(POWERSHELL)and therefore skip on Linux)Negative control (the four
.ps1files reverted tomain, the PR's tests kept):The shape of the change is right:
Start-Process ... -PassThru -Waitkeeps the child's code,exit $process.ExitCodeat the end ofplay-nvidia.ps1,exit 1on a spawn failure and on the height check (both before the runtime starts), andexit $LASTEXITCODEin the Series X 2160p wrapper.The one gap left, measured
Only
play-X-2160p.ps1got theexit $LASTEXITCODEline; the other eleven wrappers (play-S-*.ps1,play-X-*.ps1) still end on the& ...play-nvidia.ps1 ...line, sopwsh -File play-S-1080p.ps1returns 0 after a preflight failure or a crashed runtime. That is the same gap I noted on #3220 — this PR closes it for one wrapper, and the fix is one line each (or a shared include).scripts/play-d3d12.ps1andscripts/game-gate.ps1are covered, which is the path the gate uses.What I could not test
leonida.exethat exits with a chosen code; no game run, no device removal.Launcher.batend to end: it starts the Python launcher.Verdict: red then green on native Windows, with the three new tests actually executed.
Written with an AI assistant.