common: report stale SlotVector IDs with index and generation #1681
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!1681
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1681/head"
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?
@theantipopau on GitHub · 2026-10-19 01:26 UTC · original
theantipopau:slotvector-diagnostics-1618→main· +16 −2 · 1 files · 1 commits · closed without mergingEchoes of Aincrad (#1618) trips slotVector.h:41 operator[] on a non-allocated ID with no cache/ID context. This keeps the fatal check but logs index, generation, container size, current slot generation, and occupancy so the next report identifies the stale-ID path instead of hiding the bug behind a fallback. Diagnostics only; no behavior change for valid IDs.
@coderabbitai[bot] on GitHub · 2026-10-19 01:32 UTC · original · edited 2026-10-19 01:38 UTC
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
4bec126a-e783-4919-95dd-938b90e7ab3f📥 Commits
Reviewing files that changed from the base of the PR and between
099de8dea6and50a38b6b3f.📒 Files selected for processing: 1
src/common/slotVector.hIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.
📝 Walkthrough
Both
SlotVector::operator[]overloads replace generic allocation checks with diagnostics. The diagnostics include the requested ID, vector size, stored generation, and whether the slot contains a value. For out-of-range indices, they reportUINT32_MAXfor the stored generation and-1for value presence.Suggested reviewers:
nmzikPriority: ⬇️ Low
Change: Refactor
Merge Risk: ⚪ Minimal · up to
50a38The change adds stale-ID diagnostic details without establishing a regression in supported builds. No actionable merge-blocking risk remains.
Pre-merge checks:
4 ·
1
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.Pull request closed