Comparator on fluix mana pool causes massive amount of neighbor updates leading to severe lag and crashes with a large enough network
jpenilla opened this issue ยท 7 comments
A setup like the following is enough to almost kill the server:
https://spark.lucko.me/KTTAejI7BT
I noticed this when I crashed my server by replacing a mana pool in an existing setup with a fluix mana pool connected to a pretty large me network. I got log messages from the collecting neighbor updater about >1000000 chained updates, then a crash.
I'm using the comparator to stop generating mana when the pool/network is full enough, so a level emitter might be a better solution, but this should probably be addressed in some fashion anyways.
Nevermind, I can feel the lag and the console does fill up with [Server thread/ERROR] (Minecraft) Too many chained neighbor updates. Skipping the rest. First skipped position:
. The above build does seem to fix it. Will profile soon, or could you provide a profile?
I can't really reproduce this big of a lag spike, but could you see if this build helps?
It seems like the lag is fixed, but now the comparator output doesn't change until I place something next to the comparator to force a neighbor update.
It should be updating every 10 ticks at most, and seems to work for me. Could you please find the minimal mod list which reproduces this issue and screenshot the setup?
My setup has an ME IO port with a creative cell giving Mana, a 256k inside the drive and it seems to change comparator level on its own
Can confirm it works with just appbot and it's dependencies.
The modlist where it doesn't update is kind of large (https://github.com/TeamAOF/All-of-Fabric-6/blob/main/MODLIST.md) so not really looking forward to figuring out which is conflicting... but will try and get around to it sometime.
I'm using level emitters now, so it would be fine with me if you closed this issue with the fix, and then I or someone else can open a new issue at the appropriate repo when it's found what the conflict is.
Looks like the issue is I updated to 1.5.3 of the modpack: TeamAOF/All-of-Fabric-6#202
Means it has to be one of these mods: https://github.com/TeamAOF/All-of-Fabric-6/blob/main/changelogs/changelog_mods_1.5.3.md
edit:
The cause of the missing updates was determined to be MineCells.
I've updated Mine Cells with the fix applied. Modrinth, CurseForge is under review.