pop4959 / Chunky

Pre-generates chunks, quickly, efficiently, and safely.
GNU General Public License v3.0
556 stars 63 forks source link

Server tick taking more than 40000 miliseconds according to ModernFix #323

Closed avc1657 closed 6 months ago

avc1657 commented 6 months ago

Im playing a modpack (fabric) and after trying to pre-gen with chunky, it works for a couple of minutes (sometimes less than 1 minute, sometimes 5 or more) and then the world becomes completely unfunctional, it doesnt crash, but no blocks i break drop, animals stop moving, everything.

I took a look at the log and modernfix generated a dump. What could be the issue?

The log from Chunky start till the end: https://pastebin.com/1e9uTVDc

Edit: i went to the coordinates where the log says the game tried to access a block entity before it was created and in one i found a spider mobspawner and in the other a waystone.

Edit2: Fabric Chunk Pregenerator mod seems to run just ok, no problems.

pop4959 commented 6 months ago

The culprit looks to be the MCAFabric mod.

"Server thread" prio=8 Id=99 TIMED_WAITING on java.lang.String@425908cc at java.base@17.0.8/jdk.internal.misc.Unsafe.park(Native Method)

It's doing a blocking chunk get during the server tick, which is what's causing your crash.

Not related to chunky, other pre-generators "working just ok" is most likely just a coincidence.

Please use the Discord server for support if you have any other questions or need further help troubleshooting.

pop4959 commented 6 months ago

Also I have seen several other people have issues with MCAFabric, seems to be a common crash with their mod.

E.g. recently #320

pop4959 commented 6 months ago

It looks like they are aware of the issue: https://github.com/Luke100000/minecraft-comes-alive/issues/842

pop4959 commented 6 months ago

@avc1657 Looks like one of the recent commits to chunky may have been aimed to fix incompatibilities here between the trio of mods (mcafabric, chunky, c2me).

If you're not already done pre-generating, could be worth trying to update that and see if it helps. Let me know if you get any results, thanks.

avc1657 commented 6 months ago

How do i update? Is it already available on curseforge or modrinth?

pop4959 commented 6 months ago

How do i update? Is it already available on curseforge or modrinth?

Log into Github and download the artifact from Github Actions or grab it from CodeMC.