View Issue Details

IDProjectCategoryLast Update
0006915Valley 1Crash/ExceptionMar 29, 2012 5:23 pm
ReporterTerraziel Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version0.917 
Fixed in Version0.920 
Summary0006915: Too Many Heap Sections
DescriptionI can force the "Too many heap sections" error pop up to happen if I make the game generate a couple of complex regions (ocean shallows, junkheaps) in a short period, after which the game becomes unresponsive and has to be closed through task manager.

But I suspect it is related to another error which I am going to put in a different report.
TagsNo tags attached.
Internal WeightGame Crash

Relationships

related to 0006916 resolvedChris_McElligottPark Lockup associated with high memory use 
has duplicate 0006924 resolvedChris_McElligottPark Fatal error in gc 
related to 0006926 resolvedChris_McElligottPark Stuttering with high memory usage 

Activities

tigersfan

Mar 28, 2012 4:32 pm

reporter   ~0021508

Related to 6916?

Terraziel

Mar 28, 2012 4:36 pm

reporter   ~0021509

I think so, but I kept them separate because for the occasions mentioned in 6916 I did NOT get the "Too many heap sections" pop up

Chris_McElligottPark

Mar 28, 2012 6:53 pm

administrator   ~0021517

Thanks!

* In the prior version, there was a memory leak during chunk-gen that could lead to game crashes and "out of heap" errors after a certain length of play (which would vary by how many chunks you genned and of what type).

Terraziel

Mar 29, 2012 6:46 am

reporter   ~0021557

This is definitely still occurring in 0.919

tigersfan

Mar 29, 2012 6:50 am

reporter   ~0021558

Hmmm, you are correct. It most certainly is.

Toll

Mar 29, 2012 6:59 am

reporter   ~0021560

My server (which is normally hovering at about 250MB RAM) is at 876MB now.

tigersfan

Mar 29, 2012 7:07 am

reporter   ~0021561

Yeah, I'm not surprised. A restart would help, but, as more chunks get created, it would go right back up.

Chris_McElligottPark

Mar 29, 2012 8:18 am

administrator   ~0021562

Does it definitely still seem chunk-creation-related?

tigersfan

Mar 29, 2012 8:38 am

reporter   ~0021564

Yes, absolutely. It died on me after generating 4 or 5 junkyard chunks.

Toll

Mar 29, 2012 8:48 am

reporter   ~0021567

Hrm. I'm not so sure it's the generating itself that leaks. This was the process for me:

Lauch AVWW: About 520MB.
Load world: About 820MB.
Enter a tower (that I had visited before): 920MB.
Leave the tower: Still 960MB.

After that I could enter and leave the tower at will, with no large boosts in RAM usage.

Enter another tower: 1013MB.
Leaving that tower: 1070MB.

Not sure what exactly that says about anything though...

Toll

Mar 29, 2012 9:29 am

reporter   ~0021573

Also, in case it's relevant: It seems to go up much faster in SP than it does in MP. It also goes up more if you enter a new chunk rather than one you've already been in, but both increase the RAM usage by quite a bit (entering an explored region increased the RAM-usage by about 100MB, entering an unexplored region of the same type increased it by about 200MB).

Chris_McElligottPark

Mar 29, 2012 9:32 am

administrator   ~0021574

Cool, thanks for the added info. I'm chasing this down, I'm definitely seeing a marked increase in chunk-load time, though the underlying terrain-gen (which was the focus of most of my optimizations lately) is running fine. That takes something like 300ms for junkyard flats, and then the rest of the gen takes an incredible amount more time. And the process jumps up in RAM by 500MB on that first junkyard gen in the game, versus about 2MB in my test program. So it's definitely something after the terrain is genned.

Chris_McElligottPark

Mar 29, 2012 5:23 pm

administrator   ~0021605

Thanks!

Issue History

Date Modified Username Field Change
Mar 28, 2012 4:17 pm Terraziel New Issue
Mar 28, 2012 4:32 pm tigersfan Note Added: 0021508
Mar 28, 2012 4:33 pm tigersfan Internal Weight => Game Crash
Mar 28, 2012 4:33 pm tigersfan Assigned To => Chris_McElligottPark
Mar 28, 2012 4:33 pm tigersfan Status new => assigned
Mar 28, 2012 4:36 pm Terraziel Note Added: 0021509
Mar 28, 2012 4:42 pm Chris_McElligottPark Relationship added related to 0006916
Mar 28, 2012 6:53 pm Chris_McElligottPark Note Added: 0021517
Mar 28, 2012 6:53 pm Chris_McElligottPark Status assigned => resolved
Mar 28, 2012 6:53 pm Chris_McElligottPark Fixed in Version => 0.918
Mar 28, 2012 6:53 pm Chris_McElligottPark Resolution open => fixed
Mar 29, 2012 6:46 am Terraziel Note Added: 0021557
Mar 29, 2012 6:50 am tigersfan Note Added: 0021558
Mar 29, 2012 6:51 am tigersfan Status resolved => assigned
Mar 29, 2012 6:51 am tigersfan Resolution fixed => reopened
Mar 29, 2012 6:52 am tigersfan Relationship added has duplicate 0006924
Mar 29, 2012 6:59 am Toll Note Added: 0021560
Mar 29, 2012 7:07 am tigersfan Note Added: 0021561
Mar 29, 2012 7:08 am tigersfan Fixed in Version 0.918 =>
Mar 29, 2012 8:18 am Chris_McElligottPark Note Added: 0021562
Mar 29, 2012 8:38 am tigersfan Note Added: 0021564
Mar 29, 2012 8:45 am tigersfan Relationship added related to 0006926
Mar 29, 2012 8:48 am Toll Note Added: 0021567
Mar 29, 2012 9:29 am Toll Note Added: 0021573
Mar 29, 2012 9:32 am Chris_McElligottPark Note Added: 0021574
Mar 29, 2012 5:23 pm Chris_McElligottPark Note Added: 0021605
Mar 29, 2012 5:23 pm Chris_McElligottPark Status assigned => resolved
Mar 29, 2012 5:23 pm Chris_McElligottPark Fixed in Version => 0.920
Mar 29, 2012 5:23 pm Chris_McElligottPark Resolution reopened => fixed
Apr 14, 2014 9:28 am Chris_McElligottPark Category Bug - Crash or Exception => Crash/Exception