Page 1 of 1
[1.1.37] Game exit. FlowStatistics attempted to save value larger than uint16 as uint16. Exiting to prevent save corrupt
Posted: Tue Aug 17, 2021 2:39 pm
by jixxed
log attached
Re: [1.1.37] Game exit. FlowStatistics attempted to save value larger than uint16 as uint16. Exiting to prevent save cor
Posted: Tue Aug 17, 2021 4:32 pm
by Klonan
Can you provide the save game?
Can you make it happen again at all?
Re: [1.1.37] Game exit. FlowStatistics attempted to save value larger than uint16 as uint16. Exiting to prevent save cor
Posted: Wed Aug 18, 2021 9:10 am
by jixxed
I can add the savegame. I deleted the _autosave7.tmp.zip, which was corrupted(likely due to the exception).
It happened while I was AFK. I did not try to reproduce it, but perhaps you can by AFKing. I just continued the game and no issues since.
I expect the exception/stacktrace gives some pointer as to what is going wrong?
Re: [1.1.37] Game exit. FlowStatistics attempted to save value larger than uint16 as uint16. Exiting to prevent save cor
Posted: Thu Aug 19, 2021 1:22 am
by Rseding91
I looked at the place in code where the crash happens and the only way that can happen is due to memory corruption. Since the value the crash is talking about is enforced to be <= 300 through our code and it's reporting as > 64000 which is impossible without memory corruption.
Unless you have some reliable way to reproduce the issue I added a logging line for the next release that will include the size it finds so we can better see what it thinks the size is.
Re: [1.1.37] Game exit. FlowStatistics attempted to save value larger than uint16 as uint16. Exiting to prevent save cor
Posted: Thu Aug 19, 2021 1:21 pm
by jixxed
That could very well be the root cause.
I experienced a single VM on the same server sometimes crashing with a memory error. The memory was untouched running in the server without issue for 7 years, so the sudden error did not scream bad memory to me. I've swapped all the memory in the server and am now running memtest on the old. Will let you know the results.
Re: [1.1.37] Game exit. FlowStatistics attempted to save value larger than uint16 as uint16. Exiting to prevent save cor
Posted: Fri Aug 20, 2021 1:26 pm
by jixxed
I ran memtest on the RAM and it came back with no errors. That is still no guarantee though, but it's about as far as can go to exclude hardware issues. Will continue to play on the server to see if this or other issues arise.
Re: [1.1.37] Game exit. FlowStatistics attempted to save value larger than uint16 as uint16. Exiting to prevent save cor
Posted: Fri Aug 20, 2021 3:07 pm
by Rseding91
It's always possible for RAM to be perfectly fine but still have random bit flips

Hardware isn't perfect.
Re: [1.1.37] Game exit. FlowStatistics attempted to save value larger than uint16 as uint16. Exiting to prevent save cor
Posted: Tue Aug 24, 2021 7:16 pm
by jixxed
No issues since the RAM swap, so I guess this issue can be closed.