Meg HitBox Console Spam error
Closed
Meg HitBox Console Spam error
After updating from Meg 3.0.2 to latest(3.1.0) sometimes there is this error triggered in console and after that, all the models are broken(they seem in idle to the player while in fact they are moving). This error was reported from several users. I have noticed that this happen often after these actions: 1 - Spawning model with /meg summon or /mythicmobs mob spawn 2 - After killing a model with /mm m kill or /kill @e 3 - After hitting a model 4 - On Chunk Unloading when mob is set to not despawn
This error never happened to me in meg 3.0.2, I saw that in changelogs of Meg 3.1.0 the HitBox was modified, in fact the error is triggered for the hitbox of the fake entity. Before saying its Pufferfish(which I have always used and never gave a problem with Meg) I have also tried it on Paper and it happens also on Paper.
> [15:20:07] [Craft Scheduler Thread - 4 - ModelEngine/WARN]: [ModelEngine] Plugin ModelEngine vR3.1.0 generated an exception while executing task 148
> java.lang.NullPointerException: Cannot invoke "com.ticxo.modelengine.api.nms.entity.wrapper.RangeManager.getPlayerInRange()" because "this.rangeManager" is null
> at com.ticxo.modelengine.nms.v1_19_1_R1.entity.fake.hitbox.ModelHitboxImpl.despawn(ModelHitboxImpl.java:110) ~[Model-Engine-R3.1.0.jar:?]
> at com.ticxo.modelengine.model.ModeledEntityImpl.updateModelHitbox(ModeledEntityImpl.java:267) ~[Model-Engine-R3.1.0.jar:?]
> at com.ticxo.modelengine.model.ModeledEntityImpl.destroy(ModeledEntityImpl.java:110) ~[Model-Engine-R3.1.0.jar:?]
> at com.ticxo.modelengine.api.model.mananger.ModelTicker.run(ModelTicker.java:55) ~[Model-Engine-R3.1.0.jar:?]
> at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[pufferfish-1.19.2.jar:git-Pufferfish-42]
> at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[pufferfish-1.19.2.jar:git-Pufferfish-42]
> at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[pufferfish-1.19.2.jar:?]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
> at java.lang.Thread.run(Thread.java:833) ~[?:?]
> [15:16:20 INFO]: Pino_kK issued server command: /mm m spawn farmerNPC
> [15:16:20 WARN]: java.lang.NullPointerException: Cannot invoke "com.ticxo.modelengine.api.nms.entity.wrapper.RangeManager.getPlayerInRange()" because "this.rangeManager" is null
> [15:16:20 WARN]: at Model-Engine-R3.1.0.jar//com.ticxo.modelengine.nms.v1_19_1_R1.entity.fake.hitbox.ModelHitboxImpl.spawn(ModelHitboxImpl.java:87)
> [15:16:20 WARN]: at Model-Engine-R3.1.0.jar//com.ticxo.modelengine.model.ModeledEntityImpl.updateModelHitbox(ModeledEntityImpl.java:267)
> [15:16:20 WARN]: at Model-Engine-R3.1.0.jar//com.ticxo.modelengine.model.ModeledEntityImpl.addModel(ModeledEntityImpl.java:174)
> [15:16:20 WARN]: at Model-Engine-R3.1.0.jar//com.ticxo.modelengine.mythic.mechanics.model.MechanicModel.addModel(MechanicModel.java:112)
> [15:16:20 WARN]: at Model-Engine-R3.1.0.jar//com.ticxo.modelengine.mythic.mechanics.model.MechanicModel.castAtEntity(MechanicModel.java:48)
> [15:16:20 WARN]: at MythicMobs-5.2.0.jar//io.lumine.mythic.core.skills.SkillMechanic.lambda$executeTargetedEntitySkill$8(SkillMechanic.java:548)
> [15:16:20 WARN]: at java.base/java.lang.Iterable.forEach(Iterable.java:75)
> [15:16:20 WARN]: at MythicMobs-5.2.0.jar//io.lumine.mythic.core.skills.SkillMechanic.executeTargetedEntitySkill(SkillMechanic.java:544)
> [15:16:20 WARN]: at MythicMobs-5.2.0.jar//io.lumine.mythic.core.skills.SkillMechanic.lambda$executeSkills$4(SkillMechanic.java:501)
> [15:16:20 WARN]: at MythicMobs-5.2.0.jar//io.lumine.mythic.core.skills.SkillMechanic.runMechanic(SkillMechanic.java:539)
> [15:16:20 WARN]: at MythicMobs-5.2.0.jar//io.lumine.mythic.core.skills.SkillMechanic.executeSkills(SkillMechanic.java:501)
> [15:16:20 WARN]: at MythicMobs-5.2.0.jar//io.lumine.mythic.core.skills.SkillMechanic.execute(SkillMechanic.java:418)
> [15:16:20 WARN]: at MythicMobs-5.2.0.jar//io.lumine.mythic.core.mobs.MobType.lambda$executeSkills$6(MobType.java:1186)
> [15:16:20 WARN]: at MythicMobs-5.2.0.jar//io.lumine.mythic.bukkit.utils.Delegates$RunnableToSupplier.get(Delegates.java:121)
> [15:16:20 WARN]: at MythicMobs-5.2.0.jar//io.lumine.mythic.bukkit.utils.promise.LuminePromise$SupplyRunnable.run(LuminePromise.java:654)
> [15:16:20 WARN]: at MythicMobs-5.2.0.jar//io.lumine.mythic.bukkit.utils.tasks.LumineExecutors$SchedulerWrappedRunnable.run(LumineExecutors.java:70)
> [15:16:20 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
> [15:16:20 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
> [15:16:20 WARN]: at java.base/java.lang.Thread.run(Thread.java:833)
added Bug label
I got this reported to me a lot, but the methods you mentioned don't trigger it for me. I tried using meg summon command, mm spawn command, mm spawn eggs, and killing them with mm m ka or Minecraft kill all, hitting them, or through despawn.
I'm using a server with only MythicMobs 5.2.0 and ModelEngine R3.1.0, Paper 1.19.2 (Paper-296), no bungee cord or velocity, flat world with natural mob spawning disabled, and spawning mobs at x1000 z1000 (way out of persistent chunk).
Lmk if you can replicate this bug with this exact setup. If you can, I need your exact configs and steps to reproduce the bug. If you can't, it might be caused by a different paper version or conflicts with other plugins. Please isolate the root cause of the problem if possible by binary searching which plugin is the cause.
Edited by Ticxoadded Completed / Resolved label