Pokécube Resources

Pokécube Resources

913 Downloads

Ticking Entity 1.9.4 Server Crash

doctorkreger opened this issue · 4 comments

commented

Issue Description:

---- Minecraft Crash Report ----

WARNING: coremods are present:
AppleCore (AppleCore-mc1.9.4-1.3.4.jar)
NWRTweak (redstonepaste-mc1.9.4-1.7.4.jar)
EnderCorePlugin (EnderCore-1.9.4-0.4.0.26-alpha.jar)
Contact their authors BEFORE contacting forge

// I'm sorry, Dave.

Time: 6/30/16 9:46 PM
Description: Ticking entity

java.lang.NullPointerException: Ticking entity
at net.minecraft.entity.EntityLiving.func_70625_a(EntityLiving.java:809)
at pokecube.adventures.ai.trainers.EntityAITrainer.func_75246_d(EntityAITrainer.java:198)
at net.minecraft.entity.ai.EntityAITasks.func_75774_a(SourceFile:129)
at net.minecraft.entity.EntityLiving.func_70626_be(EntityLiving.java:766)
at net.minecraft.entity.EntityLivingBase.func_70636_d(EntityLivingBase.java:2146)
at net.minecraft.entity.EntityLiving.func_70636_d(EntityLiving.java:570)
at net.minecraft.entity.EntityAgeable.func_70636_d(EntityAgeable.java:155)
at pokecube.adventures.entity.helper.EntityHasPokemobs.func_70636_d(EntityHasPokemobs.java:106)
at pokecube.adventures.entity.trainers.EntityTrainer.func_70636_d(EntityTrainer.java:343)
at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:1976)
at net.minecraft.entity.EntityLiving.func_70071_h_(EntityLiving.java:299)
at pokecube.adventures.entity.trainers.EntityTrainer.func_70071_h_(EntityTrainer.java:405)
at net.minecraft.world.World.func_72866_a(World.java:1951)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:837)
at net.minecraft.world.World.func_72870_g(World.java:1920)
at net.minecraft.world.World.func_72939_s(World.java:1743)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:618)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:707)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:385)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:611)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:469)
at java.lang.Thread.run(Unknown Source)

A detailed walkthrough of the error, its code path and all known details is as follows:

-- Head --
Thread: Server thread
Stacktrace:
at net.minecraft.entity.EntityLiving.func_70625_a(EntityLiving.java:809)
at pokecube.adventures.ai.trainers.EntityAITrainer.func_75246_d(EntityAITrainer.java:198)
at net.minecraft.entity.ai.EntityAITasks.func_75774_a(SourceFile:129)
at net.minecraft.entity.EntityLiving.func_70626_be(EntityLiving.java:766)
at net.minecraft.entity.EntityLivingBase.func_70636_d(EntityLivingBase.java:2146)
at net.minecraft.entity.EntityLiving.func_70636_d(EntityLiving.java:570)
at net.minecraft.entity.EntityAgeable.func_70636_d(EntityAgeable.java:155)
at pokecube.adventures.entity.helper.EntityHasPokemobs.func_70636_d(EntityHasPokemobs.java:106)
at pokecube.adventures.entity.trainers.EntityTrainer.func_70636_d(EntityTrainer.java:343)
at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:1976)
at net.minecraft.entity.EntityLiving.func_70071_h_(EntityLiving.java:299)
at pokecube.adventures.entity.trainers.EntityTrainer.func_70071_h_(EntityTrainer.java:405)
at net.minecraft.world.World.func_72866_a(World.java:1951)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:837)
at net.minecraft.world.World.func_72870_g(World.java:1920)

-- Entity being ticked --
Details:
Entity Type: pokecube_adventures.pokecube:trainer (pokecube.adventures.entity.trainers.EntityTrainer)
Entity ID: 25899
Entity Name: Bird Keeper Jason
Entity's Exact location: 636.50, 90.00, 29.50
Entity's Block location: World: (636,90,29), Chunk: (at 12,5,13 in 39,1; contains blocks 624,0,16 to 639,255,31), Region: (1,0; contains chunks 32,0 to 63,31, blocks 512,0,0 to 1023,255,511)
Entity's Momentum: 0.00, -0.08, 0.00
Entity's Passengers: []
Entity's Vehicle: ERROR NullPointerException: null
Stacktrace:
at net.minecraft.world.World.func_72939_s(World.java:1743)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:618)

-- Affected level --
Details:
Level name: world
All players: 3 total; [EntityPlayerMP['jacobwk'/221, l='world', x=195.41, y=78.00, z=282.88], EntityPlayerMP['LadySinger'/635, l='world', x=278.05, y=54.50, z=375.39], EntityPlayerMP['RedDoomYak'/255, l='world', x=638.54, y=90.00, z=24.83]]
Chunk stats: ServerChunkCache: 2391 Drop: 0
Level seed: 1977900120
Level generator: ID 06 - BIOMESOP, ver 0. Features enabled: true
Level generator options:
Level spawn location: World: (196,82,228), Chunk: (at 4,5,4 in 12,14; contains blocks 192,0,224 to 207,255,239), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 11742102 game time, 105319 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 34307 (now: false), thunder time: 28127 (now: false)
Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
Stacktrace:
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:707)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:385)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:611)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:469)
at java.lang.Thread.run(Unknown Source)

-- System Details --
Details:
Minecraft Version: 1.9.4
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.8.0_91, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 3009608760 bytes (2870 MB) / 4160749568 bytes (3968 MB) up to 4160749568 bytes (3968 MB)
JVM Flags: 2 total; -Xmx4096M -Xms4096M
IntCache: cache: 0, tcache: 0, allocated: 3, tallocated: 104
FML: MCP 9.28 Powered by Forge 12.17.0.1976 60 mods loaded, 60 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAAAA mcp{9.19} Minecraft Coder Pack
UCHIJAAAA FML{8.0.99.99} Forge Mod Loader
UCHIJAAAA Forge{12.17.0.1976} Minecraft Forge
UCHIJAAAA actuallyadditions{1.9.4-r45} Actually Additions
UCHIJAAAA alt{1.05} Additional Loot Tables
UCHIJAAAA adobeblocks{6.0.0.13} Adobe Blocks 2
UCHIJAAAA adobeblocksvc{3.2-fork} Adobe Blocks Version Checker
UCHIJAAAA JEI{3.6.7.216} Just Enough Items
UCHIJAAAA AppleCore{1.3.4} AppleCore
UCHIJAAAA basemetals{2.3.2} Base Metals
UCHIJAAAA Baubles{1.2.1.0} [Baubles](Baubles-1.9.4-1.2.1.0 %281%29.jar)
UCHIJAAAA BiomesOPlenty{4.1.0.2033} Biomes O' Plenty
UCHIJAAAA BloodMagic{1.9.4-2.0.1-40} Blood Magic: Alchemical Wizardry
UCHIJAAAA Botania{r1.8-312} Botania
UCHIJAAAA Chameleon{1.9-2.1.4} Chameleon
UCHIJAAAA claycraft{2.0} [Claycraft](Claycraftmod v2.0 - MC1.9.4 Forge.jar)
UCHIJAAAA nt{1.0} Climbing Claw
UCHIJAAAA cookingforblockheads{3.1.26} Cooking for Blockheads
UCHIJAAAA MineTweaker3{3.0.9} MineTweaker 3
UCHIJAAAA endercore{1.9.4-0.4.0.26-alpha} EnderCore
UCHIJAAAA EnderIO{1.9.4-3.0.0.46_alpha} Ender IO
UCHIJAAAA IronChest{6.0.146.788} Iron Chest
UCHIJAAAA moreanvils{6.0.1.10} More Anvils
UCHIJAAAA xreliquary{1.9.4-1.3.2.390} Reliquary
UCHIJAAAA fluidity{6.0.0.6} Fluidity
UCHIJAAAA forestry{5.0.23.170} Forestry
UCHIJAAAA substratum{1.5.0.1} Substratum
UCHIJAAAA foundry{2.0.0.0-beta5} Foundry
UCHIJAAAA fyrestone{0.6.4.1} Fyrestone
UCHIJAAAA grapplemod{1.9.4-v7} Grappling hook mod
UCHIJAAAA hempfarmer{1.9.4-1968-1.51} HempFarmer
UCHIJAAAA hopperducts{1.4.7} [Hopper Ducts](hopperducts-mc1.9.4-1.4.7 %281%29.jar)
UCHIJAAAA inventorysorter{0.9.1+41} Simple Inventory sorting
UCHIJAAAA mantle{1.9.4-0.10.2.jenkins149} Mantle
UCHIJAAAA modernmetals{0.11.0} Modern Metals
UCHIJAAAA moreanvilsvc{3.2} More Anvils Version Checker
UCHIJAAAA yurtmod{5.01} Nomadic Tents
UCHIJAAAA orespawn{1.0.3} Ore Spawn
UCHIJAAAA harvestcraft{1.9.4-pre} [Pam's HarvestCraft](Pam's HarvestCraft 1.9.4c.jar)
UCHIJAAAA thutcore{3.1.6} ThutCore
UCHIJAAAA NBTEditpqb{1.8.9-1.0} [In-game NBTEdit - Pokecube Edition](Pokecube Core-3.4.5.jar)
UCHIJAAAA pokecube{3.4.5} [Pokécube Core](Pokecube Core-3.4.5.jar)
UCHIJAAAA pokecube_ml{0.1.0} [Pokecube Model Loader](Pokecube Core-3.4.5.jar)
UCHIJAAAA pokecube_mobs{2.1.4} [Pokécube Mobs](Pokecube Mobs-2.1.4.jar)
UCHIJAAAA pokecube_adventures{3.4.6} [Pokécube Revival](Pokecube Revival-3.4.6.jar)
UCHIJAAAA pokecube_compat{1.0} [Pokecube Compat](Pokecube Revival-3.4.6.jar)
UCHIJAAAA redstonepaste{1.7.4} Redstone Paste
UCHIJAAAA Roguelike{1.5.3} Roguelike Dungeons
UCHIJAAAA roots{0.007} Roots
UCHIJAAAA AS_Ruins{16.1} Ruins Spawning System
UCHIJAAAA SaltMod{1.8.c} Salty Mod
UCHIJAAAA simplycaterpillar{6.0.1.19} Simply Caterpillar
UCHIJAAAA slabcraftmod{5.0} [Slabcraft](Slabcraftmod v5.0 - MC1.9.4 Forge.jar)
UCHIJAAAA staircraftmod{5.0} [Staircraft](Staircraftmod v5.0 - MC1.9.4 Forge.jar)
UCHIJAAAA storagenetwork{1.12.0} Storage Network
UCHIJAAAA tconstruct{1.9.4-2.3.3.jenkins263} Tinkers' Construct
UCHIJAAAA thuttech{3.0.3} Thut's Tech
UCHIJAAAA torcharrowsmod{1.9.4-2} TorchArrowsMod
UCHIJAAAA AS_UpdateCheck{1.1.7} AtomicStryker Update Check Mod
UCHIJAAAA wallcraftmod{5.0} [Wallcraft](Wallcraftmod v5.0 - MC1.9.4 Forge.jar)
Loaded coremods (and transformers):
AppleCore (AppleCore-mc1.9.4-1.3.4.jar)
squeek.applecore.asm.TransformerModuleHandler
NWRTweak (redstonepaste-mc1.9.4-1.7.4.jar)
net.fybertech.nwr.NWRTransformer
EnderCorePlugin (EnderCore-1.9.4-0.4.0.26-alpha.jar)
com.enderio.core.common.transform.EnderCoreTransformer
Pulsar/tconstruct loaded Pulses:
- TinkerCommons (Enabled/Forced)
- TinkerWorld (Enabled/Not Forced)
- TinkerTools (Enabled/Not Forced)
- TinkerSmeltery (Enabled/Not Forced)
- TinkerGadgets (Enabled/Not Forced)
- TinkerOredict (Enabled/Forced)
- TinkerIntegration (Enabled/Forced)
- TinkerFluids (Enabled/Forced)
- TinkerMaterials (Enabled/Forced)

EnderIO: No known problems detected.
Profiler Position: N/A (disabled)
Player Count: 3 / 20; [EntityPlayerMP['jacobwk'/221, l='world', x=195.41, y=78.00, z=282.88], EntityPlayerMP['RedDoomYak'/255, l='world', x=638.54, y=90.00, z=24.83], EntityPlayerMP['LadySinger'/635, l='world', x=278.05, y=54.50, z=375.39]]
Is Modded: Definitely; Server brand changed to 'fml,forge'
Type: Dedicated Server (map_server.txt)

What happens:

After a victorious trainer battle, player attacked the trainer with his monster which immediately crashed the server. Reliably reproduceable. Maybe connected to the auto-defend feature of trainers when attacked?

What you expected to happen:

Different handling of the event (error message of invalid target/ engagement if valid) without crashing server.

Steps to reproduce:

1.Battle Trainer
2.Win
3.Use command key to attack trainer with active monster.
...


Affected Versions (Do not use "latest"):

  • Pokecube Core:3.4.5
  • Pokecube Revival (if applicable):3.4.6
  • Pokecube Mobs (if applicable):2.1.4
  • Minecraft: 1.9.4
  • Forge:1.9.4-x.1976
commented

I will have this fixed shortly, currently working on a backend overhaul of some packet code to deal with some pc, bag and trading table issues.

Then I will work on fixing this.

Then I will try to fix #87, the fix for it will be in ThutCore

commented

I'll be on the lookout.

commented

ok, I will be trying to upload the fixes shortly.

commented

This should be fixed in Pokecube Revival 3.4.7/4.1.7 which I just uploaded to curse.