I imagine any situation where a task gets set that doesn't get immediately rejected and has nobody to do it or nothing to do it with might cause the same problem. Shipyards, cargo transfers, etc.
Believe it or not, I just stumbled into something like this with shipyards on the same colony as well. Different function number so I'll drop it here as well; this one seems to be more specific to trying to do shipyard modifications with zero population.
Error pop-up says:
2. 5. 1 Function#2188: Attempted to divide by zero.
Info dump:
- Function #2188
- Error text: Attempted to divide by zero
- Triggers when selecting some shipyard modifications from the drop-down menu in the Economics window / Shipyards tab
- Conventional start
- Real stars
- US decimal and time formats (I have not reconfigured for UK standards)
- Approximately 75 years into the campaign
- Campaign started and running on v2. 5. 1
+500t, 1000, 2000, 5000, 10000, and Add Slipway options trigger the error pop-up. No Activity, Retool, And Continual Capacity Upgrade do not trigger the error pop-up. Just for giggles I tried to set one of the modifications that generates the error as the shipyard's activity: of course it didn't work, but it did delete
all shipyards at that colony!
SJW: Fixed for v2.6