micdoodle8 / Galacticraft

An advanced Space Dimension Mod for Minecraft
Other
617 stars 334 forks source link

Client timeouts on moon #954

Closed Ikabodo closed 10 years ago

Ikabodo commented 10 years ago

I'm having a strange issue and I'm trying to localize what mod causes it. I'm sorry if this has nothing to do with this mod, but perhaps you can help me find out where to look further.

Basically, when chunks on the moon is loaded, I have severe connection issues. Clients time out, often within the first minute of logging it. It is a small personal server, usually with at most 2-3 players present.

I get no errors in the log, the client simply times out with no apparent reason, probably cause by severe lag spikes?

I've got a lot of different mods (almost 90+), so the culprit could be almost anything, the server is running decently in the overworld dimension, so the modpack works all in all. I could try deatctivating some of the mods, but I'm afraid this could cause more issues than help. Other candidates for conflict are SYNC (I'm having a separate issue with them) and MEKANISM (the teleporter could be a partly factor, time outs often coincide with the teleport, but we HAVE had timeouts without teleporters present.) I THINK I have ruled out local networking issues, since the issue only shows up when the moon-dimension is loaded.

One of my theories is that the oxygen sealers or something similar is causing strange spikes in the lag when the try to seal the room with an unknown block or something similar. But I have not been able to reproduce the error in any effective way.

I could not find any current issues with galacticraft causing this, so I'm kind of at a loss of what causes it.

Is there any logs besides the server log that I can activate or search for that could potentially give more information?

radfast commented 10 years ago

You haven't said which version of Minecraft you are playing - I'll guess this is 1.6.4 as I don't think 1.7.10 modpacks have become so large yet. Either way please check you are using the most up-to-date Galacticraft which is currently version 2.0.14.194 for GC2, or 3.0.1.181 for GC3. http://ci.micdoodle8.com/job/Galacticraft

In any recent version of GC2 or GC3, the oxygen sealers won't be the cause of an issue like this. Oxygen Sealers can cause minor amounts of lag (for example 20ms of lag, which would make for one slower-than-normal tick on a server) if a large space with a large number of sealers, for example 40 sealers sealing 50,000 blocks volume, all becomes sealed or unsealed at once. That will be way less than anything that would cause a client disconnect.

There was a Moon dungeon lag on servers before GC version 2.0.11.981 (which was released back in March 2014). If your server map was created and played a lot using a version of Galacticraft that old then you could have this problem. The severity of the problem depends on how many Moon chunks have been created by players traveling around - if your world's DIM-28 region folder is large, like 250MB or larger, then you might see this, but the issue normally only affects public servers playing an older modpack like Voltz. The solution is simple, update Galacticraft and reset the Moon (delete the DIM-28 folder).

In Minecraft 1.7.10, there's an undocumented but very real Forge issue which can kick players from servers due to network packet size issues if the server and client have different Forge versions (before/after 1187). It doesn't sound like that is your issue because players affected by this will get kicked with a specific message about packet 63 being an unexpected size.

There can be weird worldgen / oregen ("decoration") interactions with some other mods which are not properly coded - this would normally cause server-side crashes or the server stops responding because it gets into a loop, but only when new chunks are being generated, so only when a player is moving around on the Moon. CofH's "flat bedrock" feature is one of the causes of this. If it's this, again I think you'd know about it because the server would either crash, or slow down and stop responding and have to be re-started.

Do the client timeouts happen only at / near one specific player's Moon base, or do they happen whenever any player travels to anywhere on the Moon?

You can activate debug mode in Galacticraft by searching for Enable Debug in the core.conf Galacticraft config. That will place some more info in the FML log.

You're welcome to upload your server log somewhere for me to take a look at, see if I have any other ideas.

Ikabodo commented 10 years ago

I am terribly sorry for not telling you the versions. Embarrassing.

I'm using Minecraft 1.7.10, Forge 1208 and Galacticraft 181. (So all the latest versions, I think). I don't know if it's worth noting, but I think the world was generated in an earlier forge-version.

Thank you for all the great information, I'll try to get some time to investigating this further. I saw an older closed issue with the Hats mod, I figure I can try something around that.

Some more info:

I'll try activating debug-mode to see if there are any additional errors.

radfast commented 10 years ago

The 1.8 1.0 spam is nothing, that's old logging connected with Evolved Creeper spawning - will be removed in the upcoming next build.

If all players timeout together, it's a server issue - my guess is the server is getting into an endless loop and stops ticking the world, stops accepting data from clients.

As you're in GC3, we can rule out oregen in other mods using this config setting in core.conf:

B:"Generate other mods features on planets"=false

I'm wondering if it could be another mod trying to generate mobs though. Please show me your full modlist? (Server log or any recent crash report will have it, doesn't have to be connected with this issue.)

Ikabodo commented 10 years ago

I have some more info, I've tried deleting and adding a few mods. It was not hats as I expected.

BUT. I've noticed now that the avg-tick on the server window freezes every time someone is kicked out. And there is a HUGE lag-spike. (I don't know why I couldn't notice before.) The server lags even when no player is logged in, so there must be a chunk loaded somewhere. We are talking HUGE spikes, like skipping thousands of ticks. The ticks spike, so the avg is pretty low. Right now the spikes are frequent enough to make it impossible to run opis or something to locate the lag-spike.

I am currently stuck on the moonbase, I got some logs from what causes it, I'm guessing a conflict. Since it seems to be moon-related.

I just realised the issue went away when I removed Mekanism. I've installed it again and trying to localize the block that is causing it (if that's it). But it only happens on the moon and Mars.

I am beginning to think this is more about NOT being near the main-base, and less on beeing on the moon. And it might be about Mekanism, not Galacticraft...

radfast commented 10 years ago

If you can tell me how to reproduce the problem - ideally with only GC and Mekanism installed - then we should be able to find a fix fairly fast. Mekanism is one of the main tech mods Galacticraft aims to integrate with, so I'd be concerned if there's a problem.

Ikabodo commented 10 years ago

I've been researching this further, it's not this mod. But thank you for taking the time to help with the investigation.

It ended up being a problem with cable-channel in AE2, I'm still working on that. You can close this.

radfast commented 10 years ago

OK thanks for letting us know. You're welcome to raise any Galacticraft issues any time (including lag issues or compabitility issues with other mods), we want to get them all fixed.