[1.1.37] Game exit. FlowStatistics attempted to save value larger than uint16 as uint16. Exiting to prevent save corrupt
[1.1.37] Game exit. FlowStatistics attempted to save value larger than uint16 as uint16. Exiting to prevent save corrupt
log attached
- Attachments
-
- factorio-current.log
- (39.23 KiB) Downloaded 288 times
Re: [1.1.37] Game exit. FlowStatistics attempted to save value larger than uint16 as uint16. Exiting to prevent save cor
Can you provide the save game?
Can you make it happen again at all?
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
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?
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?
- Attachments
-
- _autosave6.zip
- (17.47 MiB) Downloaded 120 times
Re: [1.1.37] Game exit. FlowStatistics attempted to save value larger than uint16 as uint16. Exiting to prevent save cor
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.
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.
If you want to get ahold of me I'm almost always on Discord.
Re: [1.1.37] Game exit. FlowStatistics attempted to save value larger than uint16 as uint16. Exiting to prevent save cor
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.
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
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
It's always possible for RAM to be perfectly fine but still have random bit flips Hardware isn't perfect.
If you want to get ahold of me I'm almost always on Discord.
Re: [1.1.37] Game exit. FlowStatistics attempted to save value larger than uint16 as uint16. Exiting to prevent save cor
No issues since the RAM swap, so I guess this issue can be closed.