Zeex / samp-plugin-profiler

Performance profiler plugin for SA-MP server

Home Page:http://forum.sa-mp.com/showthread.php?t=271129

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Profiler Crashes After Function Call

JonRB opened this issue · comments

When I call the GivePlayerWeaponEx function in my code, the plugin sometimes crashes.

Additionally, when the gamemode exits in any way, the server crashes and no output is produced.

I tried local builds (Debug and Release) but they bore no fruit.

The only version I have managed to get results out of is 2.10.3, which seems to be giving rather anomalous results for the above mentioned function - Apparently it is using up 64.61% of the Total Time, and given that the GivePlayerWeaponEx function does some very straightforward ammo checking (To avoid the GivePlayerWeapon ammo level issue in which you can give somebody one ammo of a different weapon and they will have 1+N, where N is their old ammo level).

I'd love to get this plugin running so that I can better diagnose server issues.

commented

Can you copy the stack trace from your local debug build and post it here so I could see where it crashed? You'll need to run samp-server.exe under Visual Studio to do this.