Miranda NG Official Community Forum

Forum for English speaking Miranda NG users => Bug reports => Topic started by: BigMike on 01 11 2014, 22:03:45

Title: Memory leak in ConnectionNotify plugin
Post by: BigMike on 01 11 2014, 22:03:45
It seems, there is a memory leak in ConnectionNotify plugin 0.1.0.5 (Miranda NG 0.95.2 #9966 x64).
Miranda's private bytes set grows up to 300mb when Miranda is running for several hours. This doesn't happen, if the ConnectionNotify plugin is disabled.
Title: Re: Memory leak in ConnectionNotify plugin
Post by: BigMike on 20 03 2015, 18:13:21
The problem is still there with Miranda v0.95.3 build #11706 x64
Title: Re: Memory leak in ConnectionNotify plugin
Post by: Wishmaster on 20 03 2015, 18:33:26
Hm, interesting. We are regularly using Coverity (static code analyzer) and it doesn't report a leak in that plugin. Seems to be a bit more complicated. Can you make a bug report on the bug tracker?

EDIT: Forget it,  I think I found it.

EDIT2: I fixed some leaks, please test with #12455 (http://trac.miranda-ng.org/changeset/12455)
Title: Re: Memory leak in ConnectionNotify plugin
Post by: AnrDaemon on 20 03 2015, 20:07:33
Heisenbug? (http://en.wikipedia.org/wiki/Heisenbug) :)
Title: Re: Memory leak in ConnectionNotify plugin
Post by: BigMike on 21 03 2015, 13:38:45
The problem seems to be gone with 0.95.4 #12462 x64. Or at least, it's much better now. Thank you.
I've been watching the process for almost an hour and the private bytes size stayed at a relative constant level.
Since in the new build, the ConnectionNotify plugin seems to be broken and to ignore all filter rules, I get masses of popups for connection notifications and (I think) therefore the used memory is going up and down all the time, but as I wrote, it stays on a constant level.
Title: Re: Memory leak in ConnectionNotify plugin
Post by: Wishmaster on 21 03 2015, 14:16:37
Fixed in 12470 (http://trac.miranda-ng.org/changeset/12470)

EDIT: Development version has been reuploaded.
Title: Re: Memory leak in ConnectionNotify plugin
Post by: BigMike on 23 03 2015, 17:58:51
Thank you :) All seems to be fine now.