[Plugin] CrashDetect

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.
Reply

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
The server is on linux. I compiled the gamemode with -d3.
plugins mysql_r34_static.so sscanf.so streamer_1000p.so whirlpool.so crashdetect.so mapandreas.so nativechecker.so
Reply

It looks like it failed to push a string onto the heap (due to insufficient space), try increasing the heap size with #pragma dynamic.
Reply

Quote:
Originally Posted by xeeZ
Посмотреть сообщение
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.
I downloaded crashdetect 4.13.
Version of Dbghelp.dll is 6.1.7601.17514.
Reply

https://encrypted.******.com/#q=%22p...disk1%5CDR1%22

Have you tried any of these?
Reply

I just checked some sites and it seems it's related to my built-in card-reader (Multi-Flash Reader USB device).
This is configured as E: drive.

But I don't want to remove those drivers or the hardware itself.
I never got that message before with any program, just crashdetect plugin gives this error.

You can see my drive management here (in dutch):
http://users.telenet.be/vge/download...Management.jpg
Reply

Quote:
Originally Posted by im
Посмотреть сообщение
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
The server is on linux. I compiled the gamemode with -d3.
plugins mysql_r34_static.so sscanf.so streamer_1000p.so whirlpool.so crashdetect.so mapandreas.so nativechecker.so
Quote:
Originally Posted by xeeZ
Посмотреть сообщение
It looks like it failed to push a string onto the heap (due to insufficient space), try increasing the heap size with #pragma dynamic.
CrashDetect is crashing lately without even outputting anything, I reduced my dynamic size from 8096 to 6144... going to increase it to 16192 and see what happens
Reply

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
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!
Reply

Quote:
Originally Posted by GoldZoroGrab
Посмотреть сообщение
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 Код:
-d3
Save it and close the file.

That's it. You need to re-compile your scripts normally and you'll get this box:
pawn Код:
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
everytime you compile your scripts. Note that x is some numbers.
Reply

Quote:
Originally Posted by GoldZoroGrab
Посмотреть сообщение
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!
Maybe you could say which step you didn't understand so that the original can be improved. That link seems to contain pretty clear step-by-step instructions to me!
Reply

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
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 Код:
-d3
Save it and close the file.

That's it. You need to re-compile your scripts normally and you'll get this box:
pawn Код:
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
everytime you compile your scripts. Note that x is some numbers.
Thanks, after i compiled it showed:
Код:
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?
Reply

Quote:
Originally Posted by GoldZoroGrab
Посмотреть сообщение
Now when server crash, what folder/file I should open to see which line cause the crash?
None. It will print in the server log.
Reply

I must add the plugins and includes so it appears which line crashes?
Reply

Hello again.

Код:
: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
That what I got in server.log after server crashed? which line is the crash caused, and is it in my script or float.inc ?
Reply

Код:
[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
I am getting this error and I could'nt find why this happens. Could you help me ?
Reply

Quote:
Originally Posted by blackeagle1122
Посмотреть сообщение
Код:
[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
I am getting this error and I could'nt find why this happens. Could you help me ?
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.
Reply

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
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.
Thank you. But when i compiled my script i got an error
Код:
	estimated max. usage: unknown, due to recursion
Reply

Quote:
Originally Posted by [HLF]Southclaw
Посмотреть сообщение
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.
I know that's not an error but I searched "recursion" and I learned it means
pawn Код:
stock function() return function();
And in my script, there isn't any function like this. Why am I getting this information ?
Reply

Quote:
Originally Posted by blackeagle1122
Посмотреть сообщение
I know that's not an error but I searched "recursion" and I learned it means
pawn Код:
stock function() return function();
. And in my script, there isn't functions like this. Why am I getting this information ?
This is not only if a function calls itself. Big scripts (many lines, many large arrays etc) usually have estimated max. usage as unknown.
Reply

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
This is not only if a function calls itself. Big scripts (many lines, many large arrays etc) usually have estimated max. usage as unknown.
Thank you for your help. And I think, I found the crashdetect warning solution. If a player attempts to join a group that doesn't exist, crashdetect logs a warning. I think I will use a code for check, if the group is valid.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)