View Issue Details

IDProjectCategoryLast Update
0001659AI War 1 / ClassicCrash/ExceptionJan 3, 2011 11:45 am
ReporterBlackCobra Assigned ToChris_McElligottPark  
Status closedResolutionnot fixable 
Product Version4.041 
Summary0001659: "Too many heap sections" crash (it's back)
DescriptionThe game is more of less randomly crashing. When it crashes it's using about 1.7GB Ram.
It often crashes when it is paused or shortly after resuming the game.
i'm currently at 7:19 and it crashed like about 5 times or so.
TagsNo tags attached.
Internal Weight

Activities

Chris_McElligottPark

Nov 29, 2010 9:52 am

administrator   ~0004617

Unfortunately, when it's using that much RAM, that means you're simply out of memory that the game is able to use. It's a limitation of the mono runtime, the current mono GC, and the way 32bit applications work. We hope a future version of unity will have a better way of handling that (newer mono GC, mainly), but for the meantime our suggestion is to not get into situations where you're using that much RAM -- only in long games on lots of planets with High ship caps would you really even get close to this much RAM, generally speaking. Probably not the good news you were hoping for, but we recommend Normal ship cap for a solid reason (performance, plus also this -- but it varies strongly by HOW you play, and to some extent how much RAM you have, even on the largest maps, so the options let you do as you please).

BlackCobra

Nov 29, 2010 10:51 am

reporter   ~0004619

awww.... thats unfortunate, but i can life with it :)
I'm playing a 120 planets map with normal shipcap and 8 homeworlds.
After loading the last savegame it uses 1.15GB ram.

i hope that there will be a new version which can handle it.

keith.lamothe

Nov 29, 2010 11:00 am

administrator   ~0004621

It'll probably be a long time before Unity updates its mono-runtime again, and depending on the problem even the updated GC may not save the situation, it would just push the envelope a bit further (which could be enough).

In your case it sounds like it's just too many ships (roughly 8x normal ship cap, plus roughly 8x as many AI waves, etc).

If you could post your save that's hogging 1.15GB right after loading, I may be able to use it when optimizing the memory footprint of the game. It's already pretty highly optimized but we sometimes get a moment to put in a few tweaks here and there.

BlackCobra

Nov 29, 2010 12:49 pm

reporter  

qqqqqqqqqqqqqq.sav (1,110,885 bytes)

BlackCobra

Nov 29, 2010 1:27 pm

reporter   ~0004631

added the savegame

Issue History

Date Modified Username Field Change
Nov 29, 2010 9:26 am BlackCobra New Issue
Nov 29, 2010 9:49 am Chris_McElligottPark Description Updated
Nov 29, 2010 9:52 am Chris_McElligottPark Note Added: 0004617
Nov 29, 2010 9:52 am Chris_McElligottPark Status new => resolved
Nov 29, 2010 9:52 am Chris_McElligottPark Resolution open => not fixable
Nov 29, 2010 9:52 am Chris_McElligottPark Assigned To => Chris_McElligottPark
Nov 29, 2010 10:51 am BlackCobra Note Added: 0004619
Nov 29, 2010 11:00 am keith.lamothe Note Added: 0004621
Nov 29, 2010 12:49 pm BlackCobra File Added: qqqqqqqqqqqqqq.sav
Nov 29, 2010 1:27 pm BlackCobra Note Added: 0004631
Jan 3, 2011 11:45 am Chris_McElligottPark Status resolved => closed
Apr 14, 2014 9:27 am Chris_McElligottPark Category Bug - Crash or Exception => Crash/Exception