[X] This bug does not appear to be reported on GitHub Issues before.
[X] This bug still exists in the latest version of the Minecraft Transit Railway mod.
[X] I have tested this in the official version of Minecraft Transit Railway, not a modified, custom, or unofficial build.
Describe the Bug
Server-side Null Pointer Exception during pathfinding on every second or so (possibly every tick).
Tracks would disappear and the train dashboard would become unusable for clients.
Unfortunately, I do not have access to the world file anymore due to an operator error (see report/suggestion #962)
Reproduction Steps
(unclear)
Intended train path had multiple stops and was quite long.
In-game Log and Crash Report
[12:05:29] [Server thread/FATAL]:
java.lang.NullPointerException: Cannot read field "node" because the return value of "org.mtr.core.tool.Utilities.getElement(java.util.List, int)" is null
at org.mtr.core.path.SidingPathFinder.padConnectionDetailsList(SidingPathFinder.java:178) ~[MTR-fabric-4.0.0-beta-9+1.20.1.jar:?]
at org.mtr.core.path.SidingPathFinder.tick(SidingPathFinder.java:73) ~[MTR-fabric-4.0.0-beta-9+1.20.1.jar:?]
at org.mtr.core.path.SidingPathFinder.findPathTick(SidingPathFinder.java:127) ~[MTR-fabric-4.0.0-beta-9+1.20.1.jar:?]
at org.mtr.core.data.Siding.tick(Siding.java:212) ~[MTR-fabric-4.0.0-beta-9+1.20.1.jar:?]
at java.util.Collection.removeIf(Collection.java:583) ~[?:?]
at org.mtr.core.simulation.Simulator.tick(Simulator.java:100) ~[MTR-fabric-4.0.0-beta-9+1.20.1.jar:?]
at org.mtr.libraries.it.unimi.dsi.fastutil.objects.ObjectImmutableList.forEach(ObjectImmutableList.java:219) ~[MTR-fabric-4.0.0-beta-9+1.20.1.jar:?]
at org.mtr.core.Main.manualTick(Main.java:80) ~[MTR-fabric-4.0.0-beta-9+1.20.1.jar:?]
at org.mtr.mod.Init.lambda$init$13(Init.java:216) ~[MTR-fabric-4.0.0-beta-9+1.20.1.jar:?]
at org.mtr.mapping.registry.EventRegistry.lambda$registerStartServerTick$4(EventRegistry.java:41) ~[MTR-fabric-4.0.0-beta-9+1.20.1.jar:?]
at net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents.lambda$static$0(ServerTickEvents.java:34) ~[fabric-lifecycle-events-v1-2.2.2+1802ada577-15099849194dcb7e.jar:?]
at net.minecraft.server.MinecraftServer.handler$cha000$fabric-lifecycle-events-v1$onStartTick(MinecraftServer.java:6857) ~[server-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:824) ~[server-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:671) ~[server-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:265) ~[server-intermediary.jar:?]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]
This repeated at least once a second.
I also received something to this effect, repeatedly.
Before reporting, I have confirmed that
Describe the Bug
Server-side Null Pointer Exception during pathfinding on every second or so (possibly every tick). Tracks would disappear and the train dashboard would become unusable for clients.
Unfortunately, I do not have access to the world file anymore due to an operator error (see report/suggestion #962)
Reproduction Steps
Intended train path had multiple stops and was quite long.
In-game Log and Crash Report
This repeated at least once a second.
I also received something to this effect, repeatedly.
Mod Loader
Fabric
Minecraft Version
1.20.1
Minecraft Transit Railway Version
MTR 4 Beta 9
Operating System
Linux/Debian
List of Mods or Modpack You Were Using
Pack was a very heavily modified version of Quantum Freedom 2.
Extra Information
No response