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

BentoBox failed thread check for reason: Asynchronous Chunk getEntities call #135

Closed
x1p opened this issue Jul 24, 2021 · 4 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@x1p
Copy link

x1p commented Jul 24, 2021

Description

Describe the bug

Player is trying to spawn an Iron Golem.
Result: no golem + error on console

Error message, click to open
[11:33:18 FATAL]: Thread Craft Scheduler Thread - 796 - BentoBox failed thread check for reason: Asynchronous Chunk getEntities call
java.lang.Throwable: null
at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:15) ~[patched_1.17.1.jar:git-Purpur-1292]
at net.minecraft.server.level.ServerLevel.getEntities(ServerLevel.java:2360) ~[?:?]
at org.bukkit.craftbukkit.v1_17_R1.CraftWorld.getEntities(CraftWorld.java:1173) ~[patched_1.17.1.jar:git-Purpur-1292]
at world.bentobox.limits.listeners.EntityLimitListener.atLimit(EntityLimitListener.java:441) ~[?:?]
at world.bentobox.limits.listeners.EntityLimitListener.lambda$processIsland$7(EntityLimitListener.java:224) ~[?:?]
at java.util.Optional.ifPresent(Optional.java:178) ~[?:?]
at world.bentobox.limits.listeners.EntityLimitListener.processIsland(EntityLimitListener.java:222) ~[?:?]
at world.bentobox.limits.listeners.EntityLimitListener.lambda$checkLimit$4(EntityLimitListener.java:215) ~[?:?]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[patched_1.17.1.jar:git-Purpur-1292]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[patched_1.17.1.jar:git-Purpur-1292]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.17.1.jar:git-Purpur-1292]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[?:?]
at java.lang.Thread.run(Thread.java:831) [?:?]
[11:33:18 WARN]: [BentoBox] Plugin BentoBox v1.17.1-SNAPSHOT-b2097 generated an exception while executing task 134086
java.lang.IllegalStateException: Asynchronous Chunk getEntities call!
at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:16) ~[patched_1.17.1.jar:git-Purpur-1292]
at net.minecraft.server.level.ServerLevel.getEntities(ServerLevel.java:2360) ~[?:?]
at org.bukkit.craftbukkit.v1_17_R1.CraftWorld.getEntities(CraftWorld.java:1173) ~[patched_1.17.1.jar:git-Purpur-1292]
at world.bentobox.limits.listeners.EntityLimitListener.atLimit(EntityLimitListener.java:441) ~[?:?]
at world.bentobox.limits.listeners.EntityLimitListener.lambda$processIsland$7(EntityLimitListener.java:224) ~[?:?]
at java.util.Optional.ifPresent(Optional.java:178) ~[?:?]
at world.bentobox.limits.listeners.EntityLimitListener.processIsland(EntityLimitListener.java:222) ~[?:?]
at world.bentobox.limits.listeners.EntityLimitListener.lambda$checkLimit$4(EntityLimitListener.java:215) ~[?:?]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[patched_1.17.1.jar:git-Purpur-1292]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[patched_1.17.1.jar:git-Purpur-1292]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.17.1.jar:git-Purpur-1292]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[?:?]
at java.lang.Thread.run(Thread.java:831) [?:?]

Steps to reproduce the behavior

Place iron blocks in a T-shape and then a carved pumpkin on top
I haven't found a way to reproduce it on a default test server

Expected behavior

Golem should spawn

Screenshots and videos (Optional)

Environment

Output of /bbox version (Mandatory)
[12:01:27 INFO]: Running PURPUR 1.17.1.
[12:01:27 INFO]: BentoBox version: 1.17.1-SNAPSHOT-b2097
[12:01:27 INFO]: Database: JSON
[12:01:27 INFO]: Loaded Game Worlds:
[12:01:27 INFO]: bskyblock_world (BSkyBlock): Overworld, Nether, The End
[12:01:27 INFO]: Loaded Addons:
[12:01:27 INFO]: Biomes 1.14.1-SNAPSHOT-b209 (ENABLED)
[12:01:27 INFO]: BSkyBlock 1.15.0 (ENABLED)
[12:01:27 INFO]: Challenges 0.9.0-SNAPSHOT-b457 (ENABLED)
[12:01:27 INFO]: Level 2.7.0-SNAPSHOT-b465 (ENABLED)
[12:01:27 INFO]: Limits 1.17.1-SNAPSHOT-b266 (ENABLED)
[12:01:27 INFO]: MagicCobblestoneGenerator 2.4.0-SNAPSHOT-b228 (ENABLED)
[12:01:27 INFO]: Warps 1.11.1-SNAPSHOT-b294 (ENABLED)

Plugins (Optional)

_______

Additional context (Optional)

@variananora
Copy link

Having the same issue
Error logs: https://haste.zneix.eu/bajatupuky.sql
/bbox v: https://haste.zneix.eu/ucuvocinen.md

@tastybento tastybento transferred this issue from BentoBoxWorld/BentoBox Jul 24, 2021
@tastybento tastybento self-assigned this Jul 24, 2021
@tastybento tastybento added bug Something isn't working under investigation this is being looked into labels Jul 24, 2021
@tastybento
Copy link
Member

A quick workaround while I fix this is to change this setting in the Limits config.yml to false:

# Use async checks for snowmen and iron golums. Set to false if you see problems.
async-golums: false

tastybento added a commit that referenced this issue Jul 24, 2021
@tastybento tastybento removed the under investigation this is being looked into label Jul 24, 2021
@x1p
Copy link
Author

x1p commented Jul 25, 2021

Setting async-golums: false works indeed. I missed that config entry because there was no entry in my config file. I was so used that config files updated themself upon updating bentobox and add-ons. But this one apparently didn't update.

@tastybento
Copy link
Member

The latest snapshot should work as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants