Enhanced AI

Enhanced AI

9M Downloads

Wardens can't spawn / crash the game

Poopchungus opened this issue ยท 11 comments

commented

Describe the bug
with the new update my game crashes when trying to load a world

Versions where you encountered the problem (Use the exact version numbers, not 'latest' or similar):

  • Minecraft: 1.20.1
  • Forge: 47.4.0
  • Enhanced AI: 2.5.6
  • InsaneLib: 1.18.3

Steps to reproduce
1.

crash-2025-03-06_19.15.51-client.txt
latest.log

Screenshots
If applicable, add screenshots to help explain your problem.

Logs
Use a paste site (pastebin, gist) to send the game logs (both logs and crash if applicable)
For the love of god, don't paste the logs here

Can the issue be reproduced with EnhancedAI only (or with a minimal set of mods)?
No

commented

Disabled the feature for now.

commented

Thanks for the chatgpt explanation, didn't need it.
Also there's a reason why the "Can the issue be reproduced with EnhancedAI only" question exists. Find what mod is causing the issue and I can fix it

commented

I made the correct report.

Describe the bug
Crash when loading world with certain mod combinations

Versions where you encountered the problem (Use the exact version numbers, not 'latest' or similar):

Minecraft: 1.20.1
Forge: 47.4.0
Enhanced AI: 2.5.7
InsaneLib: 1.18.3
Just Enough Items (JEI): 15.12.2.51
Just Enough Resources (JER): 1.4.0.247

Steps to reproduce
1.

Install Enhanced AI, Just Enough Resources, and prerequisite mods

Open any single world (I haven't tried it on a server)

Minecraft crashes

Logs

https://pastebin.pl/view/8b0f12cb

Can the issue be reproduced with EnhancedAI only (or with a minimal set of mods)?

Enhanced AI and Just Enough Resources (and prerequisite mods) cause this

commented

I have no idea why JER is messing with the Warden Sonic Boom attack lol.

Btw should be fixed next update

commented

it still didn't fix it

commented

The update isn't released yet

commented

oh

commented

Seems like the issue wasn't about mod incompatibility. Need to investigate more.

commented

I have the same problem, every time I try to make the warden appear the game crashes

I get these lines...

Caused by: org.spongepowered.asm.mixin.throwables.MixinApplyError: Mixin [mixins.enhancedai.json:SonicBoomMixin from mod enhancedai] from phase [DEFAULT] in config [mixins.enhancedai.json] FAILED during APPLY
at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinError(MixinProcessor.java:638) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}
at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinApplyError(MixinProcessor.java:589) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}
at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:379) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}
... 40 more
Caused by: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: Critical injection failure: @ModifyConstant annotation on onRange could not find any targets matching 'lambda$tick$1' in net.minecraft.world.entity.ai.behavior.warden.SonicBoom. Using refmap mixins.enhancedai.refmap.json [PREINJECT Applicator Phase -> mixins.enhancedai.json:SonicBoomMixin from mod enhancedai -> Prepare Injections -> -> constant$cah000$enhancedai$onRange(D)D -> Parse]

commented

I crash on join without anything related to wardens or sculk within the nearby loaded chunks (I checked at some point before this issue). Same errors as above, nothing else to report.

commented

Same thing on my side with a /summon (But no crash on my side)

[23:22:06] [Server thread/INFO]: Instancing error handler class com.illusivesoulworks.polymorph.mixin.IntegratedMixinPlugin
[23:22:06] [Server thread/FATAL]: Mixin apply failed mixins.enhancedai.json:SonicBoomMixin -> net.minecraft.world.entity.ai.behavior.warden.SonicBoom: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException Critical injection failure: @ModifyConstant annotation on onRange could not find any targets matching 'lambda$tick$1' in net.minecraft.world.entity.ai.behavior.warden.SonicBoom. Using refmap mixins.enhancedai.refmap.json [PREINJECT Applicator Phase -> mixins.enhancedai.json:SonicBoomMixin -> Prepare Injections ->  -> constant$bdf000$onRange(D)D -> Parse]
org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: Critical injection failure: @ModifyConstant annotation on onRange could not find any targets matching 'lambda$tick$1' in net.minecraft.world.entity.ai.behavior.warden.SonicBoom. Using refmap mixins.enhancedai.refmap.json [PREINJECT Applicator Phase -> mixins.enhancedai.json:SonicBoomMixin -> Prepare Injections ->  -> constant$bdf000$onRange(D)D -> Parse]
	at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.validateTargets(InjectionInfo.java:656) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
	at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.findTargets(InjectionInfo.java:587) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
	at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.readAnnotation(InjectionInfo.java:330) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
	at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.<init>(InjectionInfo.java:316) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
	at org.spongepowered.asm.mixin.injection.struct.ModifyConstantInjectionInfo.<init>(ModifyConstantInjectionInfo.java:54) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
	at jdk.internal.reflect.GeneratedConstructorAccessor96.newInstance(Unknown Source) ~[?:?]
	at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
	at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?]
	at java.lang.reflect.Constructor.newInstance(Constructor.java:480) ~[?:?]
	at org.spongepowered.asm.mixin.injection.struct.InjectionInfo$InjectorEntry.create(InjectionInfo.java:149) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
	at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.parse(InjectionInfo.java:708) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
	at org.spongepowered.asm.mixin.transformer.MixinTargetContext.prepareInjections(MixinTargetContext.java:1311) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
	at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.prepareInjections(MixinApplicatorStandard.java:1042) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
	at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:393) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
	at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:325) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
	at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:383) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
	at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:365) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
	at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
	at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
	at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
	at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
	at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:156) ~[modlauncher-10.0.9.jar:10.0.9+10.0.9+main.dcd20f30]
	at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88) ~[modlauncher-10.0.9.jar:?]
	at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) ~[modlauncher-10.0.9.jar:?]
	at cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50) ~[modlauncher-10.0.9.jar:?]
	at cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:113) ~[securejarhandler-2.1.10.jar:?]
	at cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219) ~[securejarhandler-2.1.10.jar:?]
	at cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229) ~[securejarhandler-2.1.10.jar:?]
	at cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219) ~[securejarhandler-2.1.10.jar:?]
	at cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:135) ~[securejarhandler-2.1.10.jar:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?]
	at net.minecraft.world.entity.monster.warden.WardenAi.m_219517_(WardenAi.java:208) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.world.entity.monster.warden.WardenAi.m_219520_(WardenAi.java:134) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.world.entity.monster.warden.Warden.m_8075_(Warden.java:394) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.world.entity.LivingEntity.<init>(LivingEntity.java:245) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.world.entity.Mob.<init>(Mob.java:123) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.world.entity.PathfinderMob.<init>(PathfinderMob.java:14) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.world.entity.monster.Monster.<init>(Monster.java:31) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.world.entity.monster.warden.Warden.<init>(Warden.java:131) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.world.entity.EntityType.m_20615_(EntityType.java:525) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.world.entity.EntityType.m_185996_(EntityType.java:530) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at java.util.Optional.map(Optional.java:260) ~[?:?]
	at net.minecraft.world.entity.EntityType.m_20642_(EntityType.java:529) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.world.entity.EntityType.m_20669_(EntityType.java:607) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.world.entity.EntityType.m_20645_(EntityType.java:563) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.server.commands.SummonCommand.m_269066_(SummonCommand.java:67) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.server.commands.SummonCommand.m_245828_(SummonCommand.java:86) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.server.commands.SummonCommand.m_244861_(SummonCommand.java:47) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:264) ~[brigadier-1.1.8.jar%23113!/:?]
	at net.minecraft.commands.Commands.m_242674_(Commands.java:257) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.m_246958_(ServerGamePacketListenerImpl.java:1244) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.m_244885_(ServerGamePacketListenerImpl.java:1221) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.util.thread.BlockableEventLoop.m_18693_(BlockableEventLoop.java:67) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
	at net.minecraft.server.TickTask.run(TickTask.java:18) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.util.thread.BlockableEventLoop.m_6367_(BlockableEventLoop.java:156) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(ReentrantBlockableEventLoop.java:23) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.server.MinecraftServer.m_6367_(MinecraftServer.java:770) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.server.MinecraftServer.m_6367_(MinecraftServer.java:161) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.util.thread.BlockableEventLoop.m_7245_(BlockableEventLoop.java:130) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.server.MinecraftServer.m_129961_(MinecraftServer.java:753) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.server.MinecraftServer.m_7245_(MinecraftServer.java:747) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.util.thread.BlockableEventLoop.m_18701_(BlockableEventLoop.java:139) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.server.MinecraftServer.m_130012_(MinecraftServer.java:733) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:665) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:251) ~[client-1.20.1-20230612.114412-srg.jar%23552!/:?]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]