-
-
Notifications
You must be signed in to change notification settings - Fork 185
Folia Hide/Show Player Race Condition Fix #632
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
base: master
Are you sure you want to change the base?
Conversation
This PR introduces a few changes: - Fixes: GeyserMC#610 > Explanation: A player can move thread contexts between switching regions. To mitigate this, we should still schedule at the entity/player; however, ensure both operations occur separately to ensure this race condition never occurs. - Resolves conditions on shutdown where the ExecutorService fails to properly shutdown/disable. - Removes unneeded imports and resolves import order.
|
I'm not sure how this would solve your first point. You call the I've also looked at the EntityScheduler real quick (https://jd.papermc.io/folia/1.21/io/papermc/paper/threadedregions/scheduler/EntityScheduler.html) and the way it's worded I think we shouldn't have to worry about the player switching between owning regions |
I was under the impression that I managed to resolve this issue, given I was experiencing this issue once/week (or more often) and since this change with a good 2 month period with identical figures, the issue was then otherwise resolved. How would you propose I approach a more adequate fix? |
Hey @Tim203, are you more inclined for me to utilize this approach instead? |
spigot/src/main/java/org/geysermc/floodgate/util/SpigotVersionSpecificMethods.java
Show resolved
Hide resolved
spigot/src/main/java/org/geysermc/floodgate/util/SpigotVersionSpecificMethods.java
Show resolved
Hide resolved
Yes, if this'd actually solve the issue. |


This PR introduces a few changes: