nosoop / SMExt-SourceScramble

A SourceMod extension for dealing with memory-related operations.
https://forums.alliedmods.net/showthread.php?p=2657347
GNU General Public License v3.0
84 stars 12 forks source link

If script times out (SlowScriptTimeout), its mempatches dont get cleaned up #11

Open sapphonie opened 2 years ago

nosoop commented 2 years ago

That sounds like an issue upstream in SourceMod; if mempatches aren't getting cleaned up (presumably the failure / timeout is happening in OnPluginStart), then the handles aren't being deleted.

Load failures on startup tend to end up in this weird state of being loaded but not actually running, which is probably related.

Got some sample code to save me some time? It might be enough to see if the load failure triggers OnPluginPauseChange, but it may need some rewriting of the extension to maintain more state instead of letting HandleSys deal with it all.

sapphonie commented 2 years ago

Sure I'll send you some code when I get home from work