SA-MP Forums Archive
Server Crashes after filterscript unload. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Server Crashes after filterscript unload. (/showthread.php?tid=371303)



Server Crashes after filterscript unload. - Treyvan - 23.08.2012

It's probably just me but when I unload filterscripts (just certain ones) I get this:

Quote:

[00:54:23] Filterscript 'test.amx' unloaded.
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
Game server has exited.

Anyone have any idea what that error message means?


Re: Server Crashes after filterscript unload. - CrystalMethod - 23.08.2012

-ignore-.
Fail reply.


Re: Server Crashes after filterscript unload. - nGen.SoNNy - 23.08.2012

Can you show me that test.pwn ? I want to see what's in it!


Re: Server Crashes after filterscript unload. - Treyvan - 23.08.2012

I'm more interested in that error the server is returning then anything else. It doesn't do it with just -that- filterscript. It does it with a few of them, and all of them are different. However I notice it happens on filterscripts that interact with plugins so I'm wondering if that has anything to do with it.

Which is why I posted the error. test.amx is 1,1510 lines of script for use with an irc plugin. I'm not sure throwing all that up would be too beneficial other to solve this problem. If it's required I'll do it but only if someone from the sa-mp dev team asks for it and even then I'd only PM it due to the fact it was written by me and I don't wish to release it.

However I can tell you the FS compiles without error or warning, and works just as its designed to do while the server is running. I just can't unload it, or reload it from rcon (like if I make changes to it) without it giving the above error and the game mode exiting.

Meh could be the plugin itself though. This type of issue also seems to happen with other plugins though. But it could just be me, dunno until I know what that error message from the sa-mp server means :/


Re: Server Crashes after filterscript unload. - Nirzor - 23.08.2012

There is a problem with your filterscript or you did not upload the includes correctly!


Re: Server Crashes after filterscript unload. - nGen.SoNNy - 24.08.2012

you should ignore some funtions that have to be called OnFilterScriptInit like killtimer etc..