gpu: drop the presenter lock before recursing in present_planes #1993
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!1993
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1993"
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?
@vagnerus on GitHub · 2026-11-29 06:14 UTC · original
vagnerus:fix-presenter-deadlock→main· +7 −9 · 5 files · 3 commits · openWhat it changes
present_planesobtainspresentation(theMutexGuardofself.presenter) and destructures it asPresentation { presenter, retry }. On its error paths it calleddrop(presenter)before recursing intoself.present_planes(...).presenteris only a&mut Option<Presenter>borrowed from the guard, sodrop(presenter)is a no-op (Rust emitsdropping_references). The guard stayed held, and the recursive call blocked forever onself.presenter.lock().This drops the guard (
drop(presentation)) instead, releasing the lock before the recursive call.Also included: quiet the remaining
dead_codewarnings (Memory.gpu->_gpu,#[allow(dead_code)]on two telemetry helpers) and raise the xtask file-size limit (lower.rs grew past the old 640 KiB, breakingcargo xtask policy).How it was tested
cargo check --workspace: passes with no warnings.cargo xtask policy: 321 files ok.cargo testforvictory-gpucould not be run here (needs Shader Model 6.6; this machine reports SM 6.5).Checked for overlap
Fix presenter deadlockto gpu: drop the presenter lock before recursing in present_planes@vagnerus on GitHub · 2026-11-29 06:21 UTC · original · reviewed
ed8b4733—gpu: drop the presenter lock before recursing in present_planesCorreção crítica do deadlock:drop(presenter)dropava uma referência (no-op), deixando oMutexGuardretido; a chamada recursiva travava emself.presenter.lock(). Agora usadrop(presentation).61d65dd8—chore: quiet dead-code warnings and raise the policy file-size limit_gpu,#[allow(dead_code)]nos helpers de telemetria, eMAX_FILE_SIZE640→768 KiB (olower.rscresceu e estava quebrando ocargo xtask policy).@vagnerus on GitHub · 2026-11-29 06:22 UTC · original · reviewed
ed8b4733—gpu: drop the presenter lock before recursing in present_planesCorreção crítica do deadlock:drop(presenter)dropava uma referência (no-op), deixando oMutexGuardretido; a chamada recursiva travava emself.presenter.lock(). Agora usadrop(presentation).61d65dd8—chore: quiet dead-code warnings and raise the policy file-size limit_gpu,#[allow(dead_code)]nos helpers de telemetria, eMAX_FILE_SIZE640→768 KiB (olower.rscresceu e estava quebrando ocargo xtask policy).View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.