2025-07-21 21:53 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004026Spring engineGeneralpublic2013-10-06 02:21
Reportersilentwings 
Assigned ToKloot 
PriorityhighSeverityblockReproducibilityalways
StatusclosedResolutionduplicate 
Product Version94.1.1+git 
Target VersionFixed in Version 
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
Attached Files

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

-Notes

~0011687

Kloot (developer)

Last edited: 2013-10-05 23:54

View 2 revisions

probably Lua garbage collection is messed up due to 0003845

~0011688

silentwings (reporter)

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.
+Notes

-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 View Revisions
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
+Issue History