RoBrit / Moo-Fluids

Mod for Minecraft that dynamically generates 'milkable' cows for various fluids
GNU General Public License v3.0
16 stars 18 forks source link

1.10.2 - Server Crash NPE #46

Closed Dyonovan closed 5 years ago

Dyonovan commented 7 years ago

Its constant now whenever you log into that chunk where it initally happened.

Caused by: java.lang.NullPointerException at com.robrit.moofluids.common.entity.EntityFluidCow.writeSpawnData(EntityFluidCow.java:350)

Full Crash log: https://gist.github.com/Dyonovan/0ecc9ebed2e82fa55105b130478e2fe7

Zeevian commented 7 years ago

I can second this, just happened to me 3 times back to back on log in. Once the chunk loads, it immediately crashes. Different mods, but same path crash-2017-03-27_01.39.26-server.txt

Lycanic commented 7 years ago

Reporting another instance. Purging the possible cows somewhat (examples included things which are gases, IC2 coolant in hot/cold (and same for steam) and fluid cyanite which was written in a different format to everything else) seems to have reduced the crashes.

They only occurred for me on generating new chunks, deleting those chunks (NBT editor sometimes needed) would allow me to log back in again. Without those chunks deleted, the crash occurs identically on loading the world (sp, assumed loading that chunk).

I have the same line as the first poster in the crash logs, I'm playing on a custom pack which has a lot of mods smooshed together (so if there's a chance for interference, it's probably my fault).

cauliflower69 commented 7 years ago

I can confirm the same thing. We just updated to the latest foolcraft and are getting the exact same issue. I should note that they did remove mechanical users which were harvesting the fluid.

WinterGrave commented 7 years ago

I get same thing on my server: https://pastebin.com/iJh1JH3A

lilti commented 7 years ago

I am having the same issue. I am playing the Foolcraft pack and can no longer log into my world. It's the same error:

Caused by: java.lang.NullPointerException at com.robrit.moofluids.common.entity.EntityFluidCow.writeSpawnData(EntityFluidCow.java:350)

Is there a fix coming for this? I would like to avoid deleting my fluid cows if possible.

Edit: Is this mod still being supported? I see the last thread that was labeled by the developer was back in May 2016. I would be really sad to see it go but it would nice to know whether these issues will ever be worked on.

Lycanic commented 7 years ago

So, to temporarily fix this issue you need to stop cows spawning - I think setting the "Fluid Cow Global Spawn Rate" to 0 should do it.

You then need to remove the problem cow - I do this either via chunk deletion or region deletion. In saves/name/region is where you'll do this. Chunks will require NBTExplorer to delete chunks within each r.n.m.mca, where each r.n.m is a 512 block square region (16 chunks). If you're exploring afar you can probably be okay with just deleting the relevant region (eg if you were going in the +x direction you can just delete the r. with the highest first number). You should be able to find your coords in the crash log, but these won't be the same as the problem cow so you may have to delete some areas around you.

lilti commented 7 years ago

In my situation it definitely occurred in chunks that were already generated as I am right outside my base and the surrounding area is well explored. Unfortunately for me, deleting the area around me would basically be like deleting my whole save and starting over. I'm still holding out hope for an update, otherwise I will just have to remove the mod.