Railcraft

Railcraft

34M Downloads

World anchor cart crashes server

morj opened this issue ยท 4 comments

commented

Steps to reproduce:

  1. Create world anchor cart
  2. Attach it to a tunnel bore after some chest carts
  3. Put an ender pear in world anchor.
  4. Wait 12 hours.
  5. Server crashes, reproduces on restart.
    Railcraft 9.0.0.0
commented

Deleting named anchor cart (and only it) via MCEdit solved the problem.
Also, I will take a liberty to attach a tiny part of chash log because I truly believe it is the actual source of the problem (see EntityCartAnchor "requestFuel" method and ItemMap usage).

net.minecraft.util.ReportedException: Ticking entity
 at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:626) ~
...
Caused by: java.lang.NullPointerException
 at mods.railcraft.common.util.collections.ItemMap.containsKey(ItemMap.java:52) ~[ItemMap.class:?]
 at mods.railcraft.common.carts.EntityCartAnchor.requestFuel(EntityCartAnchor.java:133) ~[EntityCartAnchor.class:?]
 at mods.railcraft.common.carts.EntityCartAnchor.stockFuel(EntityCartAnchor.java:124) ~[EntityCartAnchor.class:?]
 at mods.railcraft.common.carts.EntityCartAnchor.func_70071_h_(EntityCartAnchor.java:99) ~[EntityCartAnchor.class:?]
 at net.minecraft.world.World.func_72866_a(World.java:2019) ~[afn.class:?]
 at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:659) ~[mj.class:?]
...
commented

Fixed

commented

So the only way to solve this issue is to delete the cart via mcedit?

commented

I suppose you can install 9.1.x or even 9.2.x which has been already released. http://www.railcraft.info/releases