Crashdetect
#1

[15:47:12] [debug] Server crashed while executing SSS.amx
[15:47:12] [debug] AMX backtrace:
[15:47:12] [debug] #0 00000033 in ?? (50, 0, 12656716) from SSS.amx
[15:47:12] [debug] #1 000117ec in ?? (50, 0, 1487600362, 0, 12656804, 3927192, 0, 0, 0, 0, ... <3 arguments>) from SSS.amx
[15:47:12] [debug] #2 00000033 in public @yT_900000_Afers () from SSS.amx


Код:
Timer:Afers[900000]()
{
	SaveServerInfo();
	SaveMoney();
}
Reply
#2

Debug using -d3 and -O to get some more info about the crash.

Goto pawno -> Build -> Run Options -> Add "-d3 -O" to parameters without quotes.
Reply
#3

Not functioning pawno -d3 -O
Reply
#4

Bump
Reply
#5

Quote:
Originally Posted by SpaceRP
Посмотреть сообщение
Not functioning pawno -d3 -O
https://github.com/Zeex/samp-plugin-...ith-debug-info

Do it like this and post the server log.
Reply
#6

Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          32532 bytes
Code size:          5615992 bytes
Data size:         12230636 bytes
Stack/heap size:      80000 bytes; estimated max. usage: unknown, due to recursion
Total requirements:17959160 bytes
Код:
[03:06:47] [debug] Server crashed while executing SSS.amx
[03:06:47] [debug] AMX backtrace:
[03:06:47] [debug] #0 00000036 in INI_AddToBuffer (INI:file=53, name[]=@00000000 "", data[]=@00bbd4ac "0000001487728655") at C:...\pawno\include\float.inc:103
[03:06:47] [debug] #1 00015118 in ?? (... <13 arguments>) at C:...\pawno\include\YSI\y_ini.inc:806
[03:06:47] [debug] #2 00000036 in public @yT_600000_TeenMinute () at C:...\pawno\include\float.inc:103

Timer:TeenMinute[600000]()
{
	foreach(Player, i)
	{
	    if(IsPlayerConnected(i))
	    {
			SaveAcc(i);
		}
	}
	SaveServerInfo();
	SaveTop();
	return 1;
}
Reply
#7

Quote:

SaveAcc(i);

Check this. I don't know anything about Ini but do check that

or show them the codes in their. The error is surely in their indicated by both -d3 debug and not. If you fix that you fix everything coz you showed a working code. A unoptimized one but still working.

You are not forced to update anything on your includes okay buy I have something.

The foreach function already checks if the player is online or not. It gets the playerid which is online and returns it. So IsPlayerConnected is redundant... Well as far as I know with the explanation on most tuts. Well that's a little speed difference I could say its up to you...
Reply
#8

I now delete all IsPlayerConnected below foreach

Код:
Timer:TeenMinute[600000]()
{
	foreach(Player, i) { SaveAcc(i); }
	SaveServerInfo();
	SaveTop();
	return 1;
}
Server log:

Код:
[11:50:10] [debug] Run time error 7: "Stack underflow"
[11:50:10] [debug]  Stack pointer (STK) is 0xBBD171, stack top (STP) is 0xBBD154
[11:50:10] [debug] AMX backtrace:
[11:50:10] [debug] #0 00000000 in public @yT_600000_TeenMinute ()
[12:00:23] [debug] Run time error 7: "Stack underflow"
[12:00:23] [debug]  Stack pointer (STK) is 0xBBD171, stack top (STP) is 0xBBD154
[12:00:23] [debug] AMX backtrace:
[12:00:23] [debug] #0 00000000 in public @yT_600000_TeenMinute ()
[12:00:28] [debug] Run time error 4: "Array index out of bounds"
[12:00:28] [debug]  Accessing element at negative index -1
[12:00:28] [debug] AMX backtrace:
[12:00:28] [debug] #0 00013d3c in INI_Close (INI:file=-1) at C:....\pawno\include\YSI\y_ini.inc:629
[12:00:28] [debug] #1 00514210 in public SaveBiznise (bizid=41) at C:....\gamemodes\SSS.pwn:58425
[12:00:28] [debug] #2 004c80b4 in public Neaktivnosti () at C:....\gamemodes\SSS.pwn:55378
[12:00:28] [debug] #3 004b3440 in public SyncTime () at C:.....\gamemodes\SSS.pwn:53841
[12:00:28] [debug] #4 004c3a78 in public @yT_60000_SyncUp () at C:....\gamemodes\SSS.pwn:55066
[12:10:36] [debug] Run time error 4: "Array index out of bounds"
[12:10:36] [debug]  Accessing element at negative index -1
[12:10:36] [debug] AMX backtrace:
[12:10:36] [debug] #0 00013d3c in INI_Close (INI:file=-1) at C:....P\pawno\include\YSI\y_ini.inc:629
[12:10:36] [debug] #1 004f2900 in SaveServerInfo () at C:....P\gamemodes\SSS.pwn:57487
[12:10:36] [debug] #2 004bec50 in public @yT_600000_TeenMinute () at C:....\gamemodes\SSS.pwn:54707
[12:20:50] [debug] Run time error 4: "Array index out of bounds"
[12:20:50] [debug]  Accessing element at negative index -1
[12:20:50] [debug] AMX backtrace:
[12:20:50] [debug] #0 00013d3c in INI_Close (INI:file=-1) at C:....\pawno\include\YSI\y_ini.inc:629
[12:20:50] [debug] #1 004f2900 in SaveServerInfo () at C:....\gamemodes\SSS.pwn:57487
[12:20:50] [debug] #2 004bec50 in public @yT_600000_TeenMinute () at C:....\gamemodes\SSS.pwn:54707
[12:31:04] [debug] Run time error 4: "Array index out of bounds"
[12:31:04] [debug]  Accessing element at negative index -1
[12:31:04] [debug] AMX backtrace:
[12:31:04] [debug] #0 00013d3c in INI_Close (INI:file=-1) at C:....\pawno\include\YSI\y_ini.inc:629
[12:31:04] [debug] #1 004f2900 in SaveServerInfo () at C:...P\gamemodes\SSS.pwn:57487
[12:31:04] [debug] #2 004bec50 in public @yT_600000_TeenMinute () at C:....\gamemodes\SSS.pwn:54707
[12:41:17] [debug] Run time error 4: "Array index out of bounds"
[12:41:17] [debug]  Accessing element at negative index -1
[12:41:17] [debug] AMX backtrace:
[12:41:17] [debug] #0 00013d3c in INI_Close (INI:file=-1) at C:....\pawno\include\YSI\y_ini.inc:629
[12:41:17] [debug] #1 004f2900 in SaveServerInfo () at C:....\gamemodes\SSS.pwn:57487
[12:41:17] [debug] #2 004bec50 in public @yT_600000_TeenMinute () at C:....\gamemodes\SSS.pwn:54707
[12:51:31] [debug] Run time error 4: "Array index out of bounds"
[12:51:31] [debug]  Accessing element at negative index -1
[12:51:31] [debug] AMX backtrace:
[12:51:31] [debug] #0 00013d3c in INI_Close (INI:file=-1) at C:...\pawno\include\YSI\y_ini.inc:629
[12:51:31] [debug] #1 004f2900 in SaveServerInfo () at C:....\gamemodes\SSS.pwn:57487
[12:51:31] [debug] #2 004bec50 in public @yT_600000_TeenMinute () at C:...\gamemodes\SSS.pwn:54707
[13:00:49] [debug] Run time error 4: "Array index out of bounds"
[13:00:49] [debug]  Accessing element at negative index -1
[13:00:49] [debug] AMX backtrace:
[13:00:49] [debug] #0 00013d3c in INI_Close (INI:file=-1) at C:....\pawno\include\YSI\y_ini.inc:629
[13:00:49] [debug] #1 00514210 in public SaveBiznis (bizid=41) at C:...\gamemodes\SSS.pwn:58425
[13:00:49] [debug] #2 004c80b4 in public Neaktivnosti () at C:....\gamemodes\SSS.pwn:55378
[13:00:49] [debug] #3 004b3440 in public SyncTime () at C:....\gamemodes\SSS.pwn:53841
[13:00:49] [debug] #4 004c3a78 in public @yT_60000_SyncUp () at C:....\gamemodes\SSS.pwn:55066
[13:01:45] [debug] Run time error 4: "Array index out of bounds"
[13:01:45] [debug]  Accessing element at negative index -1
[13:01:45] [debug] AMX backtrace:
[13:01:45] [debug] #0 00013d3c in INI_Close (INI:file=-1) at C:...\pawno\include\YSI\y_ini.inc:629
[13:01:45] [debug] #1 004f2900 in SaveServerInfo () at C:...\gamemodes\SSS.pwn:57487
[13:01:45] [debug] #2 004bec50 in public @yT_600000_TeenMinute () at C:...\gamemodes\SSS.pwn:54707
[13:11:59] [debug] Run time error 4: "Array index out of bounds"
[13:11:59] [debug]  Accessing element at negative index -1
[13:11:59] [debug] AMX backtrace:
[13:11:59] [debug] #0 00013d3c in INI_Close (INI:file=-1) at C:...\pawno\include\YSI\y_ini.inc:629
[13:11:59] [debug] #1 004f2900 in SaveServerInfo () at C:....\gamemodes\SSS.pwn:57487
[13:11:59] [debug] #2 004bec50 in public @yT_600000_TeenMinute () at C:...\gamemodes\SSS.pwn:54707
Reply
#9

BUMP
Reply
#10

crashdeteck whether you're using the new version?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)