The function number: 2196
The complete error text: " Object reference not set to instance of an object. "
The window affected: Economics and tactical map when incrementing time
What you were doing at the time: Incrementing Time
Conventional or TN start: TN
Random or Real Stars: Real Stars
Is your decimal separator a comma?: No
Is the bug is easy to reproduce, intermittent or a one-off?: Once appeared it never goes away
If this is a long campaign - say 75 years or longer - let me know the length of the campaign as well: 28 years
Someone else has experienced this same bug in earlier C# versions but I don't think anyone has reported it for the current version. It appears to be related to a shipyard at my own homeworld, Earth. A civilian shipyard disappeared when this problem began. . . but at the time I was actually engaged in combat with an NPR race, after destroying four of their space stations orbiting their capital this bug started and won't go away. Every time increment I get the warning, and every time I open economics I get the warning.
When viewing the colony summary the correct tonnage and slipways appear, as though the yard still exists, and the four ships being built at the yard still appear in jobs. They even continue to progress as time advances. However, I cannot see the yard under the appropriate tab. I can see my other civilian yard, but if I add a new civilian yard via SM add, I cannot see the new yard either. However, the new yard's tonnage and slip shows on the colony summary page. Furthermore the class tooled at the yard can't be deleted because it's tooled at a yard. The yards appear to exist, but can't be seen in the relevant tab. I tried various things to "clear" the bug like deleting all related jobs, I even deleted the entire colony, and then the entire race, but the 2196 error message persists. If anyone has an idea how to rectify this I'd love to not abandon my 28 year campaign.
Also, I've not exhaustively read every post in the thread, so I'm not sure if this has been reported before, but my ground forces were also affected. I'm not sure if this was coincidental: the same ground forces bug struck my game once before, and I only noticed it after loading a save, so it's possible the ground forces bug is caused by save/load processes, and I only noticed after reloading; I saved after the bug appeared (I took a copy before hitting save but the bug had already taken hold from my previous save just slightly earlier, and my tertiary backup is seven years prior. . . oops). It's possible this is a known bug and coincidental. IDK.
For the ground forces bug, EVERY formation throughout the race has had its hierarchy cleared. Furthermore, something between 50,000 and 75,000t of ground units has disappeared. This did happen once before, all hierarchies on all formations everywhere got cleared, and a whole 4,000t "Brigade" disappeared from the colony it was on.
At all but three locations no units have disappeared. At the three that have, some entire units have disappeared, while parts of others remain. The missing units were "divisions" made of a 500t "division HQ" unit containing support elements, with three subordinate 1000t "brigade HQ" units containing HQ, logistics, and fire support, each with three 1000t battalions beneath them. In a troop transport orbiting Earth, which had two divisions aboard, four of the six Bd HQ formations remain, but none of the eighteen battalions, and neither of the two Div HQ. On Earth, four entire divisions disappeared with nothing remaining, although other units including an entire STO division remain. Lastly, on an asteroid in another system entirely, another entire division disappeared except for two formations that were originally Bd HQ units; they lost all elements except artillery and were attached to new Bd as artillery batteries. The only thought I have is that POSSIBLY all the units that have disappeared were built AFTER a given time, such as a save; IIRC the entire divisions gone from Earth were all new-build, whereas some Bd HQ were previously in combat, whereas the subordinate Bn were destroyed and replaced.
I've attached my db.