The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

(#514be03) crash just after loading a save game

Started by Phystam, May 31, 2021, 09:21:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


I don't know whether it is a related issue:,20926.0.html
I loaded an old save game which was saved before incorporation of PJMack's improvement patch, and saved it with the latest version. (#514be03)
Just after loading the new save game, the game showed a fatal error and crashed.

Try this:

I misplaced this report on the wrong board. Can someone move this to "not closed" bug report? <- I could.  forget this~~


double post!
I updated the pakset and the Extended(#51a0f3c), then it works fine for a while. But after some time, I got another crash without a fatal error.
I made a save game that can reproduce the crash just after loading:

GDB shows this message. Probably divided by zero or something?


And this is another embarrassing mistake I have to apologize for...  I submitted a crash prevention fix.

What is happening is that during congestion percentage calculation, the combined_actual multiplied by 100u is greater than 2^32 resulting in an overflow and resulting in 2^32-100.  This, upon conversion to sint32 results in -100, hence the division by zero.  The fast fix was to ignore any congestion percentages less than zero.