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

My server keeps restarting #90

Open emadelanwar opened 3 years ago

emadelanwar commented 3 years ago

[00:46:34] [debug] Long callback execution detected (hang or performance issue) [00:46:34] [debug] AMX backtrace: [00:46:34] [debug] #0 0000858c in ?? (451251652) in WIZARD.amx [00:46:34] [debug] #1 00008858 in ?? (451252704, 6811600) in WIZARD.amx [00:46:34] [debug] #2 00007800 in ?? (6811600, 451254880, 451253764) in WIZARD.amx [00:46:34] [debug] #3 000078d8 in ?? (6811600, 451254880, 0) in WIZARD.amx [00:46:34] [debug] #4 000344fc in public SSCANF_OnPlayerDisconnect (0, 0) in WIZARD.amx [00:46:34] [debug] #5 0000079c in public OnPlayerDisconnect (0, 0) in WIZARD.amx

emadelanwar commented 3 years ago

[00:46:36] [debug] Long callback execution detected (hang or performance issue) [00:46:36] [debug] AMX backtrace: [00:46:36] [debug] #0 00007660 in ?? (6811600, 451254808, 451253764) in WIZARD.amx [00:46:36] [debug] #1 000078d8 in ?? (6811600, 451254808, 0) in WIZARD.amx [00:46:36] [debug] #2 0003455c in public SSCANF_OnPlayerDisconnect (2, 0) in WIZARD.amx [00:46:36] [debug] #3 0000079c in public OnPlayerDisconnect (2, 0) in WIZARD.amx

emadelanwar commented 3 years ago

[16:41:00] [debug] Long callback execution detected (hang or performance issue) [16:41:00] [debug] AMX backtrace: [16:41:00] [debug] #0 000085e0 in ?? (451253348) in WIZARD.amx [16:41:00] [debug] #1 00007644 in ?? (6812664, 451254408, 6811644) in WIZARD.amx [16:41:00] [debug] #2 000a661c in public OnDialogResponse (3, 1080, 1, -1, 6811600) in WIZARD.amx

emadelanwar commented 3 years ago

[16:40:21] [debug] Run time error 4: "Array index out of bounds" [16:40:21] [debug] Attempted to read/write array element at negative index -10000 [16:40:21] [debug] AMX backtrace: [16:40:21] [debug] #0 003b31b0 in public OnActorStreamOut (0, 0) in WIZARD.amx

IstuntmanI commented 3 years ago

Looks like the problems are somewhere in your code. To see the exact lines in the backtrace, compile your script (WIZARD.pwn) with debug informations and then try again. To learn how to do that, check this page. If it still won't display the exact lines after recompiling the script and restarting the server, then you may have done this step incorrectly (make sure not to do this in the wrong Pawno folder; if you have multiple ones in your computer, just do it in the folder of the pawno.exe that you are using).

The first three problems seem to be reporting that your OnPlayerDisconnect and OnDialogResponse callbacks are taking way too much time to be executed. If you say that the server is simply crashing after those reports, maybe there's an infinite loop in both those callbacks, which is weird and may not be the case. The last problem seems to be an invalid attempt to access an array in the OnActorStreamOut callback. Seems like it is trying to access array index -10000, which is invalid, as the first valid array index is 0. Maybe something weirder is going on in that callback.