Keep logging preload when native commands write to stderr #4853
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4853
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4852"
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?
@andrewpozdnakov7-jpg on GitHub · 2026-12-01 11:39 UTC · original
andrewpozdnakov7-jpg:codex2/fix/launcher-native-stderr→main· +11 −3 · 1 files · 1 commits · openWhat it changes
play-nvidia.ps1captures the output ofclear-shaders,warm, andpreloadin the same log. Windows PowerShell 5.1 can treat the native command's redirected stderr as a terminating error when the caller sets$ErrorActionPreference = 'Stop'. That can interrupt a successful preload and leave the game unstarted.Scope the error handling to those three native steps so the log receives their output and the launcher can use the actual process exit code. Other launcher operations still use the caller's preference.
How it was tested
$ErrorActionPreference = 'Stop'. A synthetic executable wrote to stdout and stderr. Main5fabb46eand releasev2026.11.30.03stopped withNativeCommandErroreven though it returned 0.265603477bd56bc4494b977b27ef064d9bd5aee9,-WarmUsedreturned 0 or 7 as supplied by the stub and logged both streams. The clear and preload sequence logged both streams, reached the stubbed run step, and exited 0.cargo xtask policy --stagedpassed for the launcher file. This fixture covers output and exit-code handling.Checked for overlap
ErrorActionPreferenceandNativeCommandErrorduring preload. #4813 changes which counts the preload UI shows, and #4832 changes its log filename.Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.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.