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

Memory Leak


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
4bdul
AlliedModders Donor
Join Date: Dec 2011
Location: United Kingdom
Old 08-13-2013 , 08:58   Memory Leak
Reply With Quote #1

Recovered from the SourceMod fatal error logs, I get this at-least once per day.

TF2Items_Manager Version: 065f4072e79a

Quote:
L 08/12/2013 - 15:54:09: [SM] MEMORY LEAK DETECTED IN PLUGIN (file "tf2items_manager.smx")
L 08/12/2013 - 15:54:09: [SM] Unloading plugin to free 6507 handles.
L 08/12/2013 - 15:54:09: [SM] Contact the author(s) of this plugin to correct this error.
L 08/12/2013 - 23:18:26: [SM] MEMORY LEAK DETECTED IN PLUGIN (file "tf2itemsinfo.smx")
L 08/12/2013 - 23:18:26: [SM] Unloading plugin to free 4902 handles.
L 08/12/2013 - 23:18:26: [SM] Contact the author(s) of this plugin to correct this error.
__________________
4bdul is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-13-2013 , 09:53   Re: Memory Leak
Reply With Quote #2

Those counts are very low, please post your tf2items_manager config file.
__________________
asherkin is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 09-11-2013 , 11:06   Re: Memory Leak
Reply With Quote #3

Ongivenameditem doesnt close the handle automatically
Seems a lot of plugins do not close it either, you can just use a global variable, and use only this for all item creatin, and keep closing the handle every time you enter ogni... This may be your problem
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-11-2013 , 12:17   Re: Memory Leak
Reply With Quote #4

Quote:
Originally Posted by friagram View Post
Ongivenameditem doesnt close the handle automatically
Seems a lot of plugins do not close it either, you can just use a global variable, and use only this for all item creatin, and keep closing the handle every time you enter ogni... This may be your problem
Global or static variable... the only difference is that static isn't visible outside the function (or file if global) you declare it in.

Anyway, the static trick is what I do. I was hoping we'd eventually get a new flag for closing handles after it finishes processing.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Reply


Thread Tools
Display Modes

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 07:49.


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