SexyMap

SexyMap

31M Downloads

Slight Memory Leak

Baelydon opened this issue ยท 1 comments

commented

I'm currently experiencing a memory leak with v. 8.0.8. I'm not sure if it was happening prior to 8.0.8, if it had been, I simply didn't notice it. The amount it accumulates to isn't very much (on it's own), and it seems like the game does something about every ~6 minutes that... I don't know... resets the amount of memory that each addon uses.? (not entirely sure about the amount of time either). It does accumulate at about the same steady pace regardless of what I'm doing in the game at the time.

Just one addon doesn't make a difference in performance, sadly though... there are several addons I'm using that all seem to have a memory leak, and that starts to add up! I'm not sure if any of these addons have anything in common, or rather, what they have in common... but I'm posting this here, and am going to post the same thing on the others' project pages.

I'm not that knowledgeable about the inner-workings of addons so I'm afraid I'm not sure what I can do to help. I know that I don't get any errors, I'm not using any fancy borders, the compass is static (doesn't rotate with character's movement), and the memory will ramp up just sitting in an inn for an hour without even moving or doing anything (like while typing this).

Again, the amount of memory used isn't very much, it starts out at roughly 700kb and then ramps up to about 2000kb during that 10 minute time frame, before the game resets it.

For what it's worth, these are the other addons I'm using that also seem to have memory leaks, in order from least memory used to the most memory used.

SexyMap
Prat 3.0
IceHUD -Ace3-
DataStore by Thaoky

Thank you, please let me know if there's anything I can do to help/provide any more information.

commented

There is no such thing as a "memory leak" in Lua. What you're seeing is simply the growth of memory containing addon data, and then that memory being purged when it is no longer needed. A memory leak would be if the data was never purged and kept growing indefinitely.

It sounds like you are being a tad paranoid which is fine since as you say you are unfamiliar with this. But in general, you shouldn't worry much about memory usage when it comes to WoW addons.

In regards to what is causing what you are seeing, you most likely have coordinates enabled. Every time a coordinate update is requested it will use more memory. This memory will eventually be purged as you have already seen. Completely normal behavior.