Zeex / samp-plugin-crashdetect

Crash/error reporting plugin for SA-MP server
http://forum.sa-mp.com/showthread.php?t=262796
BSD 2-Clause "Simplified" License
116 stars 23 forks source link

[debug] Long callback execution detected (hang or performance issue) #89

Open Allxseiggen opened 3 years ago

Allxseiggen commented 3 years ago

[debug] Long callback execution detected (hang or performance issue) [debug] AMX backtrace: [debug] #0 0001c584 in ?? (0, 61, 25119344, 1215913792) in scriptu.amx [debug] #1 00041e60 in public AMX_OnScriptInit () in scriptu.amx [debug] #2 0001bec8 in public Debug_OnScriptInit () in scriptu.amx [debug] #3 00014778 in public YVers_OnScriptInit () in scriptu.amx [debug] #4 00013f60 in public ScriptInit_OnScriptInit () in scriptu.amx [debug] #5 00013c38 in public SSCANF_OnGameModeInit () in scriptu.amx [debug] #6 0000d038 in public Hook_OnGameModeInit () in scriptu.amx [debug] #7 native CallLocalFunction () in samp-server.exe [debug] #8 00001e98 in public OnGameModeInit () in scriptu.amx *** YSI Warning: y_malloc set up via "CallLocalFunction", memory corruption is a remote possibility Number of vehicle models: 0 [MySQL] Houses: None. [MySQL] Business: 12.

This is strange, i get this error befor OnGameModeInit is called.

Dmitriy51 commented 3 years ago

this error is useful, it tells us where you are the problem with the performance, that is you have to do optimization to work faster

IstuntmanI commented 3 years ago

Reporting slow functions is a pretty new feature of the crashdetect plugin. As far as I know, Y_Less recently updated the YSI-Includes, so crashdetect won't report those callbacks anymore. Try updating the YSI-Includes library. Those functions for initializing YSI are massive and are doing a lot of things, which can't really be further significantly optimized.