Memory Leak with CHAT_MSG_ADDON API

Hello, in WOTLK Classic (and also in BC), when addons are trying to communicate between players, they send a lot of CHAT_MSG_ADDON messages. When there are a lot of messages (pvp like wintergrasp, big addons trying to sync data like TSM, raids …), the game start to freeze and become unplayable.
After some analysis and with the help of addons developers, it seems that memory is increasing very very fast (more than 1MB/s during this kind of peak). It always happen when an addon receive lot of CHAT_MSG_ADDON messages.
An easy example to reproduce this issue, is to have DBM installed, and another addon like details, tsm, or whatever is going to receive messages. When some messages start to be received, memory is increasing slowly for DBM-core (something like 200KB every “big” message), until a garbage collector is used. DBM is not doing anything with these mesages, and does not store anything, because others prefixes are never subscribed by DBM. This is where the memory leak happens.
A lot of addons in the top download list are impacted by this (DBM has more than 400M downloads !).
I hope it was clear enough to be transmitted to people working on Addons API. Thanks in advance for your help !!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.