Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ticking Tile Entity after travel through Mystcraft Portal to non-chunk-loaded area #146

Closed
vizerei opened this issue Nov 8, 2013 · 5 comments
Labels
bug A flaw in design, code, etc.

Comments

@vizerei
Copy link

vizerei commented Nov 8, 2013

tl;dr:

Essentially the subject says it all. The server will crash and have to be restored from backup or the offending Train Detector will have to be deleted via MC Edit to make the world playable again.

Whole story:

Forge: 6.4.20.916
Mystcraft: 0.10.8.0
Railcraft: 8.1.0.0
Other mods: I believe I just use the exact mods that the Forgecraft server uses. As I only have glimpses at the mod lists from Dire's videos to go by, I could be using different versions and if you need all mods and versions let me know.

The story:

Essentially I had the same setup in three places: the overworld (crash site), and two mystcraft ages for goods trains. While I was testing the pilot train I would follow it through but every time it would come to the overworld the train would be glitched (all carts existing in the same space) and I wouldn't be able to interact with the minecraft world and would begin falling through the world. If I exited, I could rejoin and fall back through the world and if I stayed the server crashed throwing out the below error (entire Forge logs available if you need them). What I eventually found out was that(through MCEdit) the block in question that was the "ticking til entity" was the Train Detect and if I removed that with MCEdit I could load the server back up and join and the train would simply be sitting there waiting for me. I finally figured out that I hadn't paired the anchor sentinel with the personal anchor after about two days of troubleshooting =. I haven't tested if this happens without mystcraft portals.

Basic error message:
2013-11-08 17:47:21 [INFO] [STDERR] net.minecraft.util.ReportedException: Ticking tile entity
2013-11-08 17:47:21 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:674)
2013-11-08 17:47:21 [INFO] [STDERR] at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:276)
2013-11-08 17:47:21 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:587)
2013-11-08 17:47:21 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
2013-11-08 17:47:21 [INFO] [STDERR] at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)
2013-11-08 17:47:21 [INFO] [STDERR] Caused by: java.lang.StackOverflowError
2013-11-08 17:47:21 [INFO] [STDERR] at com.google.common.collect.MapMakerInternalMap$Segment.get(MapMakerInternalMap.java:2448)
2013-11-08 17:47:21 [INFO] [STDERR] at com.google.common.collect.MapMakerInternalMap.get(MapMakerInternalMap.java:3434)
2013-11-08 17:47:21 [INFO] [STDERR] at mods.railcraft.common.carts.LinkageManager.getCartFromLinkageId(LinkageManager.java:99)
2013-11-08 17:47:21 [INFO] [STDERR] at mods.railcraft.common.carts.LinkageManager.getLinkedCartA(LinkageManager.java:234)
2013-11-08 17:47:21 [INFO] [STDERR] at mods.railcraft.common.carts.LinkageManager.countLinksRecursive(LinkageManager.java:428)

(the last line will repeat over and over again for at least 1000 lines as my putty session buffer of 2000 lines was used up when cat'ing the entire log)

@vizerei
Copy link
Author

vizerei commented Nov 9, 2013

Scratch the part about chunk loading fixing it, I had it happen again in a mystcraft age that was properly chunk loaded, it appears to be related to the train detector as when I delete that everything functions normally.

@CovertJaguar
Copy link
Member

Yes that function is called by the train detector. can't look at the code atm. I'll look later.

@vizerei
Copy link
Author

vizerei commented Nov 16, 2013

Through some more testing (without the Train Detector) I've found it seems when the locomotive comes through the mystcraft portal on to the boarding track (same design as CPW did on FC2) it sometimes gets stuck. The other carts continue to come through and are spawned inside the locomotive. The following carts also hit the boarding track and boosters and accelerate, and what happens then is (pure speculation on my part) that through some sort of collision glitch the carts all remain in a linked-ish state while the chestcarts/tankcarts get shot out to the train detector. I'm guessing the train detector doesn't like that glitch. My point being that this issue may be symptom of a probem, and the problem is Locomotives and Carts spawning on the other side of a mystcraft portal.

@CovertJaguar
Copy link
Member

You may need to unlink the carts, send them through one at a time, and relink on the other side.

@vizerei
Copy link
Author

vizerei commented Nov 17, 2013

I am indeed decoupling the carts. I initially thought decoupling was the issue (I was using CPWs method) so I designed a better method I'm calling "pump action" :). Here's a video of my decouple in action, perhaps you can tell me if this isn't good enough: http://youtu.be/t08Qn7GDBXY

EmreDurdu pushed a commit to Bil481Railcraft/Railcraft that referenced this issue Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A flaw in design, code, etc.
Projects
None yet
Development

No branches or pull requests

2 participants