Crash because out of memory

Avatar
  • Views 8,692
  • updated
  • Completed - Resolved

Hi guys, in the mission where I go for the Keno (together with the other cube-like shaped underlord Mira), when reaching a certain number of minions, my computer crashes despite having 8 GB RAM (under Win7pro x64). As Noontide asked, I'll post my information here. At the time of the crash, WFTO used 3.6 GB RAM. I'm using Steam, so my WFTO versionis up to date. 2016-09-09_090922.7z War for the Overworld Launcher Log.txt

Game Version:
Steam Public
Platform:
Windows

How would you rate the customer service you received?

Satisfaction mark by 7upman 8 years ago

Add a comment about quality of support you received (optional):

Avatar
Lee "Noontide" Moon Designer & Community Manager
  • Completed - Resolved
Avatar
Stefan Furcht Programmer

Improvement ticket created.

Avatar
Stefan Furcht Programmer
  • Completed - Next Patch
Avatar
Stefan Furcht Programmer
  • Started
Avatar
Stefan Furcht Programmer

I am glad you got it sorted for you and I agree something like a clear warning when memory gets low would be useful.
However most of the time we are working on a much higher layer of abstraction and keep the memory management to the game engine (Unity).
And there must be surely ways to figure the current memory load, but we can only do this if it works for all supported platforms: Win32/Win64, OSX64 and Linux64 and this is where things can get fiddly and it might be that we finally need to implement it in multiple ways, one per platform.
However I will raise a low priority improvement ticket to investigate into such feature in future.

Cheers and thanks for letting us know.

Avatar
7upman

The issue is actually a non-issue: After I closed all and any other software that was running in the background (with the exception of anti-virus and Steam), I had no more problems, although WFTO did help itself to more than 6 GB RAM. That being said, the crashes happened even after the hotfix. That's why I think that my suggestion is still valid: After all, how else should the user know that it's high time to clean up their RAM?

Avatar
Stefan Furcht Programmer
  • Pending Customer

Hello 7upman,
I think the out of memory issue was caused by a temporary issue which caused log spams.
But it was fixed in a recent hotfix, thus I believe it should not occur on your end anymore.

Can you confirm if this issue is fixed or not for you?

Avatar
Lee "Noontide" Moon Designer & Community Manager
  • Accepted
Avatar
7upman

It might be instructive to have a look at how many creatures the game has to take into account in the save. I had simply lost count myself, and then there was Mira with her host of creatures as well. Quite possible they were just too many, so maybe you could integrate an Advisor warning that some creatures should be removed if RAM is too low. Something like:


"The walls of your dungeon are weakened by the negative energy of so many creatures. Sacrifice some of them to ensure stability."


If things get worse, the next message could be:


"The walls of your dungeon are cracking under the pressure of the negative emotions of your minions. Sacrifice some of them now, or risk your dungeon collapsing."


That's just an idea, I have no idea if a) you can detect how much RAM is available at all for the game to take, and b) where to draw the line. I'm sure you'll find a clever way.


That being said, I wanted to thank you and your teammates for producing such an awesome game. By now, I like it even more that the original Dungeon Keeper 2, even if that had an awesome German localization. :-)

Avatar
Lee "Noontide" Moon Designer & Community Manager
  • Under Review

Thanks for those I'll look into it during the next week. (We're really swamped this week I'm afraid.) Though at this point I'm not sure there'd be much we can do in the short term, we might find other places to save some memory down the line. I'm just not sure why it's simply not allocating more free resources for you.


The Advisor warning is likely a variation on him simply letting you know that your population is full and as such the gateway can't attract more units, which definitely means you've got quite a few on your side. :)