fix(ngs2): roll back failed system and rack creation #1876
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1876"
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?
Imported from boykopovar/AnyPS5. Originally posted by Albaloola on 2026-10-08T22:38:45Z.
What
Failed NGS2 system/rack creation can leak allocator-owned storage and placement-created host objects. Keep both under ownership guards until registration succeeds, clean up successfully initialized custom effects in reverse order, and preserve the original error if cleanup or free also fails. Snapshot allocator callbacks and reject a parent destroyed or replaced during creation. The fix applies to both library aliases and retains the successful destruction path.
The overlap bot flags the shared
TechnicalDebt.mdinsertion line with #1616 and #1650. Their patches implement other functions and contain no NGS2 changes; this PR depends on neither.Tested
Exact published head:
04dfe7164594ca112dc063db48f7dcb88b3c77c4, based on upstreamce64d8eb3603078b597a60a37496328de63df72a. Windows x86-64, WinLibs MinGW-w64 GCC 15.2.0, CMake 4.3.1, Ninja 1.13.2, Release.Checked out this exact source head cleanly, reconfigured the isolated build directory used for #1875, then completed both build targets again (37 compile/link steps). Unchanged objects were reused; geometry-reset source changes were absent. Full default build and
libsbuild passed. No AnyPS5 source or objects from the combined development checkout were reused; the pinned upstream FFmpeg package was reused read-only. All 1,629 compile commands were checked for source isolation. Test registration, conventions andgit diff --checkpassed; source remained clean and the head/tree matched before and after testing.All 10 NGS2 tests passed (0 failed, 0 skipped), including
ngs2_allocationandngs2_core_allocation. These exercise allocator/setup failures, reverse cleanup, cleanup exceptions, allocator mutation, parent removal/replacement during callbacks, caller-owned buffer reuse, unchanged outputs and successful ownership transfer.Independent source/ABI/ownership review found no blocking findings. Host vector/registry allocation failures were structurally reviewed, not runtime fault-injected. Console cleanup order after failed creation has not been measured. No PS5 hardware, retail-title or Linux runtime validation is claimed. This isolated run covers the NGS2 suites, not the full GPU suite. GitHub Actions currently requires maintainer approval; no hosted CI pass is claimed.
Checklist
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T22:42:59Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/TechnicalDebt.mdL40Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T08:57:31Z.
Same as #1875: no title or crash shown that hits a failed NGS2 system or rack creation. Reopen with one.
Pull request closed