-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
WildStacker IllegalStateException #313
Comments
This was the output of that particular debug |
Pretty sure I found the issue. It's due to async actions and should be fairly straightforward to fix but will be hard to verify. |
I have the server, where its really easily replicable. I have two weeks between seasons right now, so as there are no players online I'm open for testing |
Okay, I just merged in the new code. I still need to test on my end too, but in the interests of having help here, try it. It'll be on ci.bentobox.world soon. |
The problem still persists, but now I cannot get any stacktrace. I'm working on it. Somehow not all locations are beeing added to toRemove |
I think some locations are beeing added after removeAll method.
|
This uses CompleteableFutures instead of a recurring Bukkit task to check if collections have been removed. This is a much more reliable way to do it because it will complete when all the tasks are done and not before.
Reworked the whole approach. Please try it. |
Yup, just wanted you to know it works. Thank you |
Expected behavior
Level should be counted properly
Observed/Actual behavior
https://github.com/BentoBoxWorld/Level/blob/develop/src/main/java/world/bentobox/level/calculators/IslandLevelCalculator.java#L660 fires IllegalStateException for some locations. That makes finishTask beeing completed only after timeout due to these locations still remaining
Steps/models to reproduce
Thats the hard part. Im not able to reproduce it on my test server, but it happens on huge words with players.
But I'm basically doing /is level or /bsb level commands.
BentoBox version
31.05 19:54:50 [Server] INFO Running PURPUR 1.20.4.
31.05 19:54:50 [Server] INFO (git-Purpur-2152 (MC: 1.20.4))
31.05 19:54:50 [Server] INFO BentoBox version: 2.1.2-SNAPSHOT-b2572
31.05 19:54:50 [Server] INFO Database: MYSQL
31.05 19:54:50 [Server] INFO Loaded Game Worlds:
31.05 19:54:50 [Server] INFO skyblock (SkyBlock): Swiat, Pieklo, End
31.05 19:54:50 [Server] INFO Loaded Addons:
31.05 19:54:50 [Server] INFO Biomes 2.2.0-SNAPSHOT-b258 (ENABLED)
31.05 19:54:50 [Server] INFO Border 4.2.1 (ENABLED)
31.05 19:54:50 [Server] INFO BSkyBlock 1.17.1 (ENABLED)
31.05 19:54:50 [Server] INFO DimensionalTrees 1.7.0 (ENABLED)
31.05 19:54:50 [Server] INFO Level 2.13.0 (ENABLED)
31.05 19:54:50 [Server] INFO Limits 1.20.1 (ENABLED)
31.05 19:54:50 [Server] INFO SkyblockCore 0.5 (ENABLED)
31.05 19:54:50 [Server] INFO SkyIslandUpgrades 0.1 (ENABLED)
31.05 19:54:50 [Server] INFO Warps 1.14.0 (ENABLED)
Plugin list
No response
Other
Error I've managed to get in console is:
Lines numbers may differ due to some debug messages added
My latest debug code looks like that:
The text was updated successfully, but these errors were encountered: