#Crash: Out of Memory after manual save
41 messages Β· Page 1 of 1 (latest)
I had this occur again, and it was obvious this time that it occurred right after saving.
Crash: Out of Memory after manual save
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.
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
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
(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
Thank you, we'll take a look.
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
loading the test save from last night I see this which is actually quite concerning
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)
hmmm just crashed again, this time it was immediately after hitting ESC to leave the save menu after saving as
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
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
Another Crash
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
Thanks, we're already on it, investigating ^^
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?
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.
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
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
this was reported in v0.185.4, should no longer happen in v0.199.1
a ok π