The Hordes

The Hordes

5M Downloads

Horse AI causes a fatal TickingWorld error

TimelessInsanity opened this issue ยท 1 comments

commented

-- System Details --
_Minecraft Version: 1.12.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 1435598176 bytes (1369 MB) / 5218762752 bytes (4977 MB) up to 7635730432 bytes (7282 MB)
JVM Flags: 3 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx8192m -Xms256m
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
FML: MCP 9.42 Powered by Forge 14.23.5.2859 152 mods loaded, 151 mods active


Issue

In multiple crashlogs, the identified fatal error stems from a conflict between Hordes Horse AI and Vanilla Horse AI
Here is information from the crashlog and a copy of the normal log

CRASHLOG

java.lang.NullPointerException: Exception ticking world
at net.minecraft.world.WorldEntitySpawner.func_77191_a(WorldEntitySpawner.java:297)
at net.minecraft.world.gen.ChunkGeneratorOverworld.func_185931_b(ChunkGeneratorOverworld.java:466)
at net.minecraft.world.chunk.Chunk.func_186034_a(Chunk.java:1019)
at net.minecraft.world.chunk.Chunk.func_186030_a(Chunk.java:999)
at net.minecraft.world.gen.ChunkProviderServer.func_186025_d(ChunkProviderServer.java:157)
at net.minecraft.server.management.PlayerChunkMapEntry.func_187268_a(PlayerChunkMapEntry.java:126)
at net.minecraft.server.management.PlayerChunkMap.func_72693_b(SourceFile:147)
at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:227)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:756)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:185)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
at java.lang.Thread.run(Thread.java:745)

No Mixin Metadata is found in the Stacktrace.

A detailed walkthrough of the error, its code path and all known details is as follows:
-- Head --
Thread: Server thread
Stacktrace:
at net.minecraft.world.WorldEntitySpawner.func_77191_a(WorldEntitySpawner.java:297)
at net.minecraft.world.gen.ChunkGeneratorOverworld.func_185931_b(ChunkGeneratorOverworld.java:466)
at net.minecraft.world.chunk.Chunk.func_186034_a(Chunk.java:1019)
at net.minecraft.world.chunk.Chunk.func_186030_a(Chunk.java:999)
at net.minecraft.world.gen.ChunkProviderServer.func_186025_d(ChunkProviderServer.java:157)
at net.minecraft.server.management.PlayerChunkMapEntry.func_187268_a(PlayerChunkMapEntry.java:126)
at net.minecraft.server.management.PlayerChunkMap.func_72693_b(SourceFile:147)
at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:227)`

-- Affected level --
Details:
Level name: I was born at the age of 4
All players: 1 total; [EntityPlayerMP['TimelessInsanity'/117, l='I was born at the age of 4', x=-288.06, y=97.11, z=-952.90]]
Chunk stats: ServerChunkCache: 601 Drop: 0
Level seed: 1525648484990164514
Level generator: ID 00 - default, ver 1. Features enabled: true
Level generator options: 
Level spawn location: World: (172,64,252), Chunk: (at 12,4,12 in 10,15; contains blocks 160,0,240 to 175,255,255), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 33678 game time, 33678 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 123008 (now: false), thunder time: 5007 (now: true)
Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:756)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:185)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
at java.lang.Thread.run(Thread.java:745)

LOG

[Server thread/ERROR]: Encountered an exception while constructing entity 'minecraft:horse'
java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_51]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_51]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_51]
at java.lang.reflect.Constructor.newInstance(Constructor.java:422) ~[?:1.8.0_51]
at net.minecraftforge.fml.common.registry.EntityEntryBuilder$ConstructorFactory.apply(EntityEntryBuilder.java:305) [EntityEntryBuilder$ConstructorFactory.class:?]
at net.minecraftforge.fml.common.registry.EntityEntryBuilder$ConstructorFactory.apply(EntityEntryBuilder.java:291) [EntityEntryBuilder$ConstructorFactory.class:?]
at net.minecraftforge.fml.common.registry.EntityEntry.newInstance(EntityEntry.java:68) [EntityEntry.class:?]
at net.minecraft.entity.EntityList.func_188429_b(EntityList.java:204) [vi.class:?]
at net.minecraft.item.ItemMonsterPlacer.func_77840_a(ItemMonsterPlacer.java:229) [ajv.class:?]
at net.minecraft.item.ItemMonsterPlacer.func_180614_a(ItemMonsterPlacer.java:95) [ajv.class:?]
at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:889) [ForgeHooks.class:14.23.5.2859]
at net.minecraft.item.ItemStack.func_179546_a(ItemStack.java:186) [aip.class:?]
at net.minecraft.server.management.PlayerInteractionManager.func_187251_a(PlayerInteractionManager.java:481) [or.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_184337_a(NetHandlerPlayServer.java:741) [pa.class:?]
at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.func_148833_a(SourceFile:55) [ma.class:?]
at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.func_148833_a(SourceFile:11) [ma.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [hv$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_51]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_51]
at net.minecraft.util.Util.func_181617_a(SourceFile:46) [h.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:723) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:185) [chd.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51]
Caused by: java.lang.NullPointerException
at net.smileycorp.hordes.common.ai.EntityAIHorseFlee.<init>(EntityAIHorseFlee.java:9) ~[EntityAIHorseFlee.class:1.12.2-1.5.3a]
at net.minecraft.entity.passive.AbstractHorse.handler$zck000$initEntityAI(AbstractHorse.java:1346) ~[aao.class:?]
at net.minecraft.entity.passive.AbstractHorse.func_184651_r(AbstractHorse.java:109) ~[aao.class:?]
at net.minecraft.entity.EntityLiving.<init>(EntityLiving.java:104) ~[vq.class:?]
at net.minecraft.entity.EntityCreature.<init>(SourceFile:21) ~[vx.class:?]
at net.minecraft.entity.EntityAgeable.<init>(EntityAgeable.java:27) ~[vd.class:?]
at net.minecraft.entity.passive.EntityAnimal.<init>(SourceFile:30) ~[zv.class:?]
at net.minecraft.entity.passive.AbstractHorse.<init>(AbstractHorse.java:93) ~[aao.class:?]
at net.minecraft.entity.passive.EntityHorse.<init>(EntityHorse.java:47) ~[aaq.class:?]`

Expected Behaviour

The game should run normally; Horses should be able to be spawned with their spawn egg, /summon command, monster spawner, and natural spawning. In Hordes if my infection configuration was enabled and it were the base mobs, then zombie and skeleton variants should spawn via the horde or infection.

Actual Behaviour

Upon coming across a biome that naturally spawns horses, the game will crash with the error:

Caused by: java.lang.NullPointerException
at net.smileycorp.hordes.common.ai.EntityAIHorseFlee.<init>(EntityAIHorseFlee.java:9) ~[EntityAIHorseFlee.class:1.12.2-1.5.3a]
at net.minecraft.entity.passive.AbstractHorse.handler$zck000$initEntityAI(AbstractHorse.java:1346) ~[aao.class:?]
at net.minecraft.entity.passive.AbstractHorse.func_184651_r(AbstractHorse.java:109) ~[aao.class:?]
at net.minecraft.entity.EntityLiving.<init>(EntityLiving.java:104) ~[vq.class:?]
at net.minecraft.entity.EntityCreature.<init>(SourceFile:21) ~[vx.class:?]
at net.minecraft.entity.EntityAgeable.<init>(EntityAgeable.java:27) ~[vd.class:?]
at net.minecraft.entity.passive.EntityAnimal.<init>(SourceFile:30) ~[zv.class:?]
at net.minecraft.entity.passive.AbstractHorse.<init>(AbstractHorse.java:93) ~[aao.class:?]
at net.minecraft.entity.passive.EntityHorse.<init>(EntityHorse.java:47) ~[aaq.class:?]

Minecraft Launcher with Error Code -1
Crash log stating it was a "Ticking World" error.

Upon attempting to spawn a horse with a spawn egg, /summon command, and monster spawner, the log is spammed with:
[Server thread/ERROR]: Encountered an exception while constructing entity 'minecraft:horse'

Replication

Install the Hordes mod and attempt to spawn a horse or come across a plains biome. You will either not spawn the horse or crash the game.

Only Known Solution

Remove the Hordes mod.