The device-removed report reaches the log when two threads find the device gone #2
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!2
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2"
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?
@tbarnavon on GitHub · 2026-11-28 17:52 UTC · original
tbarnavon:windows/removal-report-race→main· +13 −8 · 1 files · 1 commits · closed without mergingWhat
log_removal_contextused anAtomicBoolswap to say the report once. The first thread to find the host device removed swapped it and began gathering the report (removal_context,removal_data); a second thread that found the device removed meanwhile saw the flag set, returned at once, and went on infailto end the process. The report was then never written.A
std::sync::Onceinstead: the second thread waits until the first has said it, then ends the process as before. Nothing else changes.Why
On Windows (RX 6900 XT) runs that lost the device ended with only
no host list for a state prelude; device removed …, with nothing about the removal althoughVICTORY_D3D12_DRED=lightwas on, because the submitting thread and another one found the loss within the same millisecond. With the change the trail, the breadcrumbs and the DRED data are in every such log.Tested
cargo check -p victory-gpuandcargo check -p victory --features diagnostics🤖 Generated with Claude Code
@goldfishdev on GitHub · 2026-12-03 02:13 UTC · original
The
Oncefix is already in main fromfe13f18. The only remaining diff is the oldif !(trail_on() || dred_any()) return;guard; main now logs the removal context unconditionally, so rebasing this would re-suppress that line. Closing as applied — thanks.github-bot referenced this pull request2026-12-04 01:43:56 +00:00
Pull request closed