yeelp / Scaling-Feast

A simple, balanced way to increase your maximum hunger in Minecraft over the course of a world.
MIT License
0 stars 1 forks source link

[1.12] Solcarrot crash: onFoodEaten(SOLCarrotModule.java:81) #125

Open Krutoy242 opened 2 years ago

Krutoy242 commented 2 years ago

Mod Version: v1.8.2 Minecraft Version: 1.12.2 Loaded Mods: E2E-E modpack (Not tested on small list)

Describe the bug Various game events causing this crash:

java.util.concurrent.ExecutionException: java.util.NoSuchElementException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
[...]
Caused by: java.util.NoSuchElementException
    at java.util.LinkedList.removeLast(LinkedList.java:283)
    at yeelp.scalingfeast.integration.module.solcarrot.SOLCarrotModule$1.onFoodEaten(SOLCarrotModule.java:81)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_4665__onFoodEaten_FoodEaten.invoke(.dynamic)

Steps to Reproduce Not stably reproducible. Sometimes it happen when mining the ore: Exhausted Netherrack. Sometimes - when hunger bar changed by eating.

Screenshots

Additional context crash-2022-03-21_20.22.45-client.txt crash-2022-03-21_21.15.57-client.txt

Sereath commented 2 years ago

Ive been getting the same crashes. Not easily reproducible either:

From a friend: https://pastes.dev/szQiVqqMOX

One that happened to me, happened as soon as I consumed an Emerald Apple from Pickle Tweaks. https://gist.github.com/Sereath/10c248b2974143f3f9dec76b0feeaba9

latest.log https://gist.github.com/Sereath/3a723e4d8d2d389ef3e32a30d09ec9aa

yeelp commented 2 years ago

This is very strange. I've seen this happen to many others but I'm unable to reproduce this myself. I'll add a check that avoids this situation. Not the best fix, but it should work.