[Plugin] CrashDetect

OK, glad to hear that. You might want to enable file extensions in explorer to avoid such mistakes in the future.
Reply

Please help

Код:
[21/02/2015 15:06:15] [debug] Server crashed due to an unknown error
[21/02/2015 15:06:15] [debug] Native backtrace:
[21/02/2015 15:06:15] [debug] #0 e085fe8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[21/02/2015 15:06:15] [debug] #1 e0858bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[21/02/2015 15:06:15] [debug] #2 e0859dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[21/02/2015 15:06:15] [debug] #3 e085a226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[21/02/2015 15:06:15] [debug] #4 e085fadc in ?? () from plugins/crashdetect.so
[21/02/2015 15:06:15] [debug] #5 e0b75410 in ?? ()
[21/02/2015 15:06:15] [debug] #6 e0b75430 in ?? ()
[21/02/2015 15:06:15] [debug] #7 e08ad871 in gsignal () from /lib/libc.so.6
[21/02/2015 15:06:15] [debug] #8 e08af14a in abort () from /lib/libc.so.6
[21/02/2015 15:06:15] [debug] #9 e08ed735 in ?? () from /lib/libc.so.6
[21/02/2015 15:06:15] [debug] #10 e08f3b91 in ?? () from /lib/libc.so.6
[21/02/2015 15:06:15] [debug] #11 e0b0fdf2 in _ZdlPv () from /usr/lib/libstdc++.so.6
[21/02/2015 15:06:15] [debug] #12 e0b0fe4e in _ZdaPv () from /usr/lib/libstdc++.so.6
[21/02/2015 15:06:15] [debug] #13 0807fac8 in ?? () from ./samp
[21/02/2015 15:06:15] [debug] #14 0808000d in ?? () from ./samp
[21/02/2015 15:06:15] [debug] #15 08074afa in ?? () from ./samp
[21/02/2015 15:06:15] [debug] #16 0807632e in ?? () from ./samp
[21/02/2015 15:06:15] [debug] #17 e0b54b39 in ?? () from /lib/libpthread.so.0
[21/02/2015 15:06:15] [debug] #18 e0965c2e in clone () from /lib/libc.so.6
Reply

Ask the devs about that, they probaly know how to fix it. Or maybe not...

Also they'll most likely tell you to do this: https://sampforum.blast.hk/showthread.php?tid=495402
Reply

[09:52:32] [debug] #0 000eae50 in public Itter_OnGameModeInit () at D:\Documents and Settings\Ionut\Desktop\0.3z serverss\gamemodes\MNXX.pwn:18623
[09:52:32] [debug] #1 native CallLocalFunction () from samp03svr
[09:52:32] [debug] #2 000009e8 in public OnGameModeInit () at D:\Documents and Settings\Ionut\Desktop\0.3z serverss\pawno\include\foreach.inc:667

18623:

From: if(SBizzInfo[s][sbOwned] == 0)

for(new s = 1; s <= totalsbizz; s++) // === SBuissiness ===
{
if(SBizzInfo[s][sbOwned] == 0)
{ // Plate Numbers LV
if(s == 14) { AddStaticPickup(1318, 1, SBizzInfo[14][sbEntranceX],SBizzInfo[14][sbEntranceY],SBizzInfo[14][sbEntranceZ],ALL_VIRTUAL_WORLDS); continue; }
AddStaticPickup(1272, 2, SBizzInfo[s][sbEntranceX], SBizzInfo[s][sbEntranceY], SBizzInfo[s][sbEntranceZ],ALL_VIRTUAL_WORLDS);
format(string,sizeof(string),"[ID: %d]\nAcest sbizz este de vanzare\n\tPret: %s$",s,GroupDigit(SBizzInfo[s][sbBuyPrice]));
SBizzLabel[s] = Create3DTextLabel(string,0x8CE2E8AA, SBizzInfo[s][sbEntranceX], SBizzInfo[s][sbEntranceY], SBizzInfo[s][sbEntranceZ], 25.0, 0, 1);
}
else
{ // Plate Numbers LV
if(s == 14) { AddStaticPickup(1318, 1, SBizzInfo[14][sbEntranceX],SBizzInfo[14][sbEntranceY],SBizzInfo[14][sbEntranceZ],ALL_VIRTUAL_WORLDS); continue; }
AddStaticPickup(1239, 1, SBizzInfo[s][sbEntranceX], SBizzInfo[s][sbEntranceY], SBizzInfo[s][sbEntranceZ],ALL_VIRTUAL_WORLDS);
format(string,sizeof(string),"[ID: %d]\nAcest sbizz ii apartine lui %s",s,SBizzInfo[s][sbOwner]);
SBizzLabel[s] = Create3DTextLabel(string, 0xF38963AA, SBizzInfo[s][sbEntranceX], SBizzInfo[s][sbEntranceY], SBizzInfo[s][sbEntranceZ], 25.0, 0, 1);
}
}


And 667 from .inc: CallLocalFunction("Itter_OnGameModeInit", "");


I dont get it :-/ What the heck is wrong?
Reply

In Pawn array indices start from 0 and go to n-1 where n is the size of the array. You're looping through elements from 1 to n, so you're essentially skipping the first element and reading a non-existent element at index n in the end of the loop, which is what crashdetect is trying to tell you.
Reply

Well, dunno how but that error fixed from himself. Now i have another problem, here:

for(new h = 0; h <= totalhouses; h++) // = Houses =
{
if(HouseInfo[h][hOwned] == 0)
{
AddStaticPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]/*,ALL_VIRTUAL_WORLDS*/);
/*format(string,sizeof(string),"[ID: %d]\nAceasta casa este de vanzare\n\tPret: %s$",h,GroupDigit(HouseInfo[h][hBuyPrice]));
HouseLabel[h] = Create3DTextLabel(string,0xE64F4FAA, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 25.0, 0, 1);*/
}
else
{
AddStaticPickup(1314, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]/*,ALL_VIRTUAL_WORLDS*/);
/*format(string,sizeof(string),"[ID: %d]\nAceasta casa ii apartine lui %s",h,HouseInfo[h][hOwner]);
HouseLabel[h] = Create3DTextLabel(string, 0xF5F56FAA, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 25.0, 0, 1);*/
}
}
Initial it was h=1 but changed it to 0 after see your post and still the same. And acctually, houses business are loaded from mysql and first id at both of them is 1. About sbizz i think i know how i solved it. SbizzInfo was declared too small, but Houseinfo is over the number of houses from mysql. So.. stil dont get it :-/.
Reply

Well, you need read my previous post again, I said something about n-1 there.
Reply

I am getting some unusual crash issues with version 4.15.1 I am certain it is the plugin causing issues because after I took crashdetect off the crashes have stopped maybe you have an idea why this happens thanks.

Код:
[16:08:52] [debug] Server crashed due to an unknown error
[16:08:52] [debug] Native backtrace:
[16:08:52] [debug] #0 f73fce8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[16:08:52] [debug] #1 f73f5bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[16:08:52] [debug] #2 f73f6dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[16:08:52] [debug] #3 f73f7226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[16:08:52] [debug] #4 f73fcadc in ?? () from plugins/crashdetect.so
[16:08:52] [debug] #5 f76e6410 in ?? ()
[16:08:52] [debug] #6 f76e6430 in ?? ()
[16:08:52] [debug] #7 f744b661 in gsignal () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[16:08:52] [debug] #8 f744ea92 in abort () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[16:08:52] [debug] #9 f761928d in _ZN9__gnu_cxx27__verbose_terminate_handlerEv () from /usr/lib/i386-linux-gnu/libstdc++.so.6
Something like this would not normally cause a complete crash.

Код:
14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] AMX backtrace:
[14:06:11] [debug] #0 native Streamer_UpdateEx () from streamer.so
[14:06:11] [debug] #1 003a10c8 in public SetNextSpawnForPlayer (playerid=318, type=1) at C:\Users\Jeff\Documents\GitHub\420dayz\gamemodes\dayz.pwn:2680
[14:06:11] [debug] #2 0039f308 in ?? (... <2 arguments>) at C:\Users\Jeff\Documents\GitHub\420dayz\gamemodes\dayz.pwn:2447
[14:06:11] [debug] #3 00039930 in public OnPlayerLogin (playerid=318, uid=12) at C:\Users\Jeff\Documents\GitHub\420dayz\include\YSI\y_hooks/impl.inc:2444
[14:06:11] [debug] #4 native CallLocalFunction () from samp-dayz
[14:06:11] [debug] #5 0003b8bc in public Player_Fo
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
[14:06:11] [debug] Server crashed while executing dayz.amx
Код:
[04:51:08] [debug] Server crashed due to an unknown error
[04:51:08] [debug] Native backtrace:
[04:51:08] [debug] #0 f741ae8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[04:51:08] [debug] #1 f7413bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[04:51:08] [debug] #2 f7414dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[04:51:08] [debug] #3 f7415226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[04:51:08] [debug] #4 f741aadc in ?? () from plugins/crashdetect.so
[04:51:08] [debug] #5 f7704410 in ?? ()
[04:51:08] [debug] #6 0804d12d in ?? () from ./samp-dayz
[04:51:08] [debug] #7 080aff37 in ?? () from ./samp-dayz
[04:51:08] [debug] #8 08071b02 in ?? () fr
Reply

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Generally a crash, stops the server, so, what?
but not "array index out of bounds" or similar
Reply

Hello peeps,

i have some problems with crash detect plugin. In my server log there are no function names from my script. I have -d3 on my compailer options

Compiler options
Код:
-r -w 203 -d3
Server log
Код:
[23:19:38] [debug] AMX backtrace:
[23:19:38] [debug] #0 0048c6d0 in public OnSQLError (1, 1064, 28025620, 28023736, 28023732) from script.amx
[23:19:38] [debug] #1 native sql_query () from sql.so
[23:19:38] [debug] #2 000804f0 in public SacuvajIgraca (0) from script.amx
[23:19:38] [debug] #3 000ae9a0 in public ppb_OnPlayerDisconnect (0, 1) from script.amx
[23:19:38] [debug] #4 00030fb8 in public FC_OnPlayerDisconnect (0, 1) from script.amx
[23:19:38] [debug] #5 native CallLocalFunction () from samp03svr
[23:19:38] [debug] #6 00026fc4 in public SSCANF_OnPlayerDisconnect (0, 1) from script.amx
[23:19:38] [debug] #7 0001d310 in public Itter_OnPlayerDisconnect (0, 1) from script.amx
[23:19:38] [debug] #8 0001b008 in ?? (0, 1) from script.amx
[23:19:38] [debug] #9 0000b73c in public FIXES_OnPlayerDisconnect (0, 1) from script.amx
[23:19:38] [debug] #10 native CallLocalFunction () from samp03svr
[23:19:38] [debug] #11 00002264 in public OnPlayerDisconnect (0, 1) from script.amx
Any advice on solving this problem?
Reply

When using the function exit; gives [debug]
Reply

Hello guys
Periodically the server drops with such an error

PHP код:
[17:37:53] [debugServer crashed due to an unknown error
[17:37:53] [debugNative backtrace:
[
17:37:53] [debug#0 f747f180 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[17:37:53] [debug#1 f7477064 in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () from plugins/crashdetect.so
[17:37:53] [debug#2 f7477d64 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () from plugins/crashdetect.so
[17:37:53] [debug#3 f7479cdb in _ZN11CrashDetect7OnCrashERKN2os7ContextE () from plugins/crashdetect.so
[17:37:53] [debug#4 f747e4d5 in ?? () from plugins/crashdetect.so
[17:37:53] [debug#5 f77d7b20 in __kernel_rt_sigreturn () from linux-gate.so.1
[17:37:53] [debug#6 0809568a in ?? () from ./samp03svr
[17:37:53] [debug#7 080957cd in ?? () from ./samp03svr
[17:37:53] [debug#8 f6258103 in ?? () from plugins/streamer.so
[17:37:53] [debugRegisters:
[
17:37:53] [debugEAXa4e8cc78 EBXf62ff594 ECXa4e8cc78 EDX1c154200
[17:37:53] [debugESI00000000 EDIff9955e8 EBPff995528 ESPff995520
[17:37:53] [debugEIP0809568a EFLAGS00010282
[17:37:53] [debugStack:
[
17:37:53] [debugESP+0000000008928f48 f62ff594 ff995588 080957cd
[17:37:53] [debugESP+0000002000000000 00000000 f6255059 094dcc78
[17:37:53] [debugESP+00000040000000ba 00000000 094dcc78 f6257f91
[17:37:53] [debugESP+00000060a4e8cc78 ff9955e8 f62d21ba f6258103
[17:37:53] [debugESP+0000008016d78420 f74d9216 f62580c9 0dac8230
[17:37:53] [debugESP+000000a0a4e8cc78 1c154200 ff9955e8 0e9120f0
[17:37:53] [debugESP+000000c0081d4700 00000001 000000ba 081d5078
[17:37:53] [debugESP+000000e0081d4700 00000008 f754f2d6 3c06df83
[17:37:53] [debugESP+00000100081cd170 00401745 ff995768 080aa13a
[17:37:53] [debugESP+0000012000000000 00000000 00000006 00000010
[17:37:53] [debugESP+00000140f77a8ad8 f779f43c f77a0b58 01000000
[17:37:53] [debugESP+00000160656d6167 65646f6d f7003531 f77a9414
[17:37:53] [debugESP+00000180f77a7e84 f77a7ef0 f77a7da0 f74d8243
[17:37:53] [debugESP+000001a0080aa260 00000000 00000000 00000000
[17:37:53] [debugESP+000001c000000000 00000000 00000000 00000000
[17:37:53] [debugESP+000001e000000000 00000000 00000000 00000000
[17:37:53] [debugESP+0000020000000000 00000000 00000000 00000000
[17:37:53] [debugESP+0000022000000000 00000000 00000000 f74d83fd
[17:37:53] [debugESP+0000024000000000 00000000 00000000 f74c0a63
[17:37:53] [debugESP+0000026000000001 ff995804 ff9957a4 081801f8
[17:37:53] [debugESP+0000028000000000 1c889315 b6323704 00000000
[17:37:53] [debugESP+000002a000000000 f77ecb70 f74c0979 f77f9000
[17:37:53] [debugESP+000002c0080a9420 00000001 ff995804 08150650
[17:37:53] [debugESP+000002e000000001 ff995b72 00000000 ff995b7e
[17:37:53] [debugESP+00000300ff995c88 ff995c91 ff995ca2 ff995cb3
[17:37:53] [debugESP+00000320ff995d50 ff995db2 ff995dcc ff995dd4
[17:37:53] [debugESP+00000340ff995e4a ff995e67 ff995eb9 ff995ecd
[17:37:53] [debugESP+00000360f77d7af0 00000021 f77d7000 00000010
[17:37:53] [debugESP+0000038000000064 00000003 08048034 00000004
[17:37:53] [debugESP+000003a0f77d8000 00000008 00000000 00000009
[17:37:53] [debugESP+000003c0000001f4 0000000d 000001f4 0000000e
[17:37:53] [debugESP+000003e0ff99592b 0000001f ff995fec 0000000f
[17:37:53] [debugLoaded modules:
[
17:37:53] [debug00000000 00187dc3 samp03svr
[17:37:53] [debugf77d7000 f77d7c5a linux-gate.so.1
[17:37:53] [debugf77c6000 f77c881b /lib32/libdl.so.2
[17:37:53] [debugf77aa000 f77c4d2b /lib32/libpthread.so.0
[17:37:53] [debugf76b8000 f77b1ce6 /usr/lib32/libstdc++.so.6
[17:37:53] [debugf7672000 f76b6b97 /lib32/libm.so.6
[17:37:53] [debugf7655000 f76713c4 /usr/lib32/libgcc_s.so.1
[17:37:53] [debugf74a7000 f765c237 /lib32/libc.so.6
[17:37:53] [debugf77d8000 f77f94a0 /lib/ld-linux.so.2
[17:37:53] [debugf7461000 f74a3ac4 plugins/crashdetect.so
[17:37:53] [debugf7450000 f745f290 plugins/sscanf.so
[17:37:53] [debugf70ac000 f7454ac7 plugins/mysql_static.so
[17:37:53] [debugf709b000 f70a209f /lib32/librt.so.1
[17:37:53] [debugf668e000 f66993ef /lib32/libnss_files.so.2
[17:37:53] [debugf77cd000 f77d05d8 plugins/MapAndreas.so
[17:37:53] [debugf667d000 f668b74c plugins/encrypt.so
[17:37:53] [debugf6237000 f6302ca5 plugins/streamer.so 
What does it mean?
Reply

Help me pleaase! How to show message: Accessing element at index a past array upper bound b.

The message is not shown in my case.


PHP код:
new lol 110000;
Player[lol] = 10
PHP код:
[11:12:20RuntimeErrorCode is 4
[11:12:20] [debugRun time error 4"Array index out of bounds"
[11:12:20] [debugAMX backtrace:
[
11:12:20] [debug#0 0012f534 in public zcmd_OnGameModeInit () at M:\Users\user\Desktop\pawno\include\industrial/init.inc:1895
[11:12:20] [debug#1 native CallLocalFunction () from samp-server.exe
[11:12:20] [debug#2 00008e70 in public SSCANF_OnGameModeInit () at M:\Users\user\Desktop\pawno\include\industrial/lib/zcmd.inc:68
[11:12:20] [debug#3 0000119c in public fcnpc0_OnGameModeInit () at M:\Users\user\Desktop\pawno\include\sscanf2.inc:205
[11:12:20] [debug#4 000009ec in public OnGameModeInit () at M:\Users\user\Desktop\pawno\include\FCNPC.inc:453 
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)