Multiple server crashes caused by hoglin mob types/disguises
Closed
Multiple server crashes caused by hoglin mob types/disguises
The server randomly crashes while players are killing mobs. I'm not sure if it is caused by killing a Mythic Mob or not, but MythicMobs seems to always appear in the thread dumps. This happens at random intervals and seemingly, with random mobs with random players.
The "crash" though, is not what you would expect. Both the TPS and MSPT shows as perfectly normal. However, (most) commands stop working and certain plugin APIs break. All teleports break. Mobs are extremely stuttery (like how when TPS is very low). I can't take a spark report, as either the command just doesn't work or the profiler never stops to record and upload when this happens. A crash report is never made. I can't stop the server, as it just hangs - I need to kill it to shut it down and start it up again.
One thing though, is that these all seem to link back to mobs in the Nether. The fourth log seems to have a ticking entity as a zombified piglin, but I don't have any MythicMobs that have the type zombified piglin. There are mobs that use the types HUSK, BAT, ZOMBIE, SKELETON, WITHER_SKELETON, GHAST, PILLAGER, ARMOR_STAND, STRIDER, and MAGMA_CUBE. I did used to have a mob with type HOGLIN, but since the previous 3 logs had ticking entities as a hoglin, I switched that mob to be a type HUSK with a disguise HOGLIN.
The first three logs were on 1.19, Purpur-1684, MythicMobs 5.1.1. The last log is on 1.19.2, Purpur-1790, MythicMobs 5.1.4. https://mclo.gs/z8GEwc3 https://mclo.gs/mApqkf1 https://mclo.gs/SyX9NlJ https://mclo.gs/1KixCbg
The freezing seems to always happen corresponding with an aura being removed from a mob and the aura's event listeners unregistering. Not sure why this is happening as I have never seen this cause a crash before, there might be some kind of weird conflict with another plugin you're using.
I'll keep thinking about potential causes but right now I've got nothing. :(
added Bug Discussion labels
Unfortunately, it happened again a few hours ago. Looking back at the logs it seems like someone died to the same mob that is a HUSK disguised as a HOGLIN in the nether (https://mclo.gs/GVZOnJu), which started the characteristics of the "crash". Then someone died to that mob again, and the server completely died (https://mclo.gs/7S7WDrK).
It seems like most of the times, the crashes link back to this mob. If you would like I could share the mob files.
If I could I'd love to do a binary search to check if it's some kind of conflict with another plugin. But with how unpredictable and hard to replicate this is, I don't think that's possible. :(
I forgot this issue existed, sorry about that. I stopped using HOGLIN as the base mob type and also removed any mobs that used the HOGLIN disguise, and I haven't had the issue since - so it must be some issue with hoglins.
I'm not sure if this issue still exists in the latest builds, but I'm not able to test it due to the unpredictable nature of this bug. I suppose you can close it?