GT New Horizons

GT New Horizons

867k Downloads

[AE2] ME Glass Cabels sometimes disappear on server boot

gerben838665 opened this issue ยท 7 comments

commented

Your GTNH Discord Username

gerben838665

Your Pack Version

2.7.2

Your Server

private server

Java Version

Java 21

Type of Server

Vanilla Forge

Your Expectation

After a server reboot I expect all ME cable to be where they we're placed

The Reality

A few random ME Glass cabels disappear including connected busses.

Your Proposal

At this point there is only 1 common thread between the disappearing ME Glass cables.
They all had an export bus connected with a crafting card and some fluid cell registered.

Other than that the disappearing ME Glass cables seem to be mostly random.
The file below contains log entries that seem to be related to the issue:
Disappearing ME cables.log

Final Checklist

  • I have searched this issue tracker and there is nothing similar already. Posting on a closed issue saying the bug still exists will prompt us to investigate and reopen it once we confirm your report.
  • I can reproduce this problem consistently by follow the exact steps I described above, or this does not need reproducing, e.g. recipe loophole.
  • I have asked other people and they confirm they also have this problem by follow the exact steps I described above, or this does not need reproducing, e.g. recipe loophole.
commented

In case it helps the issue doesn't seem to be related to crafting cards.
I tried to work around the issue by removing the crafting cards from all export busses.
Instead I created small buffers in ME interfaces connected to ME storages busses.
Sadly after the next reboot Me cables including connected busses still disappeared.

After this most recent reboot I also ran into another bug that's potentially related to this issue. 2 of the Me interfaces I used for small item buffers as explained above seem to have been wiped of it's registered items and contents. In the error logs i found the following error logs that seem to be related to the AE2 block interfaces losing their contents. Just like with the disappearing me glass cables and export busses an exeption is thrown when the readFromNBT function is called in AETileEventHandler class.

[16:09:02] [Server thread/ERROR] [FML/]: A TileEntity BlockInterface(appeng.tile.misc.TileInterface) has thrown an exception during loading, its state cannot be restored. Report this to the mod author java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException at Launch//appeng.tile.events.AETileEventHandler.readFromNBT(AETileEventHandler.java:54) ~[AETileEventHandler.class:?] at Launch//appeng.tile.AEBaseTile.func_145839_a(AEBaseTile.java:121) ~[AEBaseTile.class:?] at Launch//net.minecraft.tileentity.TileEntity.func_145827_c(TileEntity.java:116) [aor.class:?] at Launch//net.minecraft.world.chunk.storage.AnvilChunkLoader.loadEntities(AnvilChunkLoader.java:496) [aqk.class:?] at Launch//net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:41) [ChunkIOProvider.class:?] at Launch//net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:12) [ChunkIOProvider.class:?] at Launch//net.minecraftforge.common.util.AsynchronousExecutor.skipQueue(AsynchronousExecutor.java:344) [AsynchronousExecutor.class:?] at Launch//net.minecraftforge.common.util.AsynchronousExecutor.getSkipQueue(AsynchronousExecutor.java:302) [AsynchronousExecutor.class:?] at Launch//net.minecraftforge.common.chunkio.ChunkIOExecutor.syncChunkLoad(ChunkIOExecutor.java:12) [ChunkIOExecutor.class:?] at Launch//net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:126) [ms.class:?] at Launch//net.minecraft.world.gen.ChunkProviderServer.func_73158_c(ChunkProviderServer.java:101) [ms.class:?] at Launch//net.minecraft.world.gen.ChunkProviderServer.func_73154_d(ChunkProviderServer.java:199) [ms.class:?] at Launch//net.minecraft.world.World.func_72964_e(World.java:419) [ahb.class:?] at Launch//net.minecraft.world.World.func_147438_o(World.java:2536) [ahb.class:?] at Launch//mods.railcraft.common.util.misc.ChunkManager.ticketsLoaded(ChunkManager.java:168) [ChunkManager.class:?] at Launch//net.minecraftforge.common.ForgeChunkManager.loadWorld(ForgeChunkManager.java:523) [ForgeChunkManager.class:?] at Launch//net.minecraftforge.common.ForgeInternalHandler.onDimensionLoad(ForgeInternalHandler.java:64) [ForgeInternalHandler.class:?] at cpw.mods.fml.common.eventhandler.ASMEventHandler_39_ForgeInternalHandler_onDimensionLoad_Load.invoke(.dynamic) [?:?] at Launch//cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) [ASMEventHandler.class:?] at Launch//cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140) [EventBus.class:?] at Launch//net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:230) [MinecraftServer.class:?] at Launch//net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:258) [lt.class:?] at Launch//net.minecraft.server.MinecraftServer.run(MinecraftServer.java:387) [MinecraftServer.class:?] at Launch//net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685) [li.class:?] Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118) ~[?:?] at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[?:?] at Launch//appeng.tile.events.AETileEventHandler.readFromNBT(AETileEventHandler.java:52) ~[AETileEventHandler.class:?] ... 23 more Caused by: java.lang.IllegalStateException: Invalid Crafting Link for Object at Launch//appeng.crafting.CraftingLink.<init>(CraftingLink.java:38) ~[CraftingLink.class:?] at Launch//appeng.core.api.ApiStorage.loadCraftingLink(ApiStorage.java:41) ~[ApiStorage.class:?] at Launch//appeng.helpers.MultiCraftingTracker.readFromNBT(MultiCraftingTracker.java:49) ~[MultiCraftingTracker.class:?] at Launch//appeng.helpers.DualityInterface.readFromNBT(DualityInterface.java:299) ~[DualityInterface.class:?] at Launch//appeng.tile.misc.TileInterface.readFromNBT_TileInterface(TileInterface.java:155) ~[TileInterface.class:?] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?] at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[?:?] at Launch//appeng.tile.events.AETileEventHandler.readFromNBT(AETileEventHandler.java:52) ~[AETileEventHandler.class:?] ... 23 more [16:09:02] [Server thread/ERROR] [FML/]: A TileEntity BlockInterface(appeng.tile.misc.TileInterface) has thrown an exception during loading, its state cannot be restored. Report this to the mod author java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException at Launch//appeng.tile.events.AETileEventHandler.readFromNBT(AETileEventHandler.java:54) ~[AETileEventHandler.class:?] at Launch//appeng.tile.AEBaseTile.func_145839_a(AEBaseTile.java:121) ~[AEBaseTile.class:?] at Launch//net.minecraft.tileentity.TileEntity.func_145827_c(TileEntity.java:116) [aor.class:?] at Launch//net.minecraft.world.chunk.storage.AnvilChunkLoader.loadEntities(AnvilChunkLoader.java:496) [aqk.class:?] at Launch//net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:41) [ChunkIOProvider.class:?] at Launch//net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:12) [ChunkIOProvider.class:?] at Launch//net.minecraftforge.common.util.AsynchronousExecutor.skipQueue(AsynchronousExecutor.java:344) [AsynchronousExecutor.class:?] at Launch//net.minecraftforge.common.util.AsynchronousExecutor.getSkipQueue(AsynchronousExecutor.java:302) [AsynchronousExecutor.class:?] at Launch//net.minecraftforge.common.chunkio.ChunkIOExecutor.syncChunkLoad(ChunkIOExecutor.java:12) [ChunkIOExecutor.class:?] at Launch//net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:126) [ms.class:?] at Launch//net.minecraft.world.gen.ChunkProviderServer.func_73158_c(ChunkProviderServer.java:101) [ms.class:?] at Launch//net.minecraft.world.gen.ChunkProviderServer.func_73154_d(ChunkProviderServer.java:199) [ms.class:?] at Launch//net.minecraft.world.World.func_72964_e(World.java:419) [ahb.class:?] at Launch//net.minecraft.world.World.func_147438_o(World.java:2536) [ahb.class:?] at Launch//mods.railcraft.common.util.misc.ChunkManager.ticketsLoaded(ChunkManager.java:168) [ChunkManager.class:?] at Launch//net.minecraftforge.common.ForgeChunkManager.loadWorld(ForgeChunkManager.java:523) [ForgeChunkManager.class:?] at Launch//net.minecraftforge.common.ForgeInternalHandler.onDimensionLoad(ForgeInternalHandler.java:64) [ForgeInternalHandler.class:?] at cpw.mods.fml.common.eventhandler.ASMEventHandler_39_ForgeInternalHandler_onDimensionLoad_Load.invoke(.dynamic) [?:?] at Launch//cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) [ASMEventHandler.class:?] at Launch//cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140) [EventBus.class:?] at Launch//net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:230) [MinecraftServer.class:?] at Launch//net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:258) [lt.class:?] at Launch//net.minecraft.server.MinecraftServer.run(MinecraftServer.java:387) [MinecraftServer.class:?] at Launch//net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685) [li.class:?] Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118) ~[?:?] at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[?:?] at Launch//appeng.tile.events.AETileEventHandler.readFromNBT(AETileEventHandler.java:52) ~[AETileEventHandler.class:?] ... 23 more Caused by: java.lang.IllegalStateException: Invalid Crafting Link for Object at Launch//appeng.crafting.CraftingLink.<init>(CraftingLink.java:38) ~[CraftingLink.class:?] at Launch//appeng.core.api.ApiStorage.loadCraftingLink(ApiStorage.java:41) ~[ApiStorage.class:?] at Launch//appeng.helpers.MultiCraftingTracker.readFromNBT(MultiCraftingTracker.java:49) ~[MultiCraftingTracker.class:?] at Launch//appeng.helpers.DualityInterface.readFromNBT(DualityInterface.java:299) ~[DualityInterface.class:?] at Launch//appeng.tile.misc.TileInterface.readFromNBT_TileInterface(TileInterface.java:155) ~[TileInterface.class:?] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?] at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[?:?] at Launch//appeng.tile.events.AETileEventHandler.readFromNBT(AETileEventHandler.java:52) ~[AETileEventHandler.class:?] ... 23 more

commented

ok so now this is more concerning. I'm going to ask you the following:

  • did you add any additional mod to the instance on the server?
  • did you edit any config?
  • can you reproduce it in a flatworld or give steps that can guarantee us to reproduce the bug?
commented

if you have a ME security station that can happen, as sometimes the server can load the AE2 network in a weird order, causing it to think it's a newly placed cable by someone unauthorized to edit the network. So if you have one, to rule that out, take a biometric card without binding it to the player and allow all the perms on it, then add it to the security station.

commented

Thanks for the suggestion didn't have a ME security station connected but connected one as a test.
Sadly after rebooting my server once again multiple ME cables disappeared.

The file below contains log entries from this latest reboot that seem related to this issue:
Disappearing ME cables 2.log

commented
  • Did you add any additional mod to the instance on the server?
    Only AromaCore and backup as that was the backup solution I used in previous versions.
    (Recently upgraded from 2.5.0 -> 2.7.2)

  • Did you edit any config?
    config\aroma1997\AromaBackup.cfg to edit backup interval.
    config\GregTech\Pollution.cfg to deactivate pollution.

  • Can you reproduce it in a flatworld?
    If needed I might have time to test this in the weekend though I've got my doubts it's easily reproduceable.
    Especially as we have a pretty big ME network which might or might not be required to reproduce the issue.

  • Or give steps that can guarantee us to reproduce the bug?
    I'm not entirely sure about the cause so giving steps would be hard.
    As said before the disappearing ME cables up till now always have an export bus connected containing a crafting card.
    Registered to export a fluid cell. Examples of fluids cells: "Hydrochloric acid", "Sulfuric acid". "Oxygen", "Hydrogen", "Chlorine" and "Nitric acid". Lastly all disappearing ME cables we're connected to singe block chemical reactor or mixer.
    The disappearing ME cables aren't always the same but a few have disappeared more than once after a reboot.

In case it could potentially help identify the issue.
Our ME system is decently sized containing at least the following:
20 ME controllers.
4000+ ME Glass cables
48 active P2P tunnels.

commented

I have a similar problem. And also when launching or restarting the game.
#18643

commented

@boubou19 Had some time and was able to easily replicate the issue in a single player flat world.

I setup a small ME setup with 8 export busses that export hydrochloric acid cell's into chemical reactors.
Image

After saving and quitting the game 1 ME glass cable and export bus disappeared.
Image

After saving and quitting a second time all but 1 export bus connected to a chemical reactor disappeared.
Image

Below a copy of the single player world I created. I returned the ME cables and export busses before saving.
Flat ME Test.zip