Open hhyyrylainen opened 2 years ago
Looking at the logs this seems to happen in the editor, meaning that this is a sibling issue of: https://github.com/Revolutionary-Games/Thrive/issues/3006
I would guess that there is a small chance that the microbe object was just being modified causing the data to be null and hitting this error. As mentioned in that other issue I already added some mitigation, but this too probably should be fully fixed by a solution to that issue #3006
Actually reading through the logs again, that doesn't seem to be the case actually because those errors appeared before the microbe editor time elapse message was printed, meaning that the error did come from a normal auto-evo run. It seems the player maybe had auto-evo during gameplay turned off, but even with that I can't get this error to happen, the most I can do is add some extra checking code to try to find where that null comes from sometime in the future when this issue gets reported again.
Reported by a player getting very often auto-evo failures with errors like this:
Here's the function that is listed last in the callstack:
https://github.com/Revolutionary-Games/Thrive/blob/87dfcad0fb3e1a013ac3874c5e5da8921f0657c6/src/auto-evo/simulation/SimulationCache.cs#L18
Which is pretty simple so really it looks like the only thing that could really be null is species, patch or cachedEnergyBalances.