Raised This Month: $32 Target: $400
 8% 

Can reloading(unloading) heavy plugin cause server crash?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rthompson
Member
Join Date: Oct 2010
Old 07-14-2015 , 05:00   Can reloading(unloading) heavy plugin cause server crash?
Reply With Quote #1

I have built a plugin that has lots of arrays containing player info(previous class, team, etc to be used in match servers)

Sometimes when i reload or unload this plugin the server crashes(especially when the server has many players)

is there any way to fix it?
rthompson is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 07-14-2015 , 05:46   Re: Can reloading(unloading) heavy plugin cause server crash?
Reply With Quote #2

If the plugin weights more than 100 kilograms, this can happen yes

I don't think the amount of data / array has anything to do with it, this would be weird. It's more likely that some extension is causing the crash. For example when you register a callback function in your plugin with some extension and the extension doesn't correctly unregister the callback function on unload, it will probably crash. Make sure to unregister any hooks / callbacks, if the extension provides a way.

A stacktrace from the linux GDB debugger would be helpful in order to exactly determine where is crashes.
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni 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 01:00.


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