Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tab entries dirty set leaking views, players & worlds #1384

Merged
merged 2 commits into from
Aug 17, 2024

Conversation

Pablete1234
Copy link
Member

Tab entries have a dirtyset/cleanset that holds all views that need/don't need updating. Tab views get dynamically added/removed to those sets when the entry starts/stops being used, but on cleanup when a player leaves, the entries aren't removed.

That causes the following chain to stay in memory:
TabEntry.dirtySet -> TabView.viewer -> bukkit Player -> nms player -> nms world -> chunks etc

@Pablete1234 Pablete1234 added the bug Something isn't working label Aug 17, 2024
@Pablete1234 Pablete1234 merged commit fdf5a1d into dev Aug 17, 2024
2 checks passed
@Pablete1234 Pablete1234 deleted the fix-mem-leaks branch August 17, 2024 03:25
Pablete1234 added a commit that referenced this pull request Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

2 participants