You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an AI triggers an out of memory error when the game is saved, the emergency save is successful. When the emergency save is loaded, the AI that triggered the out of memory error is reloaded without saved data (as if a different AI was loaded in its place).
Actual result
When an AI triggers an out of memory error when the game is saved, the emergency save triggers the same out of memory error. The emergency save is empty.
Steps to reproduce
Put the following code in an AI (or Game Script):
function AIController::Save() {
array(1e9);
}
Run the AI with the above code.
The game will crash with an Out of Memory error.
Attempt an emergency save.
The game will crash again with the same Out of Memory error.
Check the emergency save. The file is empty (size: 0 bytes).
The text was updated successfully, but these errors were encountered:
Version of OpenTTD
2019-12-07 master (win7 32-bit)
Expected result
When an AI triggers an out of memory error when the game is saved, the emergency save is successful. When the emergency save is loaded, the AI that triggered the out of memory error is reloaded without saved data (as if a different AI was loaded in its place).
Actual result
When an AI triggers an out of memory error when the game is saved, the emergency save triggers the same out of memory error. The emergency save is empty.
Steps to reproduce
The text was updated successfully, but these errors were encountered: