Crashing when attempting to spawn mobs in void areas
The server will attempt to continuously create new async threads and eventually crash the server when the following conditions are met:
- A player is in an area where there are absolutely no blocks within simulation distance or render distance.
- There is an ADD-type random spawn in that player's dimension, regardless of whether spawning conditions are met.
When these conditions were met, this caused the server to quickly consume all the CPU available to it, and within 10 seconds, it would crash the server. Disabling random spawns entirely in this dimension, or changing out the ADD-type spawning for REPLACE-type spawning would fix the issue.
Server Details:
- Minecraft Version 1.20.4
- Paper Build 497
- MythicMobs version 5.7.2 (also tested in 5.6.2, but updated in case the issue was resolved in a later version)