Ancient Warfare 2

Ancient Warfare 2

6M Downloads

Crash when upkeep point gets remove from world.

crymates opened this issue ยท 6 comments

commented

Environment

Forge: forge-1.12.2-14.23.1.2587-universal
Sponge: spongeforge-1.12.2-2555-7.1.0-BETA-2831
AW2: ancientwarfare-1.12.2-2.5.54

Bug

Actually when I spawned e.g. an Lumberjack, my console gets spammed. It isn't shown what the worker needs to work (just saw in an video that they eat pork), after I fed him he just moves a bit or stand still and do nothing.
By the way there is nothing shown above the heads of the NPCs.

[23:20:35] [Server thread/ERROR] [Sponge]: /************************************************************************************************************************/
[23:20:35] [Server thread/ERROR] [Sponge]: /*                                        Exception occurred during a PhaseState                                        */
[23:20:35] [Server thread/ERROR] [Sponge]: /************************************************************************************************************************/
[23:20:35] [Server thread/ERROR] [Sponge]: /* Sponge's tracking system is very dependent on NOT throwing exceptions                                                */
[23:20:35] [Server thread/ERROR] [Sponge]: /* randomly,sometimes it is inevitable. Unfortunately, an exception being printed                                       */
[23:20:35] [Server thread/ERROR] [Sponge]: /* now canbe very spammy, and as a result, cause logs to reach several hundred                                          */
[23:20:35] [Server thread/ERROR] [Sponge]: /* megabytesin size. Since there is an exception being thrown, it is advisable to                                       */
[23:20:35] [Server thread/ERROR] [Sponge]: /* report thislog to Sponge on GitHub.                                                                                  */
[23:20:35] [Server thread/ERROR] [Sponge]: /************************************************************************************************************************/
[23:20:35] [Server thread/ERROR] [Sponge]: /* The PhaseState having an exception: EntityTickPhase                                                                  */
[23:20:35] [Server thread/ERROR] [Sponge]: /* The PhaseContext:                                                                                                    */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     - Owner: EntityPlayerMP['itzme'/464, l='world', x=123.02, y=74.00, z=154.34]                           */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     - Notifier: EntityPlayerMP['itzme'/464, l='world', x=123.02, y=74.00, z=154.34]                        */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     - Source: NpcWorker['Lumberjack'/465, l='world', x=122.50, y=73.00, z=151.50]                                    */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     - CapturedBlocks: CapturedBlocksSupplier{Captured=0}                                                             */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     - BlockItemDrops: BlockItemDropsSupplier{Captured=0}                                                             */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     - BlockItemEntityDrops: BlockItemEntityDropsSupplier{Captured=0}                                                 */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     - CapturedItems: CapturedItemsSupplier{Captured=0}                                                               */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     - CapturedEntities: CapturedEntitiesSupplier{Captured=0}                                                         */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     - CapturedItemStack: CapturedItemStackSupplier{Captured=0}                                                       */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     - EntityItemDrops: null                                                                                          */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     - EntityItemEntityDrops: null                                                                                    */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     - BlockEntitySpawns: CapturedBlockEntitySpawnSupplier{Captured=0}                                                */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     - CapturedBlockPosition: null                                                                                    */
[23:20:35] [Server thread/ERROR] [Sponge]: /* org.spongepowered.asm.util.PrettyPrinter@324f59f1                                                                    */
[23:20:35] [Server thread/ERROR] [Sponge]: /************************************************************************************************************************/
[23:20:35] [Server thread/ERROR] [Sponge]: /* StackTrace:                                                                                                          */
[23:20:35] [Server thread/ERROR] [Sponge]: /* java.lang.RuntimeException: Unknown Exception During Phase                                                           */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     org.spongepowered.common.event.tracking.PhaseTracker.printExceptionFromPhase(PhaseTracker.java:421)              */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     org.spongepowered.common.event.tracking.TrackingUtil.tickEntity(TrackingUtil.java:168)                           */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.WorldServer.redirect$onCallEntityUpdate$zle000(WorldServer.java:2855)                        */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.World.func_72866_a(World.java:4138)                                                          */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:831)                                               */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.World.func_72870_g(World.java:1952)                                                          */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.World.func_72939_s(World.java:6557)                                                          */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:2219)                                              */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:765)                                      */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:396)                            */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:666)                                      */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.server.MinecraftServer.run(MinecraftServer.java:524)                                               */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     java.lang.Thread.run(Thread.java:748)                                                                            */
[23:20:35] [Server thread/ERROR] [Sponge]: /* java.lang.NullPointerException: null                                                                                 */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.shadowmage.ancientwarfare.npc.ai.owned.NpcAIPlayerOwnedGetFood.tryUpkeep(NpcAIPlayerOwnedGetFood.java:71)    */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.shadowmage.ancientwarfare.npc.ai.owned.NpcAIPlayerOwnedGetFood.func_75246_d(NpcAIPlayerOwnedGetFood.java:56) */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.ai.EntityAITasks.func_75774_a(SourceFile:129)                                               */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.EntityLiving.func_70626_be(EntityLiving.java:763)                                           */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.EntityLivingBase.func_70636_d(EntityLivingBase.java:2350)                                   */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.EntityLiving.func_70636_d(EntityLiving.java:577)                                            */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.shadowmage.ancientwarfare.npc.entity.NpcPlayerOwned.func_70636_d(NpcPlayerOwned.java:316)                    */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:2170)                                  */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.EntityLiving.func_70071_h_(EntityLiving.java:295)                                           */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.shadowmage.ancientwarfare.npc.entity.NpcBase.func_70071_h_(NpcBase.java:794)                                 */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     org.spongepowered.common.event.tracking.TrackingUtil.tickEntity(TrackingUtil.java:166)                           */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.WorldServer.redirect$onCallEntityUpdate$zle000(WorldServer.java:2855)                        */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.World.func_72866_a(World.java:4138)                                                          */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:831)                                               */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.World.func_72870_g(World.java:1952)                                                          */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.World.func_72939_s(World.java:6557)                                                          */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:2219)                                              */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:765)                                      */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:396)                            */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:666)                                      */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     net.minecraft.server.MinecraftServer.run(MinecraftServer.java:524)                                               */
[23:20:35] [Server thread/ERROR] [Sponge]: /*     java.lang.Thread.run(Thread.java:748)                                                                            */
[23:20:35] [Server thread/ERROR] [Sponge]: /*  Phases Remaining:                                                                                                   */
[23:20:35] [Server thread/ERROR] [Sponge]: /*                                                                                                                      */
[23:20:35] [Server thread/ERROR] [Sponge]: /* Minecraft : 1.12.2                                                                                                   */
[23:20:35] [Server thread/ERROR] [Sponge]: /* SpongeAPI : 7.1.0-SNAPSHOT-eebceb6                                                                                   */
[23:20:35] [Server thread/ERROR] [Sponge]: /* SpongeForge : 1.12.2-2555-7.1.0-BETA-2831                                                                            */
[23:20:35] [Server thread/ERROR] [Sponge]: /* Minecraft Forge : 14.23.1.2587                                                                                       */
[23:20:35] [Server thread/ERROR] [Sponge]: /************************************************************************************************************************/
> /************************************************************************************************************************/
/*                                        Exception occurred during a PhaseState                                        */
/************************************************************************************************************************/
/* Sponge's tracking system is very dependent on NOT throwing exceptions                                                */
/* randomly,sometimes it is inevitable. Unfortunately, an exception being printed                                       */
/* now canbe very spammy, and as a result, cause logs to reach several hundred                                          */
/* megabytesin size. Since there is an exception being thrown, it is advisable to                                       */
/* report thislog to Sponge on GitHub.                                                                                  */
/************************************************************************************************************************/
/* The PhaseState having an exception: EntityTickPhase                                                                  */
/* The PhaseContext:                                                                                                    */
/*     - Owner: EntityPlayerMP['itzme'/464, l='world', x=123.02, y=74.00, z=154.34]                           */
/*     - Notifier: EntityPlayerMP['itzme'/464, l='world', x=123.02, y=74.00, z=154.34]                        */
/*     - Source: NpcWorker['Lumberjack'/465, l='world', x=122.50, y=73.00, z=151.50]                                    */
/*     - CapturedBlocks: CapturedBlocksSupplier{Captured=0}                                                             */
/*     - BlockItemDrops: BlockItemDropsSupplier{Captured=0}                                                             */
/*     - BlockItemEntityDrops: BlockItemEntityDropsSupplier{Captured=0}                                                 */
/*     - CapturedItems: CapturedItemsSupplier{Captured=0}                                                               */
/*     - CapturedEntities: CapturedEntitiesSupplier{Captured=0}                                                         */
/*     - CapturedItemStack: CapturedItemStackSupplier{Captured=0}                                                       */
/*     - EntityItemDrops: null                                                                                          */
/*     - EntityItemEntityDrops: null                                                                                    */
/*     - BlockEntitySpawns: CapturedBlockEntitySpawnSupplier{Captured=0}                                                */
/*     - CapturedBlockPosition: null                                                                                    */
/* org.spongepowered.asm.util.PrettyPrinter@324f59f1                                                                    */
/************************************************************************************************************************/
/* StackTrace:                                                                                                          */
/* java.lang.RuntimeException: Unknown Exception During Phase                                                           */
/*     org.spongepowered.common.event.tracking.PhaseTracker.printExceptionFromPhase(PhaseTracker.java:421)              */
/*     org.spongepowered.common.event.tracking.TrackingUtil.tickEntity(TrackingUtil.java:168)                           */
/*     net.minecraft.world.WorldServer.redirect$onCallEntityUpdate$zle000(WorldServer.java:2855)                        */
/*     net.minecraft.world.World.func_72866_a(World.java:4138)                                                          */
/*     net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:831)                                               */
/*     net.minecraft.world.World.func_72870_g(World.java:1952)                                                          */
/*     net.minecraft.world.World.func_72939_s(World.java:6557)                                                          */
/*     net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:2219)                                              */
/*     net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:765)                                      */
/*     net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:396)                            */
/*     net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:666)                                      */
/*     net.minecraft.server.MinecraftServer.run(MinecraftServer.java:524)                                               */
/*     java.lang.Thread.run(Thread.java:748)                                                                            */
/* java.lang.NullPointerException: null                                                                                 */
/*     net.shadowmage.ancientwarfare.npc.ai.owned.NpcAIPlayerOwnedGetFood.tryUpkeep(NpcAIPlayerOwnedGetFood.java:71)    */
/*     net.shadowmage.ancientwarfare.npc.ai.owned.NpcAIPlayerOwnedGetFood.func_75246_d(NpcAIPlayerOwnedGetFood.java:56) */
/*     net.minecraft.entity.ai.EntityAITasks.func_75774_a(SourceFile:129)                                               */
/*     net.minecraft.entity.EntityLiving.func_70626_be(EntityLiving.java:763)                                           */
/*     net.minecraft.entity.EntityLivingBase.func_70636_d(EntityLivingBase.java:2350)                                   */
/*     net.minecraft.entity.EntityLiving.func_70636_d(EntityLiving.java:577)                                            */
/*     net.shadowmage.ancientwarfare.npc.entity.NpcPlayerOwned.func_70636_d(NpcPlayerOwned.java:316)                    */
/*     net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:2170)                                  */
/*     net.minecraft.entity.EntityLiving.func_70071_h_(EntityLiving.java:295)                                           */
/*     net.shadowmage.ancientwarfare.npc.entity.NpcBase.func_70071_h_(NpcBase.java:794)                                 */
/*     org.spongepowered.common.event.tracking.TrackingUtil.tickEntity(TrackingUtil.java:166)                           */
/*     net.minecraft.world.WorldServer.redirect$onCallEntityUpdate$zle000(WorldServer.java:2855)                        */
/*     net.minecraft.world.World.func_72866_a(World.java:4138)                                                          */
/*     net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:831)                                               */
/*     net.minecraft.world.World.func_72870_g(World.java:1952)                                                          */
/*     net.minecraft.world.World.func_72939_s(World.java:6557)                                                          */
/*     net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:2219)                                              */
/*     net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:765)                                      */
/*     net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:396)                            */
/*     net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:666)                                      */
/*     net.minecraft.server.MinecraftServer.run(MinecraftServer.java:524)                                               */
/*     java.lang.Thread.run(Thread.java:748)                                                                            */
/*  Phases Remaining:                                                                                                   */
/*                                                                                                                      */
/* Minecraft : 1.12.2                                                                                                   */
/* SpongeAPI : 7.1.0-SNAPSHOT-eebceb6                                                                                   */
/* SpongeForge : 1.12.2-2555-7.1.0-BETA-2831                                                                            */
/* Minecraft Forge : 14.23.1.2587                                                                                       */
/************************************************************************************************************************/

commented

With the upkeep order by the command baton he placed some tree seeds, but stoped then.
Btw the Town Hall despawns every X minutes. There is food in the TH.

commented

So based on what I can see the exception above is related to town hall (or whatever other place that's defined as upkeep point) disappearing. Under normal conditions that would be player just removing the block so I have added a check to make sure this exception doesn't happen. However I am not sure how your town hall could be disappearing every x minutes, I see nothing like that and don't even know what could be causing that.

Also tried lumberjacks and they seem to work correctly. Please provide more info on how to recreate the lumberjack issue or the townhall disappearing and put that in a separate issue so that I can close this issue as that's separate from those two.

commented

It was my fault related to the disappering of the Town Hall :D I developed an decaying world and the despawn time was set to 1 minute xD OMG I am sorry :) I will have an eye on the lumberjack again and give you an answer.

commented

Well,
I got an Town Hall with pork in it, an Lumberjack and an Farmer, also an Tree Farm and Wheaten Farm. The farmer for wheaten also got an manual order to go to the field, but both just walk one or two blocks from there current position. Do I forgot something?

commented

The Lumberjack started his work after around 5-10 minutes. Does this is the normal way? :)

commented

The Farmer also started his work within the next day. It seems like it just needs a bit time :) Thx for your help anyway!