Finish the preload display callback before the launcher exits #534
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!534
Loading…
Reference in a new issue
No description provided.
Delete branch "holoslicer/Darner:fix/wait-for-preload-window-close"
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?
Contributor role (optional)
Already requested in #529.
What it changes
After a completed preload on Windows, the PowerShell launcher showed a stuck .NET dialog with
System.Management.Automation.PipelineStoppedExceptionin a WinForms callback. The preload had returned exit code 0 and saved its pipeline library.Close-PreloadWindowpreviously set a flag and returned immediately. The 50 ms WinForms timer could still be running when PowerShell exited. The launcher now waits for the window's pipeline to finish, consumes its result and disposes the PowerShell instance and its STA runspace. A five-second bound lets the launcher continue if the UI thread is unresponsive. Repeated calls after a normal close are safe.How it was tested
0d7bf3aagainstc8258f9with Windows PowerShell 5.1 and Pester 3.4. The game stayed closed.Invoke-Pester .\scripts\tests\preload-window.Tests.ps1. To reproduce on the base, use the same test file with its originalscripts/preload-window.ps1. The test uses the real launcher functions, an STA runspace, a WinForms timer and its message loop. It opens no windows.Invoke-Pester .\scripts\tests.Checklist
main.docs/asset-policy.md.Checked for overlap
WIP: [pr-fix][startup] Finish the preload display callback before the launcher exitsto [pr-fix][startup] Finish the preload display callback before the launcher exits[pr-fix][startup] Finish the preload display callback before the launcher exitsto Finish the preload display callback before the launcher exitsTest needed — commit
0d7bf3af; what to check:After a completed preload on Windows, the PowerShell launcher showed a stuck .NET dialog with
System.Management.Automation.PipelineStoppedExceptionin a WinForms callback. The preload had returned exit code 0 and saved its pipeline library.Close-PreloadWindowpreviously set a flag and returned immediately. The 50 ms WinForms timer could still be running when PowerShell exited. The launcher now waits for the window's pipeline to finish, consumes its result and disposes the PowerShell instance and its STA runspace. A five-second bound lets the launcher continue if the UI thread is unresponsive. Repeated calls after a normal close are safe.Evidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture.
Reply
testingto take this run; it's free again after 24 h with no results.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.