Present: the two-plane fallbacks release the presenter mutex first #1645
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!1645
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1645"
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?
@unueberlegt on GitHub · 2026-11-28 22:57 UTC · original
unueberlegt:fix/present-planes-deadlock→main· +18 −3 · 2 files · 1 commits · merged 2026-11-29 08:16 UTCWhat it changes
The three error paths of
present_planes(Series S two-plane presentation) — the composer not made before a resize, the composer not made after one, and a composite recording that failed — tried to release the presenter mutex by dropping the&mut Option<Presenter>they hold of it, which does nothing (std::mem::dropwith a reference; three of Clippy's warnings), and then recursed intopresent_planesto present the base plane. That call locks the presenter mutex again, so the thread hung instead of showing the base plane: a resize followed by a composer failure, or a failing composite record, turned a recoverable warning into a stopped present.The mutex guard goes back before the fallback now, at all three paths (
drop(presentation)); the three warnings are gone, and the borrow checker confirms no borrow outlives the drop (each path returns straight after).How it was tested
victory-gpulib suite: 550 passed, 0 failed, 43 ignored.cargo clippy: the three "calls tostd::mem::dropwith a reference instead of an owned value does nothing" warnings on these paths are gone (3 → 0). A unit test of the deadlock would need a D3D12 device with a deterministically failing composer, which there is no scaffold for.🤖 Generated with Claude Code