[pr-fix] Flush the log before the title's own exit ends the process #28

Manually merged
TrustNo1 merged 0 commits from kisekinopureya/Darner:kisekinopureya/pr/log-flush into main 2026-12-03 18:36:42 +00:00
Contributor

Contributor role (optional)

  • Fluxer ID: 1576376229534109696

What it changes

lifecycle::end (the title ending itself) called TerminateProcess with lines still queued for the
log's writing thread, so a run's last lines could be missing from its log. It now waits for them, at
most 2 s, as the crash reporter and host_gpu_failed already do. One file,
crates/darner-hle/src/modules/lifecycle.rs.

How it was tested

  • Tested revision: 8264118025
  • Commands and results: both clippy gates clean; cargo test -p darner-gpu --lib on the shader cache,
    menu and panel tests: pass.
  • Gameplay: in the base-branch runs (see the shared record); not checked on its own, since every run
    was stopped from outside rather than by the title.
  • Coverage gaps: nothing that checks the queue is empty at exit.

Checklist

  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: none found

🤖 Generated with Claude Code

## Contributor role (optional) - Fluxer ID: 1576376229534109696 ## What it changes `lifecycle::end` (the title ending itself) called TerminateProcess with lines still queued for the log's writing thread, so a run's last lines could be missing from its log. It now waits for them, at most 2 s, as the crash reporter and `host_gpu_failed` already do. One file, `crates/darner-hle/src/modules/lifecycle.rs`. ## How it was tested - Tested revision: 8264118025 - Commands and results: both clippy gates clean; `cargo test -p darner-gpu --lib` on the shader cache, menu and panel tests: pass. - Gameplay: in the base-branch runs (see the shared record); not checked on its own, since every run was stopped from outside rather than by the title. - Coverage gaps: nothing that checks the queue is empty at exit. ## Checklist - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: none found 🤖 Generated with [Claude Code](https://claude.com/claude-code)
lifecycle::end (the title ending itself) called TerminateProcess with
lines still queued for the log's writing thread, so a run's last lines
could be missing from its log. It now waits for them (2 s at most), as
the crash reporter and host_gpu_failed already do.

The rest of the original commit (logging::flush itself and the crash
reporter's calls) Darner already has; its depth-state change was
reverted on the source branch, and its launcher changes are in the
Intel launcher commits.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit f73ed4e8641a09c80779ad65a7f875f8c4208689)
TrustNo1 manually merged commit 0e2a0ddb8c into main 2026-12-03 18:36:42 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
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
TrustNo1/Darner!28
No description provided.