View Issue Details

IDProjectCategoryView StatusLast Update
0004026Spring engineGeneralpublic2013-10-06 02:21
Reportersilentwings Assigned ToKloot  
PriorityhighSeverityblockReproducibilityalways
Status closedResolutionduplicate 
Product Version94.1.1+git 
Summary0004026: memory leak!
DescriptionSomething changed in between -1228 and -1230 that causes a memory leak, at least when loaded with the ba-svn.

In -1228 and earlier, starting a game with a lone com & no movement, memory used by lua stays constant at ~6mb. With -1230 and later, the same test has lua mem increasing at about 4mb per sec.

Steps To ReproduceRun -1230 or later, use latest ba svn or ba-test (it now has all updates for 95 in it). Type /debug and watch lua mem. Repeat with -1228.
Additional InformationUsing /debug and then disabling luaui/luarules we worked out that the leak is related to something within luarules. The memory leaks independently of whether units are built/moved/etc. I'm on win7, the same issue reproduced for another win user.
TagsNo tags attached.
Checked infolog.txt for Errors

Relationships

related to 0003845 resolvedKloot Partial (possibly graphical) lag when playing 

Activities

Kloot

2013-10-05 23:54

developer   ~0011687

Last edited: 2013-10-05 23:54

probably Lua garbage collection is messed up due to 0003845

silentwings

2013-10-05 23:56

reporter   ~0011688

That would fit - we tried narrowing it down to which gadget and discovered that less gadgets meant less mem leaks but no single gadget had a big effect.

Issue History

Date Modified Username Field Change
2013-10-05 23:50 silentwings New Issue
2013-10-05 23:54 Kloot Note Added: 0011687
2013-10-05 23:54 Kloot Note Edited: 0011687
2013-10-05 23:56 silentwings Note Added: 0011688
2013-10-06 00:07 Kloot Relationship added related to 0003845
2013-10-06 02:21 Kloot Status new => closed
2013-10-06 02:21 Kloot Assigned To => Kloot
2013-10-06 02:21 Kloot Resolution open => duplicate