Raised This Month: $51 Target: $400
 12% 

Memory Leak


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hmmmmm
Great Tester of Whatever
Join Date: Mar 2017
Location: ...
Old 05-10-2017 , 00:49   Memory Leak
Reply With Quote #1

L 05/10/2017 - 12:48:10: [SM] Unloading plugin to free 32342 handles.
L 05/10/2017 - 12:48:10: [SM] Contact the author(s) of this plugin to correct this error.
L 05/10/2017 - 12:48:10: --------------------------------------------------------------------------
L 05/10/2017 - 12:48:10: Type IDatabase | Count 3
L 05/10/2017 - 12:48:10: Type Timer | Count 9
L 05/10/2017 - 12:48:10: Type CellArray | Count 32322
L 05/10/2017 - 12:48:10: Type Cookie | Count 8
L 05/10/2017 - 12:48:10: -- Approximately 1459904 bytes of memory are in use by (32342) Handles.

Got a memory leak with this error log, not sure exactly where its coming from within plugin. Just wanted to confirm what exactly a CellArray is, and if there are any easy ways to find source of issue since I couldn't find anything when I looked it up.

Thanks

Last edited by hmmmmm; 05-10-2017 at 00:50.
hmmmmm is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 05-10-2017 , 01:57   Re: Memory Leak
Reply With Quote #2

It's an ADT Array. Posting the code here will help.

Last edited by headline; 05-10-2017 at 02:02.
headline is offline
hmmmmm
Great Tester of Whatever
Join Date: Mar 2017
Location: ...
Old 05-10-2017 , 04:46   Re: Memory Leak
Reply With Quote #3

It's a lot of code and there are about 20 different ADT arrays. Any method of narrowing it down?
hmmmmm is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 05-10-2017 , 06:28   Re: Memory Leak
Reply With Quote #4

No, but it should only take a couple of minutes to find the leak if you actually look at the code - just find everywhere you create an ADT Array repeatedly and trace the path to make sure delete / CloseHandle is called on it.
__________________

Last edited by asherkin; 05-10-2017 at 06:29.
asherkin is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode