DARNER_EXIT_AFTER_WORLD_S ends at once with frame generation on, as the menu quit does #491
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!491
Loading…
Reference in a new issue
No description provided.
Delete branch "m3m3dub5/fix-exit-after-world-terminate"
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?
What it changes
DARNER_EXIT_AFTER_WORLD_Saborts while exiting.std::process::exitruns the DLLs' unloading while Streamline's frame-generation threads are still working,nvngx_dlssg.dlltakes an access violation (read atnvngx_dlssg.dll+0x16c40), and the crash reporter's panic hook then callsstd::thread::current()on a thread whose local data is already destroyed, which aborts ("use of std:🧵:current() is not possible after the thread's local data has been destroyed"). Seen in all four frame-generation benchmark runs on 2026-12-05 (RTX 5080, driver 32.0.16.2140); the frame-generation-off runs exited cleanly. The F1 menu's quit already avoids exactly this:host/menu.rsends withTerminateProcessand says "std::process::exit runs the DLLs' unloading, which with Streamline loaded did not come back".TerminateProcess(GetCurrentProcess(), 0)on Windows.How it was tested
71755aa(ond91d8e4)cargo xtask policy: 564 files ok.cargo build --release --locked -p darner: compiles.DARNER_EXIT_AFTER_WORLD_S=30: before, 4 of 4 runs aborted as above; after, 1 run ended with no fault and no panic, the log ending at "ending the process 30 s after the world was first drawn".cargo xtask policyonly.Checklist
main.docs/asset-policy.md.Checked for overlap
DARNER_EXIT_AFTER_WORLD_S ended the process with std::process::exit, which runs the DLLs' unloading while Streamline's frame-generation threads are still working: nvngx_dlssg.dll takes an access violation, and the crash reporter's panic hook calls std:🧵:current() on a thread whose local data is destroyed, which aborts. The F1 menu's quit already ends with TerminateProcess for this reason (host/menu.rs's restart_as says so). Flush the log, then do the same.host: end the bench exit at once, as the menu quit doesto pr-fix][frame-generation][NVIDIA] DARNER_EXIT_AFTER_WORLD_S ends at once with frame generation on, as the menu quit doespr-fix][frame-generation][NVIDIA] DARNER_EXIT_AFTER_WORLD_S ends at once with frame generation on, as the menu quit doesto [pr-fix][frame-generation][NVIDIA] DARNER_EXIT_AFTER_WORLD_S ends at once with frame generation on, as the menu quit doesI checked benchmark output at timed exit on Windows at
71755aab. A single-producer fixture drove the productionMeter::framethrough four synthetic frames. All five due-timer children exited with code 0. After each exit I could read all four rows from the benchmark CSV, including the frame that triggered exit, and the final marker from Darner’s asynchronous log.Two of the five runs used native Rust PGO instrumentation. In both, the explicit LLVM profile writer returned 0 and
llvm-profdata showread nonzero execution counts forexit_after_world. With the timer unset, the world threshold unreached, or the timer still pending, the call returned to the fixture in both builds. This checks output preservation on the timed path. The fixture ran without a game or a frame-generation backend.Tested merged onto
c8258f95(release), head71755aab. RTX 3090 24 GB, driver 621.24, i5-10600K, 32 GB, Windows 11.In addition to the fixture test above, a real run with frame generation on (
DARNER_FRAMEGEN=1) andDARNER_EXIT_AFTER_WORLD_S=60, one run per build:main: exit code 0, log ends withending the process 60 s after the world was first drawn.panic,access violationorabortin the log.Only one run each, so a rare crash on exit would not show here.
AI-assisted testing (Claude Code, Claude Opus 5.5); results and text reviewed by me.
[pr-fix][frame-generation][NVIDIA] DARNER_EXIT_AFTER_WORLD_S ends at once with frame generation on, as the menu quit doesto DARNER_EXIT_AFTER_WORLD_S ends at once with frame generation on, as the menu quit doesView 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.