OpenBlocks

OpenBlocks

56M Downloads

openblocks.common.TrophyHandler$Trophy.createEntity looping until OutOfMemoryError crashes server

access-ible opened this issue ยท 4 comments

commented

OpenBlocks-1.7.10-1.3
OpenModsLib-1.7.10-06

[16:50:28] [Server thread/WARN] [/]: java.lang.reflect.InvocationTargetException
[16:50:28] [Server thread/WARN] [/]:    at sun.reflect.GeneratedConstructorAccessor230.newInstance(Unknown So
rce)
[16:50:28] [Server thread/WARN] [/]:    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delegati
gConstructorAccessorImpl.java:45)
[16:50:28] [Server thread/WARN] [/]:    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
[16:50:28] [Server thread/WARN] [/]:    at net.minecraft.entity.EntityList.func_75620_a(EntityList.java:121)
[16:50:28] [Server thread/WARN] [/]:    at openblocks.common.TrophyHandler$Trophy.createEntity(TrophyHandler.
ava:178)
[16:50:28] [Server thread/WARN] [/]:    at openblocks.common.TrophyHandler.getEntityFromCache(TrophyHandler.j
...skipping...
va:39)
[16:50:29] [Server thread/WARN] [/]:    at openblocks.common.TrophyHandler$Trophy.getEntity(TrophyHandler.jav
:141)
[16:50:29] [Server thread/WARN] [/]:    at openblocks.common.TrophyHandler$Trophy.playSound(TrophyHandler.jav
:154)
[16:50:29] [Server thread/WARN] [/]:    at openblocks.common.tileentity.TileEntityTrophy.onBlockActivated(Til
EntityTrophy.java:55)
[16:50:29] [Server thread/WARN] [/]:    at openmods.block.OpenBlock.func_149727_a(OpenBlock.java:281)
[16:50:29] [Server thread/WARN] [/]:    at thermalexpansion.block.device.TileActivator.simRightClick2(TileAct
vator.java:346)
[16:50:29] [Server thread/WARN] [/]:    at thermalexpansion.block.device.TileActivator.simRightClick(TileActi
ator.java:309)
[16:50:29] [Server thread/WARN] [/]:    at thermalexpansion.block.device.TileActivator.doDeploy(TileActivator
java:155)
[16:50:29] [Server thread/WARN] [/]:    at thermalexpansion.block.device.TileActivator.func_145845_h(TileActi
ator.java:130)
[16:50:29] [Server thread/WARN] [/]:    at net.minecraft.world.World.func_72939_s(World.java:2491)
[16:50:29] [Server thread/WARN] [/]:    at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:669)
[16:50:29] [Server thread/WARN] [/]:    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.
ava:943)
[16:50:29] [Server thread/WARN] [/]:    at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(Dedica
edServer.java:423)
[16:50:29] [Server thread/WARN] [/]:    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.
ava:798)
[16:50:29] [Server thread/WARN] [/]:    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:658)
[16:50:29] [Server thread/WARN] [/]:    at java.lang.Thread.run(Thread.java:745)
[16:50:29] [Server thread/WARN] [/]: Caused by: java.lang.NullPointerException
[16:50:29] [Server thread/WARN] [/]:    at net.minecraft.entity.monster.EntityZombie.<init>(EntityZombie.java
76)
[16:50:29] [Server thread/WARN] [/]:    at net.minecraft.entity.monster.EntityPigZombie.<init>(EntityPigZombi
.java:31)
[16:50:29] [Server thread/WARN] [/]:    ... 21 more
commented

Simply right clicking gives the error: http://pastebin.com/a9zyv2h4

This is on a Cauldron server.

commented

Hmm, no OutOfMemoryError in there, just crash on line added by Spigot:

 if (p_i1745_1_.getSpigotConfig().zombieAggressiveTowardsVillager)
    {
      this.field_70714_bg.func_75776_a(4, new EntityAIAttackOnCollide(this, EntityVillager.class, 1.0D, true));
    }

Since trophies depend on ability to create entity with null world, only thing I can do is wrap that in try {} catch {}.

commented

I have further information to add.
This wasn't a loop as I originally thought. A machine is clicking on the statue over and over.