[13:20:23] [debug] Server crashed due to an unknown error [13:20:23] [debug] Native backtrace: [13:20:23] [debug] #0 f672131b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so [13:20:23] [debug] #1 f671b7c2 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so [13:20:23] [debug] #2 f671c3ac in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so [13:20:23] [debug] #3 f671c856 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so [13:20:23] [debug] #4 f6720f6c in ?? () from plugins/crashdetect.so [13:20:23] [debug] #5 f7796410 in ?? () [13:20:23] [debug] #6 08095207 in ?? () from samp03svr [13:20:23] [debug] #7 0809532a in ?? () from samp03svr [13:20:23] [debug] #8 080dbec3 in ?? () from samp03svr [13:20:23] [debug] #9 080b5c81 in ?? () from samp03svr [13:20:23] [debug] #10 080b14d3 in ?? () from samp03svr [13:20:23] [debug] #11 f74e2bd6 in __libc_start_main () from /lib32/libc.so.6 [13:20:23] [debug] #12 0804b521 in ?? () from samp03svr
I can't seem to reproduce this on a clean Windows 7 install. Are you sure you're using the latest version of crashdetect? I fixed a similar bug in version 4.8.3, though the error text was a bit different.
Also please post the version of your system's DbgHelp.dll (right click -> Properties -> Details), it has to be somewhere in Windows\System32. |
My server crashes and I get this:
Код:
[13:20:23] [debug] Server crashed due to an unknown error [13:20:23] [debug] Native backtrace: [13:20:23] [debug] #0 f672131b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so [13:20:23] [debug] #1 f671b7c2 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so [13:20:23] [debug] #2 f671c3ac in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so [13:20:23] [debug] #3 f671c856 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so [13:20:23] [debug] #4 f6720f6c in ?? () from plugins/crashdetect.so [13:20:23] [debug] #5 f7796410 in ?? () [13:20:23] [debug] #6 08095207 in ?? () from samp03svr [13:20:23] [debug] #7 0809532a in ?? () from samp03svr [13:20:23] [debug] #8 080dbec3 in ?? () from samp03svr [13:20:23] [debug] #9 080b5c81 in ?? () from samp03svr [13:20:23] [debug] #10 080b14d3 in ?? () from samp03svr [13:20:23] [debug] #11 f74e2bd6 in __libc_start_main () from /lib32/libc.so.6 [13:20:23] [debug] #12 0804b521 in ?? () from samp03svr plugins mysql_r34_static.so sscanf.so streamer_1000p.so whirlpool.so crashdetect.so mapandreas.so nativechecker.so |
It looks like it failed to push a string onto the heap (due to insufficient space), try increasing the heap size with #pragma dynamic.
|
Bro, please, so many people before you gave me this link, I hated it, I didn't understand anything man, please, can you give me the steps here and more Specific? Sorry!
|
-d3
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: x bytes
Code size: x bytes
Data size: x bytes
Stack/heap size: x bytes; estimated max. usage: x cells
Total requirements: x bytes
Bro, please, so many people before you gave me this link, I hated it, I didn't understand anything man, please, can you give me the steps here and more Specific? Sorry!
|
It's very easy!
- Go to pawno folder (where pawno.exe is located) and create a file pawn.cfg If you cannot create that file with the extension .cfg then copy server.cfg and paste it into pawno folder and change its name to pawn. - Open that file (pawn.cfg) and write in it: pawn Код:
That's it. You need to re-compile your scripts normally and you'll get this box: pawn Код:
|
Header size: 16252 bytes Code size: 1524044 bytes Data size: 20777048 bytes Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion Total requirements:22333728 bytes
Now when server crash, what folder/file I should open to see which line cause the crash?
|
:06] [debug] Server crashed while executing grab.amx [14:59:06] [debug] AMX backtrace: [14:59:06] [debug] #0 00000033 in ?? (... <14 arguments>) at C:\Users\HP\Desktop\Files\Server\pawno\include\float.inc:108 [14:59:06] [debug] #1 00000033 in public OnDialogResponse () at C:\Users\HP\Desktop\Files\Server\pawno\include\float.inc:108
[15:40:47] [debug] Run time error 4: "Array index out of bounds" [15:40:47] [debug] Accessing element at negative index -1 [15:40:47] [debug] AMX backtrace: [15:40:47] [debug] #0 0002baec in ?? (0xffffffff, 0x000061a8) from SFCNR.amx [15:40:47] [debug] #1 0010e790 in ?? (0x0000001f, 0x00000006) from SFCNR.amx [15:40:47] [debug] #2 00015a38 in public OnPlayerEnterArea (0x0000001f, 0x00000006) from SFCNR.amx [15:40:47] [debug] #3 native CallRemoteFunction () [080dba10] from samp03svr [15:40:47] [debug] #4 00029c3c in ?? (0x0000001f, 0x00000006, 0x0143d8b0) from SFCNR.amx [15:40:47] [debug] #5 000267bc in ?? (0x0000001f) from SFCNR.amx [15:40:47] [debug] #6 00014ac8 in public OnPlayerUpdate (0x0000001f) from SFCNR.amx
Код:
[15:40:47] [debug] Run time error 4: "Array index out of bounds" [15:40:47] [debug] Accessing element at negative index -1 [15:40:47] [debug] AMX backtrace: [15:40:47] [debug] #0 0002baec in ?? (0xffffffff, 0x000061a8) from SFCNR.amx [15:40:47] [debug] #1 0010e790 in ?? (0x0000001f, 0x00000006) from SFCNR.amx [15:40:47] [debug] #2 00015a38 in public OnPlayerEnterArea (0x0000001f, 0x00000006) from SFCNR.amx [15:40:47] [debug] #3 native CallRemoteFunction () [080dba10] from samp03svr [15:40:47] [debug] #4 00029c3c in ?? (0x0000001f, 0x00000006, 0x0143d8b0) from SFCNR.amx [15:40:47] [debug] #5 000267bc in ?? (0x0000001f) from SFCNR.amx [15:40:47] [debug] #6 00014ac8 in public OnPlayerUpdate (0x0000001f) from SFCNR.amx |
Compile with debug info: https://github.com/Zeex/samp-plugin-...ith-debug-info
for more information such as the line. Re-compile your scripts, start the server and when you get debug messages again, post your server log. |
estimated max. usage: unknown, due to recursion
That's not an error, it's just extra information about your script. Errors and warnings have "Error" or "Warning" after the file path and line number.
|
stock function() return function();
I know that's not an error but I searched "recursion" and I learned it means
pawn Код:
|
This is not only if a function calls itself. Big scripts (many lines, many large arrays etc) usually have estimated max. usage as unknown.
|