Folia server stops automatically due to threading issue #437

Open
opened 2026-01-27 14:08:20 +01:00 by MrNickax · 5 comments
MrNickax commented 2026-01-27 14:08:20 +01:00 (Migrated from github.com)

Stack trace

https://mclo.gs/BI1E4tl

Plugin and Datapack List

[14:05:18 INFO]: ℹ Server Plugins (118):
[14:05:18 INFO]: Paper Plugins (5):
[14:05:18 INFO]: - BlueSlimeCore, HuskHomes, HuskSync, nightcore, PlugManX
[14:05:18 INFO]: Bukkit Plugins (113):
[14:05:18 INFO]: - 40ServidoresMC, AFKZone, AntiAFKPlus, AntiAFKPlusAddon, AntiDnTEnchantments, Argus, AttributeFixer, AxInventoryRestore, AxPlayerWarps, AxSellwands
[14:05:18 INFO]: AxTrade, BetterClan, BetterRTP, BetterRTP-MultiServer-Instance, BetterRTP-MultiServer-Requester, Bitsy, BlackMarket, ChatControl, ChunkHoppers, Chunky
[14:05:18 INFO]: ChunkyBorder, CloseCommand, CMILib, CombatLogX, CombatTPAGuard, CommandSynchronizer, ConditionalEvents, ConsoleSpamFixReborn, CoreProtect, CoreProtectPurgeScheduler
[14:05:18 INFO]: CosmeticPlus, CustomDeathMessages, CustomNameplates, CustomServidoresMCMessages, DailyChallenges, DeluxeMenus, *DisableJoinMessage, DiscordSynchronizer-Minecraft, DropConfirmation, eco
[14:05:18 INFO]: EcoEnchants, EcoPlus, Essentials, EssentialsXCrossServer, EventCalendar, ExcellentCrates, FairFight, FastAsyncWorldEdit, floodgate, GemCurrency
[14:05:18 INFO]: GSit, ItemAspects, ItemNameBlackList, Jobs, LastServer-Instance, libreforge, LiteBans, LuckPerms, MenuItem, Miller
[14:05:18 INFO]: MobFarmManager, MoveableSpawner, NewbieProtection, NoProtectionFlag, packetevents, PlaceholderAPI, Plan, PlayerSettings, PlayerUpgrades, PolarLoader
[14:05:18 INFO]: ProKits, ProtectionStones, ProtectionStonesAddon, ProtocolLib, PunishmentGUI, PurchaseConfirm, RandomChestEvent-Requester, RedisChat, RedisPlayerList-Global, RedisPlayerList-Server
[14:05:18 INFO]: RewardCalendar, ServerVariables, ServerVariablesHotFix, ShopGUIPlus, ShopGUIPlus-SellGUI, SilkSpawners, SkinsRestorer, SmartReconnect-Requester, spark, SpawnBalancer-Requester
[14:05:18 INFO]: SpawnerPickaxe, StaffUtil, StatsEditor, TAB, Talismans, Tebex, TheMayor, Topper, Tournament, UltimateAutoRestart
[14:05:18 INFO]: Vault, ViaBackwards, ViaVersion, VoteParty, Votifier, WorldGuard, XConomy, Yadro-Paper, zAuctionHouseHotFix, zAuctionHouseRedis
[14:05:18 INFO]: zAuctionHouseV3, zBaltop, zMenu

Datapack list:
Dungeons and Taverns v5.1.0

Actions to reproduce (if known)

No response

Folia version

This server is running Folia version 1.21.11-11-ver/1.21.11@e112b00 (2026-01-20T18:53:05Z) (Implementing API version 1.21.11-R0.1-SNAPSHOT)

Other

I started using Folia around one month ago. Since then, randomly about once every 1–2 weeks, the server stops due to this issue.

It is not a crash, the server automatically stops itself when the error occurs.

### Stack trace ``` https://mclo.gs/BI1E4tl ``` ### Plugin and Datapack List [14:05:18 INFO]: ℹ Server Plugins (118): [14:05:18 INFO]: Paper Plugins (5): [14:05:18 INFO]: - BlueSlimeCore, HuskHomes, HuskSync, nightcore, PlugManX [14:05:18 INFO]: Bukkit Plugins (113): [14:05:18 INFO]: - 40ServidoresMC, AFKZone, AntiAFKPlus, AntiAFKPlusAddon, AntiDnTEnchantments, Argus, AttributeFixer, AxInventoryRestore, AxPlayerWarps, AxSellwands [14:05:18 INFO]: AxTrade, BetterClan, BetterRTP, BetterRTP-MultiServer-Instance, BetterRTP-MultiServer-Requester, Bitsy, BlackMarket, ChatControl, ChunkHoppers, Chunky [14:05:18 INFO]: ChunkyBorder, CloseCommand, CMILib, CombatLogX, CombatTPAGuard, CommandSynchronizer, ConditionalEvents, ConsoleSpamFixReborn, CoreProtect, CoreProtectPurgeScheduler [14:05:18 INFO]: CosmeticPlus, CustomDeathMessages, CustomNameplates, CustomServidoresMCMessages, DailyChallenges, DeluxeMenus, *DisableJoinMessage, DiscordSynchronizer-Minecraft, DropConfirmation, eco [14:05:18 INFO]: EcoEnchants, EcoPlus, Essentials, EssentialsXCrossServer, EventCalendar, ExcellentCrates, FairFight, FastAsyncWorldEdit, floodgate, GemCurrency [14:05:18 INFO]: GSit, ItemAspects, ItemNameBlackList, Jobs, LastServer-Instance, libreforge, LiteBans, LuckPerms, MenuItem, Miller [14:05:18 INFO]: MobFarmManager, MoveableSpawner, NewbieProtection, NoProtectionFlag, packetevents, PlaceholderAPI, Plan, PlayerSettings, PlayerUpgrades, PolarLoader [14:05:18 INFO]: ProKits, ProtectionStones, ProtectionStonesAddon, ProtocolLib, PunishmentGUI, PurchaseConfirm, RandomChestEvent-Requester, RedisChat, RedisPlayerList-Global, RedisPlayerList-Server [14:05:18 INFO]: RewardCalendar, ServerVariables, ServerVariablesHotFix, ShopGUIPlus, ShopGUIPlus-SellGUI, SilkSpawners, SkinsRestorer, SmartReconnect-Requester, spark, SpawnBalancer-Requester [14:05:18 INFO]: SpawnerPickaxe, StaffUtil, StatsEditor, TAB, Talismans, Tebex, TheMayor, Topper, Tournament, UltimateAutoRestart [14:05:18 INFO]: Vault, ViaBackwards, ViaVersion, VoteParty, Votifier, WorldGuard, XConomy, Yadro-Paper, zAuctionHouseHotFix, zAuctionHouseRedis [14:05:18 INFO]: zAuctionHouseV3, zBaltop, zMenu Datapack list: Dungeons and Taverns v5.1.0 ### Actions to reproduce (if known) _No response_ ### Folia version This server is running Folia version 1.21.11-11-ver/1.21.11@e112b00 (2026-01-20T18:53:05Z) (Implementing API version 1.21.11-R0.1-SNAPSHOT) ### Other I started using Folia around one month ago. Since then, randomly about once every 1–2 weeks, the server stops due to this issue. It is not a crash, the server automatically stops itself when the error occurs.
masmc05 commented 2026-01-27 14:12:10 +01:00 (Migrated from github.com)

It stops itself because it's in a inconsistent state, so a restart would be able to save as much as possible in normal state before it becomes so corrupted that it won't be able to do anything, and after the start the server should be ok again.

That is for sure a plugin issue. Folia isn't for everyone, and you should try to use less public plugins in order to have more control over knowing what may mess with stuff in an unsafe manner

It stops itself because it's in a inconsistent state, so a restart would be able to save as much as possible in normal state before it becomes so corrupted that it won't be able to do anything, and after the start the server should be ok again. That is for sure a plugin issue. Folia isn't for everyone, and you should try to use less public plugins in order to have more control over knowing what may mess with stuff in an unsafe manner
MrNickax commented 2026-01-27 15:04:31 +01:00 (Migrated from github.com)

It stops itself because it's in a inconsistent state, so a restart would be able to save as much as possible in normal state before it becomes so corrupted that it won't be able to do anything, and after the start the server should be ok again.

That is for sure a plugin issue. Folia isn't for everyone, and you should try to use less public plugins in order to have more control over knowing what may mess with stuff in an unsafe manner

Folia definitely isn’t for everyone, which is why nearly 60% of the plugins we use are custom. That said, there’s no need to reinvent the wheel. I’ve been thinking about plugins that might be manipulating entities, and the only ones that come to mind are TAB and possibly Floodgate.

Is there any way to get more detailed information about the error, maybe some kind of debug mode? With the information currently available, it’s going to be quite difficult to pinpoint the cause, especially since it only happens once every one or two weeks.

> It stops itself because it's in a inconsistent state, so a restart would be able to save as much as possible in normal state before it becomes so corrupted that it won't be able to do anything, and after the start the server should be ok again. > > That is for sure a plugin issue. Folia isn't for everyone, and you should try to use less public plugins in order to have more control over knowing what may mess with stuff in an unsafe manner Folia definitely isn’t for everyone, which is why nearly 60% of the plugins we use are custom. That said, there’s no need to reinvent the wheel. I’ve been thinking about plugins that might be manipulating entities, and the only ones that come to mind are TAB and possibly Floodgate. Is there any way to get more detailed information about the error, maybe some kind of debug mode? With the information currently available, it’s going to be quite difficult to pinpoint the cause, especially since it only happens once every one or two weeks.
electronicboy commented 2026-01-27 15:09:33 +01:00 (Migrated from github.com)

That sort of error is generally down to plugins teleporting entities during unsafe events to do so, there generally isn't any debug mode for that, most cases of debugging that sort of thing for me would generally require modifying the server to try to capture such dangerous interactions I theorise are happening

That sort of error is generally down to plugins teleporting entities during unsafe events to do so, there generally isn't any debug mode for that, most cases of debugging that sort of thing for me would generally require modifying the server to try to capture such dangerous interactions I theorise are happening
masmc05 commented 2026-01-27 15:10:01 +01:00 (Migrated from github.com)

Your only 2 choises here are either binary search in hopes you find the broken plugin, or you install a debugger agent and put a breakpoint on this error

Your only 2 choises here are either binary search in hopes you find the broken plugin, or you install a debugger agent and put a breakpoint on this error
MrNickax commented 2026-01-27 15:52:34 +01:00 (Migrated from github.com)

Got it, thanks guys. I’ll do my best to figure out what’s going on.

Got it, thanks guys. I’ll do my best to figure out what’s going on.
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#437
No description provided.