Thread failed main thread check: Cannot getEntities asynchronously #381

Open
opened 2025-07-10 20:34:41 +02:00 by RitaSister · 1 comment
RitaSister commented 2025-07-10 20:34:41 +02:00 (Migrated from github.com)

Expected behavior

https://mclo.gs/UuVhA6b#L1342

Observed/Actual behavior

https://mclo.gs/UuVhA6b#L1342

Steps/models to reproduce

just run server on folia 1.21.6 (maybe work on 1.21.7)

Plugin and Datapack List

[21:34:21 INFO]: ℹ Server Plugins (63):
[21:34:21 INFO]: Paper Plugins (6):
[21:34:21 INFO]: - CarbonChat, ChatDisplay, emotecraft, EnchantedBook, FancyNpcs, MoreFoWorld
[21:34:21 INFO]: Bukkit Plugins (57):
[21:34:21 INFO]: - AntiHealthIndicator, ArmorStandEditor, AutoWhitelistRemove, AxInventoryRestore, BreweryX, CoreProtect, CoreProtectTNT, Craftorithm, DeluxeMenus, EasyPayments
[21:34:21 INFO]: Essentials, EssentialsSpawn, fast-leaf-decay, FlagsH, GSit, HeadDatabase, InteractiveSigns, InvisibleFrames, LevelledMobs, LiteBans
[21:34:21 INFO]: LuckPerms, Maintenance, mclogs, MilkyPixelart, NBTAPI, OreAnnouncer, packetevents, PlaceholderAPI, PlasmoVoice, PlayerHeads
[21:34:21 INFO]: ProtocolLib, pv-addon-discs, pv-addon-groups, pv-addon-lavaplayer-lib, pv-addon-sculk, pv-addon-spectator, rpchat, SkinShufflePlugin, spark, squaremap
[21:34:21 INFO]: squaremap-worldguard, squaremarker, StonecuttersPLUS, TAB, Terra, TWSAdmin, TWSCheck, TWSCore, UltimateAutoRestart, UltraCosmetics
[21:34:21 INFO]: Vault, ViaBackwards, ViaVersion, Votifier, VotingPlugin, WorldEdit, WorldGuard

Folia version

ver
[21:34:34 INFO]: Checking version, please wait...
[21:34:34 INFO]: This server is running Folia version 1.21.7-DEV-ver/1.21.6@942017b (1970-01-01T00:00:00Z) (Implementing API version 1.21.7-R0.1-SNAPSHOT)
Error obtaining version information
Previous version: 1.21.6-6-e4b0ae9 (MC: 1.21.6)

Other

No response

### Expected behavior https://mclo.gs/UuVhA6b#L1342 ### Observed/Actual behavior https://mclo.gs/UuVhA6b#L1342 ### Steps/models to reproduce just run server on folia 1.21.6 (maybe work on 1.21.7) ### Plugin and Datapack List [21:34:21 INFO]: ℹ Server Plugins (63): [21:34:21 INFO]: Paper Plugins (6): [21:34:21 INFO]: - CarbonChat, ChatDisplay, emotecraft, EnchantedBook, FancyNpcs, MoreFoWorld [21:34:21 INFO]: Bukkit Plugins (57): [21:34:21 INFO]: - AntiHealthIndicator, ArmorStandEditor, AutoWhitelistRemove, AxInventoryRestore, BreweryX, CoreProtect, CoreProtectTNT, Craftorithm, DeluxeMenus, EasyPayments [21:34:21 INFO]: Essentials, EssentialsSpawn, fast-leaf-decay, FlagsH, GSit, HeadDatabase, InteractiveSigns, InvisibleFrames, LevelledMobs, LiteBans [21:34:21 INFO]: LuckPerms, Maintenance, mclogs, MilkyPixelart, NBTAPI, OreAnnouncer, packetevents, PlaceholderAPI, PlasmoVoice, PlayerHeads [21:34:21 INFO]: ProtocolLib, pv-addon-discs, pv-addon-groups, pv-addon-lavaplayer-lib, pv-addon-sculk, pv-addon-spectator, rpchat, SkinShufflePlugin, spark, squaremap [21:34:21 INFO]: squaremap-worldguard, squaremarker, StonecuttersPLUS, TAB, Terra, TWSAdmin, TWSCheck, TWSCore, UltimateAutoRestart, UltraCosmetics [21:34:21 INFO]: Vault, ViaBackwards, ViaVersion, Votifier, VotingPlugin, WorldEdit, WorldGuard ### Folia version > ver [21:34:34 INFO]: Checking version, please wait... [21:34:34 INFO]: This server is running Folia version 1.21.7-DEV-ver/1.21.6@942017b (1970-01-01T00:00:00Z) (Implementing API version 1.21.7-R0.1-SNAPSHOT) Error obtaining version information Previous version: 1.21.6-6-e4b0ae9 (MC: 1.21.6) ### Other _No response_
JanCantCode commented 2025-10-06 20:04:59 +02:00 (Migrated from github.com)

Occurs on 1.21.8-DEV-ver/1.21.8@612d9bd with a minimal plugin list:

[17:54:21 INFO]: ℹ Server Plugins (11):
[17:54:21 INFO]: Paper Plugins (3):
[17:54:21 INFO]:  - BlueSlimeCore, FancyHolograms, MiniPlaceholders
[17:54:21 INFO]: Bukkit Plugins (8):
[17:54:21 INFO]:  - CombatLogX, FasterCrystals, GlowingTest, PacketBoard, packetevents, ProtocolLib, ViaBackwards, ViaVersion

Notably also only occured to us with Happy Ghasts. From looking at the code, I'm guessing happy ghasts move too quickly

@Override
    public void travel(Vec3 travelVector) {
        float f = (float)this.getAttributeValue(Attributes.FLYING_SPEED) * 5.0F / 3.0F;
        this.travelFlying(travelVector, f, f, f);
    }

The hitbox in which to look for entities to collide with is resized to be big enough to fit the travelVector, but this ends up being outside of the Region ticking that Ghast. However it appears to me it would require Absurdly high speeds for the hitboxes to expand this rapidly, in the provided logs it expands by ~1000 blocks on one axis, on our server it ended up being even more than that.

Occurs on ``1.21.8-DEV-ver/1.21.8@612d9bd`` with a minimal plugin list: ``` [17:54:21 INFO]: ℹ Server Plugins (11): [17:54:21 INFO]: Paper Plugins (3): [17:54:21 INFO]: - BlueSlimeCore, FancyHolograms, MiniPlaceholders [17:54:21 INFO]: Bukkit Plugins (8): [17:54:21 INFO]: - CombatLogX, FasterCrystals, GlowingTest, PacketBoard, packetevents, ProtocolLib, ViaBackwards, ViaVersion ``` Notably also only occured to us with Happy Ghasts. From looking at the code, I'm guessing happy ghasts move too quickly ``` @Override public void travel(Vec3 travelVector) { float f = (float)this.getAttributeValue(Attributes.FLYING_SPEED) * 5.0F / 3.0F; this.travelFlying(travelVector, f, f, f); } ``` The hitbox in which to look for entities to collide with is resized to be big enough to fit the ``travelVector``, but this ends up being outside of the Region ticking that Ghast. However it appears to me it would require Absurdly high speeds for the hitboxes to expand this rapidly, in the provided logs it expands by ~1000 blocks on one axis, on our server it ended up being even more than that.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Minecraft/Folia#381
No description provided.