[Plugin] CrashDetect
#41

What's the difference between the 2 debug levels d2 and d3?

Minor, major, or none? - I recall some debug levels with Dev C++ where very much the same...
Reply
#42

I do not understand what's the deal with d2-d3 and-but I do not show enough information than that after fail-server "[18:56:15] Crash caused an address by SetPlayerColor at 0x1f28c in gamemodes / rp-rpg.amx
[18:56:15] For more details with debugging symbols compile this script enabled and start the server again "How do I look like I look too" 0x5A656578 ", that all information, that is so [20:40:14] Crash caused an year by gamemodes \ test.amx, see stack trace Below
[20:40:14] Stack trace (most recent call first):
[20:40:14] fread (native) on line 13 in test.pwn
[20:40:14] function2 on line 8 in test.pwn
[20:40:14] function1 on line 4 in test.pwn
[20:40:14] main (entry point). Please help me, thanks a lot
Reply
#43

Quote:
Originally Posted by leong124
View Post
Note that the following code still uses floatcmp:
pawn Code:
public OnFilterScriptInit()
{
    new Float:x = 1.234,Float:y = 2.234;
    if(x != y) print("hi");//The operator != would use the floatcmp
    return 1;
}


The only issue about the crash is to pass a null(empty) string through CallLocalFunction.
So IMO there's a bug on your YSI.

I'll also try this and see if the bugs are fixed
Tried the SVN version -> compiller crash.
Tried the 1.0 version, now there's another error message...

Code:
[10:54:53]  Loading plugin: crashdetect
[10:54:53]   crashdetect plugin 2.0 built on Jun 28 2011
[10:54:53]   Loaded.
....
[10:59:23] The server has crashed due to an unexpected error in gamemodes\flife.amx.
[10:59:23] Stack trace of gamemodes\flife.amx (most recent call first):
Now I'm really confused. There's 3 DIFFERENT reasons for the crash...
Reply
#44

very good for Scripts about 90k lines
sometimes I just can't find the reason, it could be everywhere

will try it ..
Reply
#45

ok, i have problem, i made command that crash server to test plugin...

Code:
COMMAND:crash(playerid, params[])
{
     if(PlayerInfo[playerid][pAdmin] < 1338||!IsPlayerAdmin(playerid)) return 1;
     new buf[10];
     fread(File:123, buf);
	 return 1;
}
command is between lines 69246 and 69252, i compiled script on windows xp, and tested on my linux vps...

strange thing is when i type command and crash server, when i look in server.log it says that error is fread on line 8624 in script... i try with -d2 and -d3, same problem...

so reason is good, but line is wrong...
Reply
#46

Does that happen to the latest version? I hoped I've resolved this problem
Reply
#47

Nice work
Reply
#48

Quote:
Originally Posted by 0x5A656578
Посмотреть сообщение
Does that happen to the latest version? I hoped I've resolved this problem
Thanks man, it should be solved

EDIT:
Sometimes when I reload my filterscript using "reloadfs",
no file name were shown, and after some while a window is shown saying that samp-server.exe was crashed.
I'm not very sure it's the problem of this plugin, but you can check it if you have time
I'm using the 20110702 build.
Reply
#49

My server crashes randomly. I used this plugin but it prints nothing. I checked and it loads perfect but, when the server times out, it (as I said) prints nothing.

Код:
[17:12:56]  Loading plugin: crashdetect.so
[17:12:56]   crashdetect plugin 2.0 built on Jun 27 2011
[17:12:56]   Loaded.
Reply
#50

Probably the same as mine.
It doesn't show the file name before crash, and this plugin cannot show why the server crashes.
Reply
#51

Quote:
Originally Posted by leong124
Посмотреть сообщение
Probably the same as mine.
It doesn't show the file name before crash, and this plugin cannot show why the server crashes.
Are you running Linux too? Does your server crash on plugin loading?

Also please try disabling both cacthRuntimeErrors and catchNativeErrors and see if it works
Reply
#52

I tried it, it prints nothing.
Reply
#53

i will try it
Reply
#54

Hell yeah!
I changed nothing, my server crashed and the plugin printed:

Код:
[13:19:54] The server has crashed due to an unexpected error in gamemodes/mygamemode.amx.
[13:19:54] Stack trace of gamemodes/mygamemode.amx (most recent call first):
The plugin should more lines print isn't it?
Reply
#55

I fixed the no-message-on-crash bug, will upload soon

Quote:
Originally Posted by _[HuN]_Epsilon_
Посмотреть сообщение
Hell yeah!
I changed nothing, my server crashed and the plugin printed:

Код:
[13:19:54] The server has crashed due to an unexpected error in gamemodes/mygamemode.amx.
[13:19:54] Stack trace of gamemodes/mygamemode.amx (most recent call first):
The plugin should more lines print isn't it?
It should but the error could make it impossible, or even worse, this can be yet another stupid bug in this plugin, I don't know exactly. What I'm sure about is that your error is not caused by a native function so most likely it's not your fault but rather server/whatever_plugin writer's fault.
Reply
#56

Quote:
Originally Posted by 0x5A656578
Посмотреть сообщение
Are you running Linux too? Does your server crash on plugin loading?

Also please try disabling both cacthRuntimeErrors and catchNativeErrors and see if it works
I'm using Windows XP.
btw, the plugin load quite slowly...
Reply
#57

when I download it, the plugin itself is not found.
Reply
#58

I run to try XD
Reply
#59

solved, nice plugin
Reply
#60

Quote:

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 7432 bytes
Code size: 2062340 bytes
Data size: 368744 bytes
Stack/heap size: 16384 bytes; estimated max. usage=1540 cells (6160 bytes)
Total requirements: 2454900 bytes

Hmm, what does that Stack/heap size means?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)