That sounds like you were in the Population and Production window, and encountering a bug that's been fixed with the latest versions. By the System View window I mean the one you access by pressing F9. If that still crashes your game, what version are you playing?