Page 1 of 1

About the memory issues

Posted: Sun Feb 24, 2013 9:36 am
by HousePet
I did a memory dump when the t-enginge was using 1.2 GB of ram.
Opened it in a hex editor and discovered it is full of strings like:

Code: Select all

\loaded-addons\alchemist+\overload\loaded-addons\archelemsplit\overload\loaded-addons\alchemist+\overload\loaded-addons\werebeast\overload\loaded-addons\alchemist+\overload\loaded-addons\werebeast\overload\data\talents\uber\mag.lua

Code: Select all

\loaded-addons\alchemist+\overload\loaded-addons\alchemist+\overload\loaded-addons\werebeast\overload\loaded-addons\alchemist+\overload\loaded-addons\werebeast\overload\loaded-addons\archelemsplit\overload\data\gfx\talents\rune__speed.png

Code: Select all

\loaded-addons\archelemsplit\overload\loaded-addons\archelemsplit\overload\loaded-addons\alchemist+\overload\loaded-addons\werebeast\overload\data\gfx\particles\notice_enemy.lua
In between these strings is 3 to 5 empty spaces, then 4 random characters, then 3 more empty spaces.

Code: Select all

     ZNÝ|   
I suspect the above is a number of some sort. It appears to count downwards in some sort of sequence.

Hopefully this helps get it sorted out.

Re: About the memory issues

Posted: Sun Feb 24, 2013 11:43 am
by Canderel
How much as a % is those strings of the 1.2gb?

The bytes inbetween are almost always an indicator of the length of the string following it.

Re: About the memory issues

Posted: Sun Feb 24, 2013 5:44 pm
by Hachem_Muche
I'd be interested in seeing a similar dump right after garbage collection to see how much of that data is really redundant or if the garbage collector is not working properly with t-engine.

I think the command to do a full garbage collection cycle is collectgarbage("collect").

Re: About the memory issues

Posted: Mon Feb 25, 2013 7:15 am
by HousePet
Canderel wrote:How much as a % is those strings of the 1.2gb?
About 85%

Re: About the memory issues

Posted: Mon Feb 25, 2013 11:22 pm
by aardvark
Hachem_Muche wrote:I'd be interested in seeing a similar dump right after garbage collection to see how much of that data is really redundant or if the garbage collector is not working properly with t-engine.
Assuming HousePet copied and pasted those lines, nothing would happen. All the Lua side directories use forward slashes.

This looks to be happening in the C portion of the engine. Again, assuming the lines are pasted from the dump.