Report Windows shader precompile failures #3027
Open
github-bot
wants to merge 1 commit from
github-bot/gh-3027 into main
AGit
pull from: github-bot/gh-3027
merge into: github:main
github:main
github:perf/darner-title-priority-ceiling
github:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
github:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
github:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
github:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
github:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
github:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github:fix/runtime-test-conservative-fixtures
github:ci/shard-semantic-linux
github:docs/fg-limit-fps-switch
github:fix/runtime-test-fixture-paths
github:fix/runtime-test-fixture-readers
github:fix/read-file-hard-link
github:fix/book-slot-heap-never-read
github:fix/depth-resolve-spv-path
github:fix/indirect-unused-batched
github:gh-pr/3358/base
github:fix/xmem-refusal-diagnostics
github:gh-pr/3357/base
github:ci/shorten-ci-time
github:fix/alias-later-queued-submissions
github:claude/gallant-sagan-aamatr
github:gh-pr/3342/base
github:gh-pr/3341/base
github:d3d12/agility-sdk-621
github:gh-pr/3293/base
github:gh-pr/3319/base
github:gh-pr/3318/base
github:gh-pr/3315/base
github:gh-pr/3313/base
github:gh-pr/3314/base
github:claude/fervent-curie-m19lnr
github:gh-pr/3216/base
github:gh-pr/3272/base
github:gh-pr/3276/base
github:gh-pr/3279/base
github:gh-pr/3257/base
github:gh-pr/3258/base
github:gh-pr/3271/base
github:codex/skip-no-hit-ray-passes
github:gh-pr/3230/base
github:gh-pr/3266/base
github:gh-pr/3247/base
github:gh-pr/3246/base
github:gh-pr/3244/base
github:claude/sharp-sagan-1jqnp3
github:t3/preserve-fsr-sdk-restart-path
github:t3/propagate-host-failure-hresult
github:t3/launcher-custom-parameters
github:t3/series-x-2160-startup
github:codex/d3d12-uncapped-simulation
github:ci/less-to-run
github:perf/native-compute-shader-forms
github:claude/blissful-franklin-ukp7ag
github:codex/full-precompile-default
github:gh-pr/3166/base
github:gh-pr/3148/base
github:gh-pr/3138/base
github:gh-pr/3106/base
github:gh-pr/3057/base
github:gh-pr/2756/base
github:gh-pr/2812/base
github:gh-pr/3032/base
github:gh-pr/2992/base
github:notes/card-time-and-plant-flicker
github:gh-pr/2986/base
github:gh-pr/3000/base
github:gh-pr/2966/base
github:gh-pr/2924/base
github:gh-pr/726/base
github:gh-pr/2761/base
github:gh-pr/2663/base
github:gh-pr/2861/base
github:gh-pr/2862/base
github:gh-pr/2820/base
github:gh-pr/2811/base
github:gh-pr/2803/base
github:rt-call-trace
github:gh-pr/2802/base
github:gh-pr/2766/base
github:perf/ahead-split
github:gh-pr/2589/base
github:gh-pr/2699/base
github:gh-pr/2696/base
github:docs/readme-runtime-proposal
github:gh-pr/1346/base
github:codex/coord-claim-check-20261124-7e48
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
area: ci
.github/ workflows and settings
area: d3d12
The D3D12 runtime in d3d12/ (Rust: leonida.exe and its crates)
area: docs
Documentation
area: launcher
The launcher (launcher/)
area: runtime (legacy)
The earlier Vulkan runtime in runtime/
area: shader translator
The shader translator (leonida-shader, tools/rdna2spirv) and its tests
area: tools
tools/ and scripts/
area: viewer
The map viewer (viewer/)
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs in-game run
Changes the code a frame runs through: needs the 300 s in-game gate (docs/game_gate.md)
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
wontfix
This will not be worked on
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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/ubiquitarianism--leonida!3027
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3027"
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?
@Kitrae on GitHub · 2026-12-02 01:12 UTC · original
Kitrae:fix/windows-precompile-warnings→main· +96 −0 · 2 files · 1 commits · openClaimed in the coordination issue as: Report shader precompile failures in the normal Windows launcher
What and why
The Windows launcher now warns when shader translation or pipeline warm-up exits with an error. Each warning names the phase, includes its exit code, and tells the player to expect more compilation during play. The normal Play path still starts the game after either failure. Pipeline warm-up keeps main’s full default and its
-PrecompileUsedoption.Tested
scripts/play-d3d12.ps1entry point ran both precompile phases and launched a synthetic runtime. Exit 37 from shader translation and exit 42 from pipeline warm-up each produced the expected warning. A successful precompile produced neither warning.516c9eaaband headf13910c3a. The two missing-warning assertions failed on the base and passed with the change. The reviewer also verified the warm-up arguments in default and-PrecompileUsedmodes.GPUs tested: n/a for the synthetic launcher tests on Windows 11.
AI-assisted: yes (Codex GPT-6 with a separate GPT-6.2 Sol reviewer)
Checklist
516c9eaaband merges cleanly.@ecox982745 on GitHub · 2026-12-02 01:22 UTC · original
Independent Windows check of
299e84b11merged with main5922f9fc5(tree24599f0f6). I invoked the unmodified publicscripts/play-d3d12.ps1with an isolated synthetic runtime under Windows PowerShell 5.1 and PowerShell 7.6.9. Each shell ran these four cases on both trees.runrunrunrun-NoPrecompilewith both failures configuredrunrunrun. The outer PowerShell process returned 0runafter both warnings. The outer PowerShell process returned 0The successful and bypass cases had no precompile warnings. The runtime was a console stub and the title path was an empty stand-in. No game or GPU work ran.
AI-assisted with OpenAI Codex (GPT-6.2 Sol).
@andrew-ai on GitHub · 2026-12-02 01:26 UTC · original
Checked benchmark-log compatibility on Windows at
299e84b11. I ran the public launcher in PowerShell 7 with a synthetic runtime, sending stdout to launcher.txt and stderr to leonida.log as the game gate does. Across shader failure (37), pipeline failure (42), and success, the gate parser recovered the expected shader counts, time and pipeline counts. Each failure warning appeared in launcher.txt, the success case had neither warning, and the synthetic runtime stderr marker arrived in leonida.log. All three cases reached run. This checked launcher output and the existing read_precompile parser without starting a game. Codex-assisted.@MoonEyes on GitHub · 2026-12-02 12:38 UTC · original
This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists).
Could you, or anyone with a working setup, post a run report on the current head merged onto current
main:mainSHA it was merged onto;mainalone for comparison, if you can.Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough.
AI-assisted (Claude Code).
@MoonEyes on GitHub · 2026-12-02 18:00 UTC · original
Checked on Linux: head
299e84b11no longer merges into currentmain45dc41f95. Not run (the new test is Windows PowerShell only).The conflict is with #3172 (
e71aa0ef, "Default to full D3D12 shader and pipeline precompilation", merged today).mainmoved theWrite-Host 'Precompiling the pipelines earlier runs drew with ...'line into a newif ($precompileUsedOnly) { ... } else { ... }block further down, so the PR's hunk after theleonida shaderspipeline collides with that move. The resolution is small: keepmain's text, put only the shaderif ($LASTEXITCODE -ne 0) { Write-Warning ... }block afterForEach-Object { Write-Host " $_" }(aroundplay-nvidia.ps1:894onmain), and drop the PR's copy of theWrite-Hostline. The warm-up hunk still applies after& $leonida @warmArgs.Review of the change itself (code read only):
$LASTEXITCODEafter& $leonida ... | Where-Object | ForEach-Objectis the native exit code ofleonida.exe, and$ErrorActionPreferenceis'Continue'in that block, soWrite-Warningdoes not stop Play. That matches the stated intent.leonida warm --used; since #3172 the default is a fullwarm(--usedonly with-PrecompileUsed). The warning text is phase-generic so the code is fine; the description should say "pipeline warm-up" without--used.tests/test_play_d3d12_precompile.pyisskipUnless(os.name == "nt" and powershell.exe), so it is skipped on Linux CI and here. Its expected call list["shaders", "warm", "run"]should still hold with the full-warm default, since the stub only logsargs[0]; that needs confirming on Windows after the merge.No red/green possible here (Windows only). The two Windows comments in this thread ran
299e84b11on5922f9fc5, before #3172.Verdict: conflict (needs a merge of
main, then a fresh Windows run of the test on the merged head).AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
@ecox982745 on GitHub · 2026-12-02 18:05 UTC · original
Windows follow-up to the conflict report on
299e84b11+45dc41f95. I resolved the single hunk in a scratch tree by keeping main’s precompile mode messages and adding the shader warning just after the shader subprocess. The warm-up warning merged as written. The PR's two Python tests passed with Windows PowerShell 5.1 and CPython 3.12.10.I also ran a 16-case synthetic Windows matrix comparing main with the resolved tree in PowerShell 5.1 and 7. With both precompile stages returning 37 and 42, the resolved launcher printed both warnings once and still reached the runtime stub. Default full mode passed
warmand-PrecompileUsedpassedwarm --used. Success and-NoPrecompileemitted no failure warnings. Neither branch was modified. No game files or GPU work were used, so the requested in-game gate is still pending. AI-assisted.@fiestorra on GitHub · 2026-12-02 22:19 UTC · original
VERIFY-3027 — Windows nativo: los dos tests pasan y el control muerde; la rama no fusiona
(this PR)mainb41763227git merge --no-ffontomaind3d12/scripts/play-nvidia.ps1It needs a rebase. For the runs below I resolved that file to the pull request's version and kept the rest of
main, which is the state it will be in after a rebase.Ran
Negative control: I removed the two added warnings (the PR's own six lines) and rebuilt nothing — the test reads the script:
A note on how I got there: my first attempt replaced the blocks with
String.Replaceand the same two warnings were still in the file (CRLF/indent mismatch), so the control "passed" without biting — a control that does not change the file proves nothing. The second attempt removed them by regex,antes=2 despues=0, and the test failed as it should.What the change is: after shader translation and after the pipeline warm-up,
if ($LASTEXITCODE -ne 0)now warns ("Shader translation failed (exit code …). More shaders may compile during play.", and the same for the warm-up) instead of letting the run go on silently. The game still starts — a warning, not a refusal — which is the right call for a precompile stage whose failure is recoverable by compiling during play.What I could not test
Written with an AI assistant.
299e84b112tof13910c3ae@merzleckeier on GitHub · 2026-12-03 03:26 UTC · original · reviewed
Verified
f13910c3on516c9eaaand combined with #3272 at4b64ba9e. The pair merges cleanly. I ran the publicplay-d3d12.ps1entry point in Linux PowerShell 7.7.0 with a synthetic executable returning 37 forshaders, 42 forwarm, and 0 forrun. On both patched trees, default and-PrecompileUsedlaunches printed both warnings once, calledwarmandwarm --usedrespectively, and reachedrunwith status 0. Successful precompile and-NoPrecompilehad no warnings. The same failure cases onmainreachedrunwithout the two warnings. This covers the rebased launcher and the current #3272 combination with a synthetic runtime. The requested in-game run remains open. AI-assisted with OpenAI Codex.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.