Skip to content

Strange server behavior and crashes. #34

@NoxyNixie

Description

@NoxyNixie

We've been experiencing strange behavior with the mod on our server. For the most part it seems to work fine when you start a new Redstone Control build but after the chunk has unloaded (server restart, people moving away from that chunk, or people logging off) the data of the blocks seem to be potentially invalid or forgotten (I'm not sure what is happening)?

The first indication of something wrong in our log is the following:

[16:10:15] [Server thread/WARN] [rs_ctr API]: It appears the used up Signal Link IDs info wasn't properly saved to disk. IDs may have been assigned duplicate!
[16:10:15] [Server thread/WARN] [rs_ctr API]: It appears the used up Signal Link IDs info wasn't properly saved to disk. IDs may have been assigned duplicate!
[16:10:53] [Server thread/FATAL] [cd4017be_lib]: invalid TileEntity state: chunk = null, unloaded = true, world = net.minecraft.world.WorldServer@3f96d007, pos = BlockPos{x=540, y=85, z=217}

Where the last line is the person breaking and replacing the block that is behaving strangely (I think the error happens on breaking of the block).

This strange behavior also applies to the Processor Assembly and Circuit Designer which on the client when opening the interface immediately closes the interface again until you break and replace those blocks.

On one particular frustrating experience the server actually barked a bit more that just the three lines above:

[16:27:34] [Server thread/FATAL] [VanillaFix]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NullPointerException
        at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_252]
        at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_252]
        at net.minecraft.util.Util.runTask(SourceFile:531) [h.class:?]
        at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:723) [MinecraftServer.class:?]
        at net.minecraft.server.dedicated.DedicatedServer.updateTimeLightAndEntities(DedicatedServer.java:397) [nz.class:?]
        at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:668) [MinecraftServer.class:?]
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]
Caused by: java.lang.NullPointerException
        at cd4017be.rs_ctr.port.SplitPlug.onPortModified(SplitPlug.java:195) ~[SplitPlug.class:?]
        at cd4017be.api.rs_ctr.port.Link.<init>(Link.java:96) ~[Link.class:?]
        at cd4017be.api.rs_ctr.port.Port.connect(Port.java:76) ~[Port.class:?]
        at cd4017be.rs_ctr.port.WireBranch.addLink(WireBranch.java:167) ~[WireBranch.class:?]
        at cd4017be.rs_ctr.port.SplitPlug.addLink(SplitPlug.java:175) ~[SplitPlug.class:?]
        at cd4017be.rs_ctr.item.ItemWireCon.doAttach(ItemWireCon.java:102) ~[ItemWireCon.class:?]
        at cd4017be.api.rs_ctr.port.MountedPort.onInteract(MountedPort.java:114) ~[MountedPort.class:?]
        at cd4017be.rs_ctr.tileentity.Gate.onActivated(Gate.java:110) ~[Gate.class:?]
        at cd4017be.lib.block.AdvancedBlock.onBlockActivated(AdvancedBlock.java:217) ~[AdvancedBlock.class:?]
        at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:449) ~[or.class:?]
        at net.minecraft.network.NetHandlerPlayServer.processTryUseItemOnBlock(NetHandlerPlayServer.java:741) ~[pa.class:?]
        at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:55) ~[ma.class:?]
        at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:11) ~[ma.class:?]
        at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) ~[hv$1.class:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_252]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_252]
        at net.minecraft.util.Util.runTask(SourceFile:529) ~[h.class:?]
        ... 5 more
[16:27:37] [Server thread/FATAL] [VanillaFix]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NullPointerException
        at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_252]
        at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_252]
        at net.minecraft.util.Util.runTask(SourceFile:531) [h.class:?]
        at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:723) [MinecraftServer.class:?]
        at net.minecraft.server.dedicated.DedicatedServer.updateTimeLightAndEntities(DedicatedServer.java:397) [nz.class:?]
        at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:668) [MinecraftServer.class:?]
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]
Caused by: java.lang.NullPointerException
        at cd4017be.rs_ctr.port.WireBranch.addLink(WireBranch.java:168) ~[WireBranch.class:?]
        at cd4017be.rs_ctr.port.SplitPlug.addLink(SplitPlug.java:175) ~[SplitPlug.class:?]
        at cd4017be.rs_ctr.port.SplitPlug.addLink(SplitPlug.java:180) ~[SplitPlug.class:?]
        at cd4017be.rs_ctr.item.ItemWireCon.doAttach(ItemWireCon.java:102) ~[ItemWireCon.class:?]
        at cd4017be.api.rs_ctr.wire.IWiredConnector$IWiredConnectorItem.doAttach(IWiredConnector.java:88) ~[IWiredConnector$IWiredConnectorItem.class:?]
        at cd4017be.api.rs_ctr.wire.RelayPort.onInteract(RelayPort.java:89) ~[RelayPort.class:?]
        at cd4017be.rs_ctr.tileentity.Gate.onActivated(Gate.java:110) ~[Gate.class:?]
        at cd4017be.lib.block.AdvancedBlock.onBlockActivated(AdvancedBlock.java:217) ~[AdvancedBlock.class:?]
        at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:449) ~[or.class:?]
        at net.minecraft.network.NetHandlerPlayServer.processTryUseItemOnBlock(NetHandlerPlayServer.java:741) ~[pa.class:?]
        at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:55) ~[ma.class:?]
        at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:11) ~[ma.class:?]
        at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) ~[hv$1.class:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_252]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_252]
        at net.minecraft.util.Util.runTask(SourceFile:529) ~[h.class:?]
        ... 5 more
[16:27:40] [Server thread/FATAL] [VanillaFix]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NullPointerException
        at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_252]
        at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_252]
        at net.minecraft.util.Util.runTask(SourceFile:531) [h.class:?]
        at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:723) [MinecraftServer.class:?]
        at net.minecraft.server.dedicated.DedicatedServer.updateTimeLightAndEntities(DedicatedServer.java:397) [nz.class:?]
        at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:668) [MinecraftServer.class:?]
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]
Caused by: java.lang.NullPointerException
        at cd4017be.rs_ctr.port.SplitPlug.onPortModified(SplitPlug.java:195) ~[SplitPlug.class:?]
        at cd4017be.api.rs_ctr.port.Link.<init>(Link.java:96) ~[Link.class:?]
        at cd4017be.api.rs_ctr.port.Port.connect(Port.java:76) ~[Port.class:?]
        at cd4017be.rs_ctr.port.WireBranch.addLink(WireBranch.java:167) ~[WireBranch.class:?]
        at cd4017be.rs_ctr.port.SplitPlug.addLink(SplitPlug.java:175) ~[SplitPlug.class:?]
        at cd4017be.rs_ctr.port.SplitPlug.addLink(SplitPlug.java:180) ~[SplitPlug.class:?]
        at cd4017be.rs_ctr.item.ItemWireCon.doAttach(ItemWireCon.java:102) ~[ItemWireCon.class:?]
        at cd4017be.api.rs_ctr.port.MountedPort.onInteract(MountedPort.java:114) ~[MountedPort.class:?]
        at cd4017be.rs_ctr.tileentity.Gate.onActivated(Gate.java:110) ~[Gate.class:?]
        at cd4017be.lib.block.AdvancedBlock.onBlockActivated(AdvancedBlock.java:217) ~[AdvancedBlock.class:?]
        at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:449) ~[or.class:?]
        at net.minecraft.network.NetHandlerPlayServer.processTryUseItemOnBlock(NetHandlerPlayServer.java:741) ~[pa.class:?]
        at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:55) ~[ma.class:?]
        at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(SourceFile:11) ~[ma.class:?]
        at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) ~[hv$1.class:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_252]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_252]
        at net.minecraft.util.Util.runTask(SourceFile:529) ~[h.class:?]
        ... 5 more

This was during an attempted fixing of the strangely broken Redstone Control build. During this rebuild the client (JennyLeeP) also crashed with the following crash (multiple times):

https://pastebin.com/05UySxF5

After a bit of fiddling later the client (JennyLeeP) had to go for a minute and logged off. About a minute later after she logged back on the server crashed with the following crash:

https://pastebin.com/G2V4zus2

I'm not sure if this all is related to a single issue or multiple problems. Hope you can fix these as currently the mod seems unusable on our server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions