[Logged] Game Fails to Save after "System.OutOfMemoryException"

Post bug reports and ask for game support here.

Moderator: MOD_Command

Post Reply
stww2
Posts: 281
Joined: Tue May 23, 2017 4:58 am

[Logged] Game Fails to Save after "System.OutOfMemoryException"

Post by stww2 »

I've been playing Caribbean Fury #1 over the past couple days, which is unsurprisingly taxing on my system. However, I have recently noticed a slight problem. On several occasions now, after having played the scenario for, say 20-40 minutes, the game will take longer to save (normally it takes maybe 1-2 seconds, but when this problem manifests it takes longer than 10 seconds and the program will stop responding in the process). Usually, either before or shortly after, the game will report that the autosave function has failed due to a "System.OutOfMemoryException." Normally, if this occurs, I simply would save the game and restart, however I subsequently discovered that the save process, when unusually lengthened, was not actually occurring (when looking at the save file in the game folder, the "Date Modified" time fails to update after I save the game, indicating that the file in question was not actually overwritten). Furthermore, when I attempted to resolve this problem by using the "Save As" function, the "Save As" dialog box did not occur.

Ultimately, I am able to restart the game, load the most recent save file (and accept any lost progress that results), and continue playing, with game saving properly until the error manifests itself again. So not the end of the world, but not ideal either.

I would attach a save file, but 1)I'm not sure how much it would help, since I can't actually save the game during this error and loading the most recent file results in the game working again, and 2) I don't have 10 posts yet so I can't attach any files :(

I also attempted to copy and paste the relevant data from the exception log, but this too was blocked by the Forum .

Rory Noonan
Posts: 2418
Joined: Thu Dec 18, 2014 1:53 am
Location: Brooklyn, NY

RE: [Logged] Game Fails to Save after "System.OutOfMemoryException"

Post by Rory Noonan »

Logged for investigation.

0013936
Image
stww2
Posts: 281
Joined: Tue May 23, 2017 4:58 am

RE: [Logged] Game Fails to Save after "System.OutOfMemoryException"

Post by stww2 »

Now that it has been more than a week since I've posted 10 messages on this forum, I can now upload relevant files, which hopefully may be of some assistance. Attached are the exception log from the incident and the last successful save file before the the error occurred.
Attachments
SaveFile..tionLog.zip
(5.74 MiB) Downloaded 13 times
User avatar
SteveMcClaire
Posts: 4342
Joined: Mon Nov 19, 2007 9:31 pm

RE: [Logged] Game Fails to Save after "System.OutOfMemoryException"

Post by SteveMcClaire »

This should be fixed in the next update. In this specific case the 'out of memory' was being caused by some ground units in Africa trying to find a path to move to Belize (possibly an issue with the scenario / scripting?) If you clear the plotted course for those units you should be able to continue without the errors.

stww2
Posts: 281
Joined: Tue May 23, 2017 4:58 am

RE: [Logged] Game Fails to Save after "System.OutOfMemoryException"

Post by stww2 »

Oh wow! That's really interesting; I assume there was a teleportation event scripted that malfunctioned in some manner? I did manage to complete the scenario (a couple of minutes' progress lost here and there is annoying, but not the end of the world) and eventually this problem simply stopped occurring. I assumed it was because I had simply killed off enough units to reduce the use of system resources to a more tolerable amount, but I wonder if this unit's course issues resolved themselves. Now I'm curious...

Thanks!
Post Reply

Return to “Tech Support”