After moving mines onto a colony, got this error:
1. 11. 0 Function #2184: Value was either too large or too small for a Decimal
Error is visible when selecting the colony in question, the Mining screen under Economics is entirely broken, the top section is completely missing, the rest displays garbage.
When advancing time, the population of the colony will kill off its entire Manufacturing sector each tick.
TN start, Real stars, numbers are 12,345. 67
Not sure if the bug is reproducable from other games, but I have a DB which consistently errors after advancing a few 5-day ticks.
Notes:
This is about 75 years into a peaceful campaign
This game was played using Mono on Linux. Haven't had issues up until now, but if this DB won't repro the error on other systems, that may be why.
Attached DB. Observe population of Barnards Star-A I, advance several 5-day ticks.
This is a confusing edge case related to how the agricultural and service sector percentages are calculated.
Agricultural is 5% *
colony cost EDIT: (colony cost + 1).
Service is 100% * the fourth root of the colony population (in billions), but no higher than 70%, and also no higher than whatever is left after the agricultural sector is manned.
Manufacturing is 100% minus the other two, but no lower than 0% (obviously).
In this case, colony cost is 14.97 and population is 18.95 million.
The raw calculations give an agri sector of 79.85% and a service sector of 37.1%.
That would give a total over 100%, so service sector is reduced to 20.15%, and manufacturing gets 0%.
So it's not that the population is killing off the manufacturing sector.
It's that so many people have to work at making food that nobody is left to build things.
That said, after two 5-day ticks I get the same error (1. 11. 0 Function #2184), and the Mining tab shows a blank top pane.
I'm running vanilla Windows 10.
So, long story short, this is reproducible.