Chunk Loading, FTB Ultimate

Jerakin

New Member
Jul 29, 2019
6
0
0
Hi,

I have been playin FTB for a while now and is just loving it, a lot of fun mods to play around with. I have been playing on a server hosted on the same computer I am playing from.

The computer in question:
OS: 64Bits Windos 7
CPU: AMD FX-8150 8Core @ 3.6GZ
RAM: 16 GB
Graphic card: Gigabyte Radeon HD 7970 3GB GDDR5
Java Version 7 update 17

The problem is that all of a sudden chunks don't load anymore. When I start the world the amount of chunks rendered is 23 (over 10816 total chunks) according to the debug screen it doesn't lag then for obvious reasons. After a while(5-8 min) it goes up, it starts to load more chunks, it keeps going up after a while it is around 1000 and lags A LOT. It keeps going up and up, so does the RAM usage.

I have done nothing since this started.
The machins I am using is:
Semi-Automated Peat Bog farm, No pipes only cheats. (Not running when this started to happen)
Semi-Automated Wheat farm, No pipes only cheats.
Around 12 Peat Bog Engines (maybe 2 where running when this happen)
Some forestry Machines need to craft the farms.
And maybe 15 Apiary.

I have tried to move the world to single player but the problem persists.

Do anyone have any ideas what I can do to fix it or what is causing it?

I as you may understand don't want to restart it, I have built a fair bit and my bee breading have come a far way. ;)
 

Dingham

New Member
Jul 29, 2019
294
0
0
Thank you for formatting a proper issue report, although should be in Tech Support.

It's an interesting issue, not really encountered this before.

What start up script or you using? If your just using default that may account for it.

Do you have a 64bits version of java installed?

How many players are on your server when it happens?
Are they allow chunkloaders?
if yes to above, did you change the default value in the config(as its 5000 per player by default)?
...I think you see where I'm going with...
 

Jerakin

New Member
Jul 29, 2019
6
0
0
First of, sorry for placing under the wrong sub-forum.

I am using the default start up script, only edited the amount of ram to 4G as max. No changes was made before this started to happen. Do you have a better start up script?

64 Bits java is installed.

Only 1 player, me. I have played mostly alone (don't you judge me!) the whole time.

The weird thing is that I have not changed anything before this started to happen. It just started to happen. It is like something else is taking all the CPU/RAM power so it can't load/render the chunks.

There is a total of maybe 6 forestry machines, and as I said maybe 2 was running when it happen. I am not even using pipes to transfer things. Only to transfer power, and that isn't even far.

I am not using dynmap.

I am at a total loss here, no bloody clue what can have caused it.
 

Dingham

New Member
Jul 29, 2019
294
0
0
you might want to open your server up script and allocate more ram then, probably on 1 or 2Gb. If that doesn't work let us know.
 

DZCreeper

New Member
Jul 29, 2019
1,469
0
1
He said that he had 4 gigs allocated already. As for finding the cause, try using a profiler tool and make a backup of your world and see if it happens with a brand new world.
 

Jerakin

New Member
Jul 29, 2019
6
0
0
What should I do with a profiler tool? Not sure what you want me to do there. Tried with a brand new world. A new one works perfectly fine.

I was thinking maybe there is something wrong with the config files, is there a way to reset them but still keep the world? Not that I have touched them, but you I am ready too try everything.
 

Jerakin

New Member
Jul 29, 2019
6
0
0
Alright, some more info to chew on.

First when the world is loaded it gives of this message.

Code:
2013-04-13 00:54:19 [SEVERE] [ForgeModLoader] Detected leaking worlds in memory.
There are 2 worlds that appear to be persisting. A mod is likely caching the wo
rld incorrectly
2013-04-13 00:54:19 [SEVERE] [ForgeModLoader] The world 938de28 (world) has leak
ed.

Googled that part and it said that it have caused lag problems, doesn't seem that it have caused the problem I have encountered.

But, this part. Don't understand why I didn't pick this up before...
The server is spamming it every tick.

Code:
2013-04-13 01:06:47 [INFO] [STDOUT] Wrong location! EntityBrainyZombie['Angry Zo
mbie'/14195, l='world', x=494.36, y=62.07, z=-143.73]
2013-04-13 01:06:47 [INFO] [STDERR] java.lang.Exception: Stack trace
2013-04-13 01:06:47 [INFO] [STDERR]    at java.lang.Thread.dumpStack(Unknown So
urce)
2013-04-13 01:06:47 [INFO] [STDERR]    at zz.a(Chunk.java:923)
2013-04-13 01:06:47 [INFO] [STDERR]    at yc.a(World.java:2338)
2013-04-13 01:06:47 [INFO] [STDERR]    at in.a(WorldServer.java:647)
2013-04-13 01:06:47 [INFO] [STDERR]    at yc.g(World.java:2255)
2013-04-13 01:06:47 [INFO] [STDERR]    at yc.h(World.java:2109)
2013-04-13 01:06:47 [INFO] [STDERR]    at in.h(WorldServer.java:516)
2013-04-13 01:06:47 [INFO] [STDERR]    at net.minecraft.server.MinecraftServer.
r(MinecraftServer.java:680)
2013-04-13 01:06:47 [INFO] [STDERR]    at ho.r(DedicatedServer.java:269)
2013-04-13 01:06:47 [INFO] [STDERR]    at net.minecraft.server.MinecraftServer.
q(MinecraftServer.java:599)
2013-04-13 01:06:47 [INFO] [STDERR]    at net.minecraft.server.MinecraftServer.
run(MinecraftServer.java:497)
2013-04-13 01:06:47 [INFO] [STDERR]    at fy.run(SourceFile:849)

So the problem is ( I guess) corrupt data! I don't even think that it have anything to do with FTB. Not much I can do about that, if it was a block that was cousing it I could have deleted it, but with a zombie that is doing I don't know what. I don't have any idea what to do.

Can also say that I can not kill anything, all monsters are frozen and I can not hit them. Takes a lot of breaking and "respawning" of a block(as in machines) to finally remove it also.


Still, if anyone have an idea what I can do please don't hesitate to say it.
 

DZCreeper

New Member
Jul 29, 2019
1,469
0
1
Alright, because thats a ThaumCraft 3 zombie we can make this work easily I think. Make a backup, thats always the first step. Remove ThaumCraft 3 from your mods folder and try starting your world. If the lag is fixed, put TC3 back in its place. Now go find the config file and set it to create world gen in already existing worlds. Its a lovely feature that all mods should use because mods can be used on existing vanilla worlds this way.

Warning: If this works, it will lag your world for up to a few minutes while TC3 puts stuff into your existing world. It will also delete any TC3 stuff you have stored in chests, barrels, etc.
 

Jerakin

New Member
Jul 29, 2019
6
0
0
Did everything as you asked and it work to the degree that it started to load a lot more chunks but! I can see a bit of problem. Squids, by the hundreds. There are so many sqiuds spawning that there isn't room enough in the water, I took a screen shot because, hey why not. To the left in the picture you can see that an chunk is not loaded, there are a total or 3 such chunks that I have seen, all of them 3 chunks are partial in water. I even think they where there before this happen.

As you may imagine this is giving me an error (more like 80 errors each sec) and behold, we are familiar with this one.

Code:
2013-04-13 11:18:43 [INFO] [STDOUT] Wrong location! ph['Squid'/1189, l='world', x=491.20, y=58.39, z=-141.17]
2013-04-13 11:18:43 [INFO] [STDERR] java.lang.Exception: Stack trace
2013-04-13 11:18:43 [INFO] [STDERR]    at java.lang.Thread.dumpStack(Unknown Source)
2013-04-13 11:18:43 [INFO] [STDERR]    at zz.a(Chunk.java:923)
2013-04-13 11:18:43 [INFO] [STDERR]    at yc.a(World.java:2338)
2013-04-13 11:18:43 [INFO] [STDERR]    at in.a(WorldServer.java:647)
2013-04-13 11:18:43 [INFO] [STDERR]    at yc.g(World.java:2255)
2013-04-13 11:18:43 [INFO] [STDERR]    at yc.h(World.java:2109)
2013-04-13 11:18:43 [INFO] [STDERR]    at in.h(WorldServer.java:516)
2013-04-13 11:18:43 [INFO] [STDERR]    at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:680)
2013-04-13 11:18:43 [INFO] [STDERR]    at ho.r(DedicatedServer.java:269)
2013-04-13 11:18:43 [INFO] [STDERR]    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:599)
2013-04-13 11:18:43 [INFO] [STDERR]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:497)
2013-04-13 11:18:43 [INFO] [STDERR]    at fy.run(SourceFile:849)

As you can see this is the same as the zombie one, if I can come with an idea it would be that the 3 chunks I mentioned is corrupted in some way, the squids is right beside on of them. Is there a way to delete chunks? The chunks are just random chunks with nothing made by a player in them.

More ideas? AND Thank you very much DZCreeper and you rest for the help and time.
 

Attachments

  • mc_squids.jpg
    mc_squids.jpg
    496.7 KB · Views: 58

Naolas

New Member
Jul 29, 2019
190
0
0
First off, 1000 chunks is nothing to worry about. A single chunk could be responsible for the lag you are experiencing. That's where the profiling comes in, which tells you what items/chunks/regions are causing the load, so that you can investigate there.

Regarding the leaking worlds. This happens when dimensions unload. If you place a spotloader (for example) inside every dimension (overworld 0, nether -1, end 1, twilight forest 7), this won't happen anymore.

For profiling TickThreading is great https://github.com/nallar/TickThreading/blob/master/INSTALL.md (get the latest). TickThreading will patch the server, so make sure to do this on a server copy, if you later do not want to keep TickThreading. You may like to keep it, but keep in mind that it is experimental.

Once you have TickThreading installed you can use the /ticks /tps and /profile commands. Here are some examples:
  • "/ticks" gives you an overview which chunks cause high load
  • "/tps" gives you a general idea of the server
  • "/profile e 30" profiles entities on the server for 30 seconds. This will tell you what and where load is caused
  • "/profile c 30" profiles the chunk you are standing on for 30 seconds. This will tell you what parts cause the load within a chunk. This is useful if you came to the chunk because of /ticks, but don't really know why it is causing the high load.
Good luck sorting things out!
 

Jerakin

New Member
Jul 29, 2019
6
0
0
It is now fixed! I didn't need to use the TickThreading mod but it can come in handy later.

For our friends out there googleing this or something this is how I solved it.

When you think about it, it is a super simple problem to fix, because we already knew what was causing it.

What I think is happening is that a mob is spawning every tick, that will cause a BIG load on the server. So the most simple fix is? Just remove them.

Go in to server.properties and set
difficulty=0
and for good measure
spawn-animals=false

Now start your world/server and enter it, all the mobs are now gone. (The weird chunks I talked about above was also fixed, they where probably caused by all the spawning squids).

You can now exit the world and stop the server. Go in to server.properties and revert the values.


I also want to thank all the people that helped me with this! Not only is it a great mod-pack but the community around it is also awesome!