Folia server stops automatically due to threading issue #437
Labels
No labels
documentation
good first issue
help wanted
resolution: duplicate
resolution: invalid
resolution: won't fix
status: needs triage
type: bug
type: feature
type: performance
type: question
version: 1.19.4
version: 1.20
version: 1.20.1
version: 1.20.2
version: 1.20.4
version: 1.20.6
version: 1.21.11
version: 1.21.4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Minecraft/Folia#437
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stack trace
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.
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.
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
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
Got it, thanks guys. I’ll do my best to figure out what’s going on.