About the memory issues

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

About the memory issues

#1 Post 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.
My feedback meter decays into coding. Give me feedback and I make mods.

Canderel
Sher'Tul
Posts: 1252
Joined: Mon Nov 24, 2003 2:31 pm
Location: South Africa

Re: About the memory issues

#2 Post 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.

Hachem_Muche
Uruivellas
Posts: 744
Joined: Thu Nov 18, 2010 6:42 pm

Re: About the memory issues

#3 Post 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").
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: About the memory issues

#4 Post by HousePet »

Canderel wrote:How much as a % is those strings of the 1.2gb?
About 85%
My feedback meter decays into coding. Give me feedback and I make mods.

aardvark
Wyrmic
Posts: 200
Joined: Wed Aug 22, 2012 12:16 am

Re: About the memory issues

#5 Post 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.

Post Reply