Post 04 Jul 2012, 23:11 by Lewin
Yes silent crashes like that are usually stack over flows in my experience. There is one known (but very rare) stack overflow which we haven't fixed yet, in regards to flattening stonehills after mining so units don't become stuck. It does it recursively until no one is stuck, which works well in 99.999% of cases, but there are some situations which can't be solved (e.g. near houses which can't be flattened) and that results in a stack overflow. It's not a "neat" algorithm (just keep flattening everything until it is solved) and definitely needs rethinking. We will fix it, but because it's so rare it hasn't reached top of the priority list yet.
Of course it could be a stack overflow somewhere else, I don't know of any others but there could be some. I looked up the crash location, it's in LoadResString which is used to get a string out of the string table. (so a constant string) The problem is this might not be the cause of the crash, it could be trying to load an error message in the exception handling but failing due to having no stack space.
Thanks for your report!
Lewin.