Silently catching entity tracking error что это

Hello all! I have a fun one here... I'll try to provide as much information as possible... # Problem: ## Server console is being spammed by this error: http://pastebin.com/9kMWU5KG [server thread/ERROR]: "Silently" catching entity tracking error. net.minecraft.util.ReportedException: Adding entit...

This just literally saved me a ton of time too. Although I also had another issue with wither skeletons…

[22:16:43] [server thread/INFO]: [J0nis: Removed 19634 entities. (§c1§fx§eSkeleton§f, §c19633§fx§ewitherSkeleton§f)]

Put false for: replacewitherskeletons and got rid of this:

[22:38:35] [server thread/ERROR]: «Silently» catching entity tracking error.

net.minecraft.util.ReportedException: Adding entity to track

at net.minecraft.entity.EntityTracker.func_72785_a(EntityTracker.java:230) [mn.class:?]

at cpw.mods.fml.common.registry.EntityRegistry.tryTrackingEntity(EntityRegistry.java:364) [EntityRegistry.class:?]

at net.minecraft.entity.EntityTracker.func_72786_a(EntityTracker.java:61) [mn.class:?]

at net.minecraft.world.WorldManager.func_72703_a(SourceFile:31) [mp.class:?]

at net.minecraft.world.World.func_72923_a(World.java:1347) [ahb.class:?]

at net.minecraft.world.WorldServer.func_72923_a(WorldServer.java:844) [mt.class:?]

at net.minecraft.world.World.func_72868_a(World.java:3304) [ahb.class:?]

at net.minecraft.world.chunk.Chunk.func_76631_c(Chunk.java:921) [apx.class:?]

at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:46) [ChunkIOProvider.class:?]

at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:12) [ChunkIOProvider.class:?]

at net.minecraftforge.common.util.AsynchronousExecutor.skipQueue(AsynchronousExecutor.java:344) [AsynchronousExecutor.class:?]

at net.minecraftforge.common.util.AsynchronousExecutor.getSkipQueue(AsynchronousExecutor.java:302) [AsynchronousExecutor.class:?]

at net.minecraftforge.common.chunkio.ChunkIOExecutor.syncChunkLoad(ChunkIOExecutor.java:12) [ChunkIOExecutor.class:?]

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:126) [ms.class:?]

at net.minecraft.world.gen.ChunkProviderServer.func_73158_c(ChunkProviderServer.java:101) [ms.class:?]

at net.minecraft.world.gen.ChunkProviderServer.func_73154_d(ChunkProviderServer.java:199) [ms.class:?]

at net.minecraft.world.World.func_72964_e(World.java:419) [ahb.class:?]

at net.minecraft.world.World.func_147439_a(World.java:345) [ahb.class:?]

at net.minecraft.block.BlockMushroom.func_149674_a(BlockMushroom.java:36) [amc.class:?]

at net.minecraft.world.WorldServer.func_147456_g(WorldServer.java:391) [mt.class:?]

at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:183) [mt.class:?]

at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:625) [MinecraftServer.class:?]

at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:334) [lt.class:?]

at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685) [li.class:?]

Caused by: java.lang.IllegalStateException: Entity is already tracked!

at net.minecraft.entity.EntityTracker.func_72785_a(EntityTracker.java:196) ~[mn.class:?]

… 25 more

I love forums.. hah

Hi, I got this kind of errors spamming in console sometimes.

[14:03:56] [Server thread/ERROR]: "Silently" catching entity tracking error.
net.minecraft.util.ReportedException: Adding entity to track
    at net.minecraft.entity.EntityTracker.func_72785_a(EntityTracker.java:278) [mn.class:?]
    at net.minecraft.entity.EntityTracker.func_72786_a(EntityTracker.java:158) [mn.class:?]
    at net.minecraft.world.WorldManager.func_72703_a(WorldManager.java:28) [mp.class:?]
    at net.minecraft.world.World.func_72923_a(World.java:1854) [ahb.class:?]
    at net.minecraft.world.WorldServer.func_72923_a(WorldServer.java:1126) [mt.class:?]
    at net.minecraft.world.World.addEntity(World.java:1844) [ahb.class:?]
    at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:653) [ForgeHooks.class:1.7.10-1614.49]
    at net.minecraft.item.ItemStack.func_77943_a(ItemStack.java:164) [add.class:?]
    at net.minecraft.server.management.ItemInWorldManager.func_73078_a(ItemInWorldManager.java:498) [mx.class:?]
    at net.minecraft.network.NetHandlerPlayServer.func_147346_a(NetHandlerPlayServer.java:857) [nh.class:?]
    at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:60) [jo.class:?]
    at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:9) [jo.class:?]
    at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:245) [ej.class:?]
    at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:173) [nc.class:?]
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:1013) [MinecraftServer.class:?]
    at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:431) [lt.class:?]
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:831) [MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:683) [MinecraftServer.class:?]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_74]
Caused by: java.lang.IllegalStateException: Entity is already tracked!
    at net.minecraft.entity.EntityTracker.func_72785_a(EntityTracker.java:233) ~[mn.class:?]
    ... 18 more

1614.49.

Thread Status:

Not open for further replies.
  1. In one of my plugins I’m creating custom projectiles. They are bukkit projectiles though and not NMS projectiles. From NMS stuff it’s an EntityItem. They work fine when I’m launching them. They fly how I want them to and work how I want them to. However, if I try to launch one after I had already launched one but before the first one is gone, it throws this error:

    "Silently" catching entity tracking error.
    net.minecraft.server.v1_6_R1.ReportedException: Adding entity to track
          at net.minecraft.server.v1_6_R1.EntityTracker.addEntity(EntityTracker.java:116)
          at net.minecraft.server.v1_6_R1.EntityTracker.track(EntityTracker.java:57)
          at net.minecraft.server.v1_6_R1.WorldManager.a(WorldManager.java:18)
          at net.minecraft.server.v1_6_R1.World.a(World.java:957)
          at net.minecraft.server.v1_6_R1.WorldServer.a(WorldServer.java:800)
          at net.minecraft.server.v1_6_R1.World.addEntity(World.java:950)
          at com.xern.jogy34.tardis.tardis.TARDIS.fireTimeWeapon(TARDIS.java:1695)
          at com.xern.jogy34.tardis.general.TARDISMain.onCommand(TARDISMain.java:1383)
          at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
          at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189)
          at org.bukkit.craftbukkit.v1_6_R1.CraftServer.dispatchCommand(CraftServer.java:523)
          at net.minecraft.server.v1_6_R1.PlayerConnection.handleCommand(PlayerConnection.java:983)
          at net.minecraft.server.v1_6_R1.PlayerConnection.chat(PlayerConnection.java:901)
          at net.minecraft.server.v1_6_R1.PlayerConnection.a(PlayerConnection.java:858)
          at net.minecraft.server.v1_6_R1.Packet3Chat.handle(SourceFile:49)
          at net.minecraft.server.v1_6_R1.NetworkManager.b(NetworkManager.java:293)
          at net.minecraft.server.v1_6_R1.PlayerConnection.d(PlayerConnection.java:118)
          at net.minecraft.server.v1_6_R1.ServerConnection.b(SourceFile:37)
          at net.minecraft.server.v1_6_R1.DedicatedServerConnection.b(SourceFile:30)
          at net.minecraft.server.v1_6_R1.MinecraftServer.t(MinecraftServer.java:590)
          at net.minecraft.server.v1_6_R1.DedicatedServer.t(DedicatedServer.java:226)
          at net.minecraft.server.v1_6_R1.MinecraftServer.s(MinecraftServer.java:486)
          at net.minecraft.server.v1_6_R1.MinecraftServer.run(MinecraftServer.java:419)
          at net.minecraft.server.v1_6_R1.ThreadServerApplication.run(SourceFile:582)
    Caused by: java.lang.IllegalStateException: Entity is already tracked!
          at net.minecraft.server.v1_6_R1.EntityTracker.addEntity(EntityTracker.java:96)
          ... 23 more
    

    My basic code is:

    MyProjectile proj = new MyProjectile(nmsWorld);
    proj.setPosition(location); //I have switch cases that I use to determine this and the velocity
    proj.setVelocity(vector); //My own method that sets the motX, motY, motZ which I use to determine how it flys.
    nmsWorld.addEntity(proj);
    

    This works fine for my mob entities and fireworks projectile but not my EntityItem projectiles. Anyone have any thoughts as to what would be causing this? If you want to see more code just ask.

  2. What is on and around «com.xern.jogy34.tardis.tardis.TARDIS.fireTimeWeapon(TARDIS.java:1695

    By «Caused by: java.lang.IllegalStateException: Entity is already tracked!» it seems the item is automatically tracked when you create it OR you’ve already added it somewhere else to the tracker.

  3. Jogy34 Could i please see your MyProjectile class

  4. That’s where I actually add the entity to the NMS world. And it seems to think that every time I create a new one that it’s actually the same one. The error only gets thrown when I try to fire one before the previous one has died.
    The code I showed you wasn’t my actual code it was just the basic part of what I was doing. I didn’t really want to show you that because in order to show you everything I have to show you 4 different classes.
    Anyways here you go:

    Highest up class:

    1. package com.xern.jogy34.tardis.weapons;
    2. import net.minecraft.server.v1_6_R1.World;
    3. import org.bukkit.ChatColor;
    4. import org.bukkit.Material;
    5. import org.bukkit.inventory.ItemStack;
    6. import org.bukkit.inventory.meta.ItemMeta;
    7. public class MagneticBeacon extends TimeWeapon
    8. private static ItemStack me;
    9. public MagneticBeacon(World world)
    10. super(world, Material.FLINT.getId(), 0);
    11. public TimeWeaponType getType()
    12. return TimeWeaponType.MAGNETIC_BEACON;
    13. public ItemStack getWeaponStack()
    14. me = new ItemStack(Material.FLINT);
    15. ItemMeta im = me.getItemMeta();
    16. im.setDisplayName(ChatColor.DARK_RED + "BASIC MAGNETIC BEACON");
    17. WeaponHelper.addWeapon(MagneticBeacon.class, me, 50);

    All of the overriden methods are for my plugin and don’t have to do with EntityItem
    TimeWeapon:

    1. package com.xern.jogy34.tardis.weapons;
    2. import org.bukkit.Location;
    3. import org.bukkit.util.Vector;
    4. import net.minecraft.server.v1_6_R1.EntityItem;
    5. import net.minecraft.server.v1_6_R1.ItemStack;
    6. import net.minecraft.server.v1_6_R1.World;
    7. public abstract class TimeWeapon extends EntityItem implements ITimeWeapon
    8. public TimeWeapon(World world, int id, int data)
    9. this.uniqueID = UUID.randomUUID();
    10. this.setItemStack(new ItemStack(id, 1, data));
    11. public void shoot(double d0, double d1, double d2, float f, float f1)
    12. WeaponHelper.shoot(d0, d1, d2, f, f1, this);
    13. public void setVelocity(Vector v)
    14. public void setPosition(Location loc)
    15. super.setPosition(loc.getX(), loc.getY(), loc.getZ());

    ITimeWeapon (interface):

    1. package com.xern.jogy34.tardis.weapons;
    2. import org.bukkit.Location;
    3. import org.bukkit.inventory.ItemStack;
    4. import org.bukkit.util.Vector;
    5. import net.minecraft.server.v1_6_R1.IProjectile;
    6. public interface ITimeWeapon extends IProjectile
    7. public TimeWeaponType getType();
    8. public ItemStack getWeaponStack();
    9. public void setVelocity(Vector v);
    10. public void setPosition(Location loc);

    WeaponHelper class:

    1. package com.xern.jogy34.tardis.weapons;
    2. import java.util.HashMap;
    3. import org.bukkit.Bukkit;
    4. import org.bukkit.Location;
    5. import org.bukkit.craftbukkit.v1_6_R1.CraftWorld;
    6. import org.bukkit.inventory.ItemStack;
    7. import com.xern.jogy34.tardis.events.TimeWeaponHitTARDISEvent;
    8. import com.xern.jogy34.tardis.tardis.TARDIS;
    9. import net.minecraft.server.v1_6_R1.Entity;
    10. import net.minecraft.server.v1_6_R1.MathHelper;
    11. public class WeaponHelper
    12. public static void l_(Entity e)
    13. if(e instanceof ITimeWeapon)
    14. ((ITimeWeapon)e).shoot(e.motX, e.motY, e.motZ, 1.5F, 1.0F);
    15. e.move(e.motX, e.motY, e.motZ);
    16. if(e.getBukkitEntity().getTicksLived() > 100) e.die();
    17. CraftWorld w = e.world.getWorld();
    18. int x = (int) (e.locX + e.motX);
    19. int y = (int) (e.locY + e.motY);
    20. int z = (int) (e.locZ + e.motZ);
    21. if(w.getBlockAt(x, y, z).getTypeId() != 0 || (e.motX == 0 && e.motY == 0 && e.motZ == 0))
    22. TARDIS t = TARDIS.getTardisByLocation(new Location(w, x, y, z), false, false);
    23. TimeWeaponHitTARDISEvent event = new TimeWeaponHitTARDISEvent(t, ((ITimeWeapon)e));
    24. Bukkit.getPluginManager().callEvent(event);
    25. public static void shoot(double d0, double d1, double d2, float f, float f1, Entity e)
    26. float f2 = MathHelper.sqrt(d0 * d0 + d1 * d1 + d2 * d2);
    27. d0 += rnd.nextGaussian() * (double) (rnd.nextBoolean() ? -1 : 1) * 0.007499999832361937D * (double) f1;
    28. d1 += rnd.nextGaussian() * (double) (rnd.nextBoolean() ? -1 : 1) * 0.007499999832361937D * (double) f1;
    29. d2 += rnd.nextGaussian() * (double) (rnd.nextBoolean() ? -1 : 1) * 0.007499999832361937D * (double) f1;
    30. float f3 = MathHelper.sqrt(d0 * d0 + d2 * d2);
    31. e.lastYaw = e.yaw = (float) (Math.atan2(d0, d2) * 180.0D / 3.1415927410125732D);
    32. e.lastPitch = e.pitch = (float) (Math.atan2(d1, (double) f3) * 180.0D / 3.1415927410125732D);
    33. public static class WeaponStackAndPrice
    34. public final ItemStack weaponStack;
    35. public WeaponStackAndPrice(ItemStack weaponStack, int price)
    36. this.weaponStack = weaponStack;
    37. private static HashMap<WeaponStackAndPrice, Class<? extends ITimeWeapon>> allWeapons =
    38. new HashMap<WeaponStackAndPrice, Class<? extends ITimeWeapon>>();
    39. public static void addWeapon(Class<? extends ITimeWeapon> weapon, ItemStack weaponStack, int price)
    40. allWeapons.put(new WeaponStackAndPrice(weaponStack, price), weapon);
    41. public static WeaponStackAndPrice[] getAllWeaponStacksAndPrices()
    42. return allWeapons.keySet().toArray(new WeaponStackAndPrice[0]);
    43. public static ItemStack getStackFromWeapon(Class<? extends ITimeWeapon> weapon)
    44. for(WeaponStackAndPrice wap : allWeapons.keySet())
    45. if(allWeapons.get(wap).equals(weapon))
    46. public static Class<? extends ITimeWeapon> isWeaponStack(ItemStack is)
    47. for(WeaponStackAndPrice w : allWeapons.keySet())
    48. ItemStack cur = w.weaponStack;
    49. if(is.getType().equals(cur.getType()))
    50. if(is.getItemMeta().equals(cur.getItemMeta()))
    51. if(is.getEnchantments().equals(cur.getEnchantments()))
    52. return allWeapons.get(w);

    I use this so that I don’t have to keep rewriting the same code as not all of my weapon classes come from TimeWeapon as currently one of them is a firework and not an item

    Anyone?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.

    Last edited by a moderator: Jun 3, 2016

  5. Does NMS automatically add the item to the tracker. It could be not that all the items are the same but that the item has been added already by another section.

    Try printing put all the tracked items and see if they are the same or if it’s what I’m thinking.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.

    Last edited by a moderator: Jun 3, 2016

  6. Entities are added to the tracker when you add them into the NMS world. And I already know that the tracker contains an EntityItem that it thinks is the same one as a new one that I try to fire which is one that was previously fired. If it didn’t think it was already tracked then it wouldn’t be throwing the error and it would actually be fireing and if it didn’t think that the one that is already tracked is the one that was previously fired then it would be throwing the error at times when one wasn’t out there that was previously fired or it would sometimes allow it to fire when one is already out there.

    Anyone?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.

    Last edited by a moderator: Jun 3, 2016

  7. Anyone have any ideas?

    EDIT: Sorry, I figured it out. I was just being kind of stupid. Turns out the entity tracker checks if an entity is already tracked by its id, not it’s UUID its normal id. I was thinking that the id field in EntityItem was the id of the item it was going to render as so I kept setting it to the same thing.

Thread Status:

Not open for further replies.

Share This Page


Bukkit Forums

Понравилась статья? Поделить с друзьями:
  • Siemens iq300 ошибка е18
  • Siemens iq300 ошибка f00
  • Siemens iq300 ошибка e17
  • Silent hunter 5 как изменить сложность
  • Siemens g120 коды ошибок