#Crash: Out of Memory after manual save

41 messages Β· Page 1 of 1 (latest)

frozen orbit
#

Bug name: Crash, OOM
Priority: Low (happened after a few hours of play)
Game Version: 0.185.4
Description: Game crashed after a save, during a long play session from an out of memory error
Reproduction steps: N/A
PC specification: 32GB Ram
Log File: <see attached>

frozen orbit
frozen orbit
#

Crash: Out of Memory after manual save

empty oracle
#

Hi, please check if u have any other programs running in the background while playing and disable/turn off as many as possible. Remember that some of the softwares are launching on autostart so you may not be aware that some of them are constantly opened and working.

frozen orbit
#

I'm pretty sure its a memory leak, I just noticed this while doing other things:

#

on a side note, do you not pause rendering while in a menu and minimized? O_O

#

I'm not sure if this just something with my play style, but I do very often make manual saves so that might be relevant since I've also seen both the crashes happen right after a save completes

#

okay, i just did another manual save and it DEFINITELY spiked the memory usage:

#

notably it seemed to increase like 15-30 seconds after the save was completed and I task switched out

empty oracle
#

Alright, so the save is being created, despite crash occurring. Could you please attach the save file? Save files are located in:
C:\Users\%username%\AppData\LocalLow\PyramidGames\OccupyMars\SaveData

frozen orbit
#

(its called dontload because I want to go back a few saves before I got distracted while mining and got a heavy dose of radiation when my suit ran out of juice)

#

I am uncertain if its specific to the save file but there you go

empty oracle
#

Thank you, we'll take a look.

frozen orbit
#

of possible interest, i just realized i left the game running in the menu and this is the current stats, perhaps its not a leak per se but something that is slow to get garbage collected:

#

and after another save as while still in the menu:

#

hmmm its growing more slowly, but its clearly growing by like ~2gb every time i save in the menu without exiting the menu

frozen orbit
#

I can't help but wonder if its somehow serializing a reference to a prior save game or something (which would explain why it ballooned each time)

frozen orbit
#

wow, I feel like this is happening sooner and sooner? or maybe I'm just saving more often? it crashed after a mere hour or so this time

frozen orbit
#

oof. another crash. this time it crashed when opening the save menu BEFORE saving, I was still typing the save name, and I think it was still loading the info about the many save files in the directory when it crashed

#

I am wondering if parsing the save files in the save directoy is part of the problem? I have 85 Saves in my save directory

frozen orbit
#

I'm going to try moving most of my old save files away and see if its less crashtastic

#

LMK if you want me to capture a memory profile or something, I do know how to use the Unity Memory Profiler (though I believe it only works with development builds)

#

ugh... I can't delete the saves because steam cloud keeps redownloading them

#

okay, figured out how to disable cloud saves

empty oracle
#

Thanks, we're already on it, investigating ^^

frozen orbit
#

it looks like it can also happen when opening the save dialog, not just after... I'm wondering if the initial "after" crashes were it continuing to enumerate saves after saving

#

also, clearing out the save directory seemed to massively help the issue, since it only crashed after ~4h this time instead of hourly

#

on the bright side, the crash is a good signal for me to go to sleep. thank you for the excellent pro-sleep pattern crash feature πŸ™‚

#

also, are further crash logs helpful?

late folio
#

Be careful that the numerous save files do not exceed the maximum allowed, in another game always with Unity the maximum possible size of the save folder was 1GB, I don't know how much space Piramid has dedicated to the saves, but it could be your crash problem

#

Also if you want to delete older saves without Steam redownloading, you have to do it from within the game.

frozen orbit
#

Peter, i already figured out how to delete them but thanks. there shouldnt be a limit on the number of save files for "unity", tho i believe steamworks limits cloudsaves storage per game, tho i think the developer gets to set it which is probably what your referring to, it sounds like above 256mb limits you might get a slower CDN: https://partner.steamgames.com/doc/features/cloud , but i doubt any of this is relevant to the bug report

frozen orbit
#

It crashed again right as i opened the save menu (before saving). I'm almost certain this has something to do with it scanning the files in the save directory

patent plume
#

Show you gpu usage from performance

inner sequoia
#

this was reported in v0.185.4, should no longer happen in v0.199.1

patent plume
#

a ok πŸ˜„