Latter usually. It shoudn't have been a problem though.
Plus I am getting the same issue for just making a regular starbase. I max it out (Miner starbase), then end turn and the game crashes. This though I think is a seperate issue as it seems to be a case of data overload.