Open Bitals opened 1 year ago
I had the same problem. Not sure how it can happen, the code seems to be constructing a Color object from red, green and blue components, not a string name like "Green".
Per the stack trace it originates in Cell.getColor()
. The green value calculated from the cell health is outside of the range [0,255]. Maybe it's a dead cell or the health is otherwise outside of the normal range.
Is there a configuration that makes the issue reproducible every time it's run?
Is there a configuration that makes the issue reproducible every time it's run?
Every time it happened it did so after a long time (overnight for example), so unfortunately I do not have a save close enough to be useful.
It does not always happen and I don't know how to reproduce (it could happen to any of the thousands of cells that exist in the simulation). But if it's just a matter of the green component being outside the range then the solution would be as simple as clamping the red, green and blue values to [0, 255]. I mean, it doesn't really matter if the colour of a cell is "too" green unless that colour is not just for display but is also somehow being used in the calculations.
I left it running for some time, it hanged with the following error: