gpu(book): drop Notice on SetPrivateDataInterface failure instead of leaking #3281
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!3281
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3281"
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?
@RanoGames on GitHub · 2026-11-29 21:16 UTC · original
RanoGames:fix/record-drop-notice-on-attach-fail→main· +0 −1 · 1 files · 1 commits · openWhat it changes
Fixes a permanent book-entry leak in
crates/victory-gpu/src/book.rs:watch()attaches a COMNoticeviaSetPrivateDataInterfacesoreleasecan callBook::removewhen the D3D12 object dies.std::mem::forget(notice), so theNoticenever released and the entry inserted byb.add(...)stayed in the book forever.noticeon both success and failure: success leaves the object's AddRef; failure frees theNoticesorelease()removes the orphaned entry.How it was tested
SetPrivateDataInterfaceleaked theNoticeand left a live book entry with no watcher.Noticeand clears the book entry through the normal release path.cargo testpassed for the crates it touches: yes (cargo test --locked -p victory-gpu --lib -- book;cargo xtask policy --stagedpassed)Checked for overlap
book.rs/SetPrivateDataInterface/mem::forget(notice). Related: #915 (broader mixed PR that also mentions book).View 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.