Thread count rising and crash
When I join a dungeon, approach a mob from Mythic Mobs and put /dungeon leave the thread count immediately starts to rise.
[23:26:27] [Craft Async Scheduler Management Thread/ERROR]: Caught previously unhandled exception : [23:26:27] [Craft Async Scheduler Management Thread/ERROR]: Craft Async Scheduler Management Thread java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached at java.base/java.lang.Thread.start0(Native Method) ~[?:?] at java.base/java.lang.Thread.start(Thread.java:1553) ~[?:?] at java.base/java.lang.System$2.start(System.java:2577) ~[?:?] at java.base/jdk.internal.vm.SharedThreadContainer.start(SharedThreadContainer.java:152) ~[?:?] at java.base/java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:953) ~[?:?] at java.base/java.util.concurrent.ThreadPoolExecutor.processWorkerExit(ThreadPoolExecutor.java:1021) ~[?:?] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1158) ~[?:?] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
[00:59:44 ERROR]: Nag author(s): '[Lumine]' of 'MythicMobs v5.6.2-3e052553' about the following: This plugin is not properly shutting down its async tasks when it is being shut down. This task may throw errors during the final shutdown logs and might not complete before process dies. [00:59:44 ERROR]: Craft Scheduler Thread - 2179 - MythicMobs Stacktrace [00:59:44 ERROR]: java.base/jdk.internal.misc.Unsafe.park(Native Method) [00:59:44 ERROR]: java.base/java.util.concurrent.locks.LockSupport.park(LockSupport.java:221) [00:59:44 ERROR]: java.base/java.util.concurrent.CompletableFuture$Signaller.block(CompletableFuture.java:1864) [00:59:44 ERROR]: java.base/java.util.concurrent.ForkJoinPool.unmanagedBlock(ForkJoinPool.java:3780) [00:59:44 ERROR]: java.base/java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3725) [00:59:44 ERROR]: java.base/java.util.concurrent.CompletableFuture.waitingGet(CompletableFuture.java:1898) [00:59:44 ERROR]: java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2117) [00:59:44 ERROR]: net.minecraft.server.level.ChunkProviderServer.a(ChunkProviderServer.java:262) [00:59:44 ERROR]: net.minecraft.world.level.World.a(World.java:965) [00:59:44 ERROR]: net.minecraft.world.level.World.a_(World.java:1244) [00:59:44 ERROR]: org.bukkit.craftbukkit.v1_20_R3.block.CraftBlock.getNMS(CraftBlock.java:78) [00:59:44 ERROR]: org.bukkit.craftbukkit.v1_20_R3.block.CraftBlock.isPassable(CraftBlock.java:642) [00:59:44 ERROR]: MythicMobs-5.6.2 (2).jar//io.lumine.mythic.core.skills.conditions.all.AltitudeCondition.check(AltitudeCondition.java:42) [00:59:44 ERROR]: MythicMobs-5.6.2 (2).jar//io.lumine.mythic.core.skills.SkillCondition.evaluateCaster(SkillCondition.java:217) [00:59:44 ERROR]: MythicMobs-5.6.2 (2).jar//io.lumine.mythic.core.skills.MetaSkill.isUsable(MetaSkill.java:263) [00:59:44 ERROR]: MythicMobs-5.6.2 (2).jar//io.lumine.mythic.core.skills.MetaSkill.isUsable(MetaSkill.java:226) [00:59:44 ERROR]: MythicMobs-5.6.2 (2).jar//io.lumine.mythic.core.skills.mechanics.MetaSkillMechanic.cast(MetaSkillMechanic.java:119) [00:59:44 ERROR]: MythicMobs-5.6.2 (2).jar//io.lumine.mythic.core.skills.SkillMechanic.executeSkills(SkillMechanic.java:515) [00:59:44 ERROR]: MythicMobs-5.6.2 (2).jar//io.lumine.mythic.core.skills.SkillMechanic.execute(SkillMechanic.java:461) [00:59:44 ERROR]: MythicMobs-5.6.2 (2).jar//io.lumine.mythic.core.skills.SkillExecutor.executeMobTimerSkills(SkillExecutor.java:250) [00:59:44 ERROR]: MythicMobs-5.6.2 (2).jar//io.lumine.mythic.core.skills.SkillExecutor.runTimerSkills(SkillExecutor.java:232) [00:59:44 ERROR]: MythicMobs-5.6.2 (2).jar//io.lumine.mythic.bukkit.clock.MythicClock.runSkillClock(MythicClock.java:182) [00:59:44 ERROR]: MythicMobs-5.6.2 (2).jar//io.lumine.mythic.bukkit.utils.Delegates$RunnableToConsumer.accept(Delegates.java:93) [00:59:44 ERROR]: MythicMobs-5.6.2 (2).jar//io.lumine.mythic.bukkit.utils.Schedulers$LumineTask.run(Schedulers.java:184) [00:59:44 ERROR]: org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftTask.run(CraftTask.java:91) [00:59:44 ERROR]: org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) [00:59:44 ERROR]: com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) [00:59:44 ERROR]: java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) [00:59:44 ERROR]: java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) [00:59:44 ERROR]: java.base/java.lang.Thread.run(Thread.java:1583)
I tried the latest stable versions of Mythic Mobs and Model Engine and the latest development versions and no change occurred. Server info: Leaf version git-Leaf-"504935f" (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 504935f on ver/1.20.4) MythicMobs 5.6.2 Model Engine: 4.0.6.1 Mythic DUngeons: 1.4.1 (newest snapshot) Htop: Tasks: 121, 22289 thr, 228 kthr; 0 run (The number of threads is constantly increasing)