Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 141
    • Issues 141
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #990

Closed
Open
Created Nov 18, 2022 by SoniXlash@SoniXlash

Issues with MythicHealMechanicEvent in asynchronous mode

I have several issues, here is an examples:

[Craft Scheduler Thread - 1181 - MythicMobs/WARN]: [MythicMobs] Couldn't execute skill 'LeechingAura1': Enable debugging for a stack trace.
MythicMobs/WARN]: [MythicMobs] Couldn't execute skill 'LeechingAura4': Enable debugging for a stack trace.
MythicMobs/WARN]: [MythicMobs] Couldn't execute skill 'HexedExplosion': Enable debugging for a stack trace.

Debug log:

[14:09:14] [lumine-scheduler-2/WARN]: java.lang.IllegalStateException: MythicHealMechanicEvent may only be triggered synchronously.
[14:09:14] [lumine-scheduler-2/WARN]: 	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:658)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.mechanics.HealMechanic.castAtEntity(HealMechanic.java:48)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.SkillMechanic.lambda$executeTargetedEntitySkill$7(SkillMechanic.java:520)
[14:09:14] [lumine-scheduler-2/WARN]: 	at java.base/java.lang.Iterable.forEach(Iterable.java:75)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.SkillMechanic.executeTargetedEntitySkill(SkillMechanic.java:516)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.SkillMechanic.lambda$executeSkills$3(SkillMechanic.java:473)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.SkillMechanic.runMechanic(SkillMechanic.java:511)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.SkillMechanic.executeSkills(SkillMechanic.java:473)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.SkillMechanic.execute(SkillMechanic.java:390)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.MetaSkill.execute(MetaSkill.java:284)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.MetaSkill.execute(MetaSkill.java:259)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.mechanics.MetaSkillMechanic.cast(MetaSkillMechanic.java:122)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.SkillMechanic.executeSkills(SkillMechanic.java:444)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.SkillMechanic.execute(SkillMechanic.java:390)
[14:09:14] [Server thread/INFO]: [MythicMobs] [36m[i] Calling MythicMobLootDropEvent for UnholyPriest[0m
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.mobs.MobType.lambda$executeSkills$4(MobType.java:1140)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.bukkit.utils.Delegates$RunnableToSupplier.get(Delegates.java:121)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.bukkit.utils.promise.LuminePromise$SupplyRunnable.run(LuminePromise.java:654)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.bukkit.utils.tasks.LumineExecutors$SchedulerWrappedRunnable.run(LumineExecutors.java:70)
[14:09:14] [Server thread/INFO]: [MythicMobs] [36m[i] Calling MythicMobDeathEvent for UnholyPriest[0m
[14:09:14] [lumine-scheduler-2/WARN]: 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[14:09:14] [lumine-scheduler-2/WARN]: 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[14:09:14] [lumine-scheduler-2/WARN]: 	at java.base/java.lang.Thread.run(Thread.java:833)
[14:09:14] [Server thread/INFO]: [MythicMobs] [35m+--- [36mGenerating LootBag[0m

All of them are related to "heal" skill. I have another skill in vanillamobs that just heals:

SHULKER:
  Health: 60
  Armor: 10
  Skills:
   - heal{amount=20} @self ~onDamaged 0.1

And when it is used by a mob, an error appears:

[lumine-scheduler-961/ERROR]: [MythicMobs] [31m[SCHEDULER] ``Exception thrown whilst executing task[37m
[21:13:31] [lumine-scheduler-961/WARN]: ``java.lang.IllegalStateException: MythicHealMechanicEvent may only be triggered synchronously.

That is, all issues are related to the inability to heal in asynchronous mode (i use paper 1.19.2 and MM 5.1.4)

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking