Zeex / samp-plugin-profiler

Performance profiler plugin for SA-MP server
http://forum.sa-mp.com/showthread.php?t=271129
BSD 2-Clause "Simplified" License
48 stars 8 forks source link

Profiler Crashes After Function Call #21

Open JonRB opened 7 years ago

JonRB commented 7 years ago

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.

Zeex commented 7 years ago

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.