View Issue Details

IDProjectCategoryLast Update
0016187Stars Beyond ReachCrash/ExceptionApr 29, 2015 1:00 pm
Reporterptarth Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Summary0016187: Memory Leak
DescriptionNot sure what caused it, but I attempted to save and it caused a fatal error. Checking the RAM usage and it is over 1.5 gig.
TagsNo tags attached.

Activities

ptarth

Apr 15, 2015 12:56 am

reporter  

RuntimeData.zip (1,886,004 bytes)

Chris_McElligottPark

Apr 15, 2015 8:29 am

administrator   ~0039982

I don't think it's a memory leak, though it's hard to be sure. Most likely it is a matter of the managed memory running out of room despite there being more unmanaged memory available. Using 1.5 GB of ram for the game is pretty par for the course. After loading all the image assets over time, that might be around 2 GB or a little more. How much ram do you have?

Chris_McElligottPark

Apr 15, 2015 9:03 am

administrator   ~0039983

* Savegame size has been reduced to about 2/3 its prior amount (and is now much faster to save and load, too) thanks to some shifts with what is being saved about specific layers on each tile.

Chris_McElligottPark

Apr 15, 2015 9:44 am

administrator   ~0039985

* Savegames have been shrunk a further 10% or so by adjusting some of what is recalculated upon savegame load with regard to tiles themselves.

Chris_McElligottPark

Apr 15, 2015 9:52 am

administrator   ~0039986

* Another bit of savings on savegame size in particular in savegames that are very high up in turn counts, by culling the number of event log entries from more than 100 turns ago.

Chris_McElligottPark

Apr 15, 2015 9:53 am

administrator   ~0039987

I'm going to mark this as resolved, as I think most likely your problem won't recur. But if you do see it again, please do let us know!

ptarth

Apr 15, 2015 1:05 pm

reporter   ~0039999

I'm using WindowsXP ;). So... 3 gig.

ptarth

Apr 15, 2015 1:06 pm

reporter   ~0040000

Since the update hasn't been pushed I can't confirm if is have been solved. It did reoccur on the last game I attempted and had to abandon around turn 160.

Chris_McElligottPark

Apr 15, 2015 1:16 pm

administrator   ~0040001

Whew! Well, I'm glad to have you testing on that platform, since that really is a good test of things. Anyhow, I'm not at all surprised it recurs with the current version. This only happens when you save, though, right? Not just during general gameplay and nothing is going on?

ptarth

Apr 15, 2015 3:16 pm

reporter   ~0040002

Turn took a couple of seconds around turn 160 to resolve. But other than that, I didn't see any performance problems. The error message only occurs when attempting to save. I can alt+tab away without problem as well. I freed up another 9 gig of HD space, and I'll check to see if that helps, but I'll have to play another hour or so to get into a game situation with that much data.

Chris_McElligottPark

Apr 15, 2015 3:34 pm

administrator   ~0040004

Gotcha, no problem. In terms of HD space, that should not make any difference, I don't think.

As for any turns that start getting slow, if that becomes an ongoing thing we'd love to have saves that are able to duplicate it. That way whatever performance hog might be in whatever code branch is being triggered we can investigate. Thanks!

Chris_McElligottPark

Apr 29, 2015 1:00 pm

administrator   ~0040293

Seems to be fixed now.

Issue History

Date Modified Username Field Change
Apr 15, 2015 12:56 am ptarth New Issue
Apr 15, 2015 12:56 am ptarth File Added: RuntimeData.zip
Apr 15, 2015 8:29 am Chris_McElligottPark Note Added: 0039982
Apr 15, 2015 8:29 am Chris_McElligottPark Assigned To => keith.lamothe
Apr 15, 2015 8:29 am Chris_McElligottPark Status new => feedback
Apr 15, 2015 9:03 am Chris_McElligottPark Note Added: 0039983
Apr 15, 2015 9:44 am Chris_McElligottPark Note Added: 0039985
Apr 15, 2015 9:52 am Chris_McElligottPark Note Added: 0039986
Apr 15, 2015 9:53 am Chris_McElligottPark Note Added: 0039987
Apr 15, 2015 9:53 am Chris_McElligottPark Status feedback => resolved
Apr 15, 2015 9:53 am Chris_McElligottPark Fixed in Version => 0.771
Apr 15, 2015 9:53 am Chris_McElligottPark Resolution open => fixed
Apr 15, 2015 9:53 am Chris_McElligottPark Assigned To keith.lamothe => Chris_McElligottPark
Apr 15, 2015 1:05 pm ptarth Note Added: 0039999
Apr 15, 2015 1:06 pm ptarth Note Added: 0040000
Apr 15, 2015 1:06 pm ptarth Status resolved => feedback
Apr 15, 2015 1:06 pm ptarth Resolution fixed => reopened
Apr 15, 2015 1:16 pm Chris_McElligottPark Note Added: 0040001
Apr 15, 2015 3:16 pm ptarth Note Added: 0040002
Apr 15, 2015 3:16 pm ptarth Status feedback => assigned
Apr 15, 2015 3:34 pm Chris_McElligottPark Note Added: 0040004
Apr 29, 2015 1:00 pm Chris_McElligottPark Note Added: 0040293
Apr 29, 2015 1:00 pm Chris_McElligottPark Status assigned => resolved
Apr 29, 2015 1:00 pm Chris_McElligottPark Fixed in Version 0.771 =>
Apr 29, 2015 1:00 pm Chris_McElligottPark Resolution reopened => fixed