Server Crash ..idk why (new evidences)
#1

Hey,that's my server log,please take a look,and tell me what's the problem....
Crash no.1
Код:
[12/04/2011 17:42:46] OnPlayerCommandText for sonny, he typed command /lv
[12/04/2011 17:42:46] OnPlayerCommandText for Super_Tayson, he typed command /drag
[12/04/2011 17:42:47] OnPlayerCommandText for Super_Tayson, he typed command /ls
[12/04/2011 17:42:54] [chat] [sonny]: stfu betty
[12/04/2011 17:42:54] OnPlayerCommandText for Super_Tayson, he typed command /teles
[12/04/2011 17:43:00] [chat] [sonny]: ok,bety
[12/04/2011 17:43:03] [chat] [sonny]: ok,betty
[12/04/2011 17:43:07] OnPlayerCommandText for sonny, he typed command /drag
[12/04/2011 17:43:09] [part] Super_Sonic has left the server (0:1)
[12/04/2011 17:43:15] OnPlayerCommandText for sonny, he typed command /drag
[12/04/2011 17:43:15] OnPlayerCommandText for Super_Tayson, he typed command /cmds
[12/04/2011 17:43:19] [chat] [sonny]: lol
[12/04/2011 17:43:31] OnPlayerCommandText for Super_Tayson, he typed command /rules
[12/04/2011 17:43:32] OnPlayerCommandText for sonny, he typed command /teles
[12/04/2011 17:43:39] OnPlayerCommandText for Super_Tayson, he typed command /release
[12/04/2011 17:43:40] OnPlayerCommandText for sonny, he typed command /teles
[12/04/2011 17:43:43] OnPlayerCommandText for sonny, he typed command /va
[12/04/2011 17:43:46] OnPlayerCommandText for sonny, he typed command /va
[12/04/2011 17:43:46] [part] Super_Tayson has left the server (4:1)
[12/04/2011 17:44:30] OnPlayerCommandText for sonny, he typed command /teles
[12/04/2011 17:44:40] OnPlayerCommandText for sonny, he typed command /teles
[12/04/2011 17:45:35] OnPlayerCommandText for sonny, he typed command /reloadobjects
[12/04/2011 17:46:54] Incoming connection: 95.188.23.64:3057
[12/04/2011 17:46:54] [join] Mack_Berd has joined the server (0:95.188.23.64)
[12/04/2011 17:46:59] OnPlayerCommandText for sonny, he typed command /carmeny
[12/04/2011 17:47:31] Incoming connection: 92.126.84.248:54098
[12/04/2011 17:47:31] [join] Gradov_Vlad has joined the server (4:92.126.84.248)
[12/04/2011 17:47:38] [part] Gradov_Vlad has left the server (4:2)
Crash no.2
Код:
[12/04/2011 15:29:46] OnPlayerCommandText for Jake_Force, he typed command /sfa
[12/04/2011 15:29:50] OnPlayerCommandText for Jake_Force, he typed command /sfa
[12/04/2011 15:29:56] OnPlayerCommandText for nitzansm, he typed command /ap3
[12/04/2011 15:29:57] OnPlayerCommandText for Jake_Force, he typed command /car
[12/04/2011 15:29:59] OnPlayerCommandText for Jake_Force, he typed command /cars
[12/04/2011 15:30:00] OnPlayerCommandText for nitzansm, he typed command /cmds
[12/04/2011 15:30:36] [death] Jake_Force died 255
[12/04/2011 15:30:40] OnPlayerCommandText for Jake_Force, he typed command /sfa
[12/04/2011 15:31:39] OnPlayerCommandText for nitzansm, he typed command /bb
[12/04/2011 15:31:50] OnPlayerCommandText for nitzansm, he typed command /wazza
[12/04/2011 15:32:03] OnPlayerCommandText for Jake_Force, he typed command /underwatter
[12/04/2011 15:32:06] Incoming connection: 85.136.40.241:62509
[12/04/2011 15:32:07] [join] Daniel has joined the server (3:85.136.40.241)
[12/04/2011 15:32:07] OnPlayerCommandText for Jake_Force, he typed command /underwater
[12/04/2011 15:32:26] OnPlayerCommandText for nitzansm, he typed command /wazza
[12/04/2011 15:32:35] [part] Daniel has left the server (3:0)
[12/04/2011 15:32:45] OnPlayerCommandText for Jake_Force, he typed command /ap2
[12/04/2011 15:33:11] OnPlayerCommandText for nitzansm, he typed command /wazza
[12/04/2011 15:33:47] OnPlayerCommandText for nitzansm, he typed command /ap4
[12/04/2011 15:33:50] OnPlayerCommandText for nitzansm, he typed command /ap1
[12/04/2011 15:34:17] [death] nitzansm died 255
[12/04/2011 15:34:23] OnPlayerCommandText for nitzansm, he typed command /ap1
[12/04/2011 15:36:09] [death] nitzansm died 255
[12/04/2011 15:36:13] OnPlayerCommandText for nitzansm, he typed command /ap1
[12/04/2011 15:37:18] Incoming connection: 83.85.136.128:61608
[12/04/2011 15:37:24] Incoming connection: 83.85.136.128:61609
[12/04/2011 15:37:30] Incoming connection: 83.85.136.128:61610
[12/04/2011 15:37:31] [join] Timothy_Benschop has joined the server (3:83.85.136.128)
[12/04/2011 15:37:47] Incoming connection: 81.68.66.70:54987
[12/04/2011 15:37:47] [join] Flexy_Junior has joined the server (4:81.68.66.70)
[12/04/2011 15:38:03] Incoming connection: 77.77.233.53:1868
[12/04/2011 15:38:03] [join] Kemal. has joined the server (5:77.77.233.53)
[12/04/2011 15:38:06] OnPlayerCommandText for Timothy_Benschop, he typed command /cmds
[12/04/2011 15:38:07] OnPlayerCommandText for Flexy_Junior, he typed command /goto 3
[12/04/2011 15:38:17] OnPlayerCommandText for Timothy_Benschop, he typed command /veh
[12/04/2011 15:38:23] [part] Flexy_Junior has left the server (4:1)
[12/04/2011 15:38:27] [part] Timothy_Benschop has left the server (3:1)
[12/04/2011 15:38:56] OnPlayerCommandText for nitzansm, he typed command /cars
[12/04/2011 15:39:11] [chat] [nitzansm]: all do /cars pls
[12/04/2011 15:39:56] Incoming connection: 83.21.209.67:52670
[12/04/2011 15:39:57] [join] m4t10 has joined the server (3:83.21.209.67)
[12/04/2011 15:39:58] OnPlayerCommandText for nitzansm, he typed command /para
[12/04/2011 15:40:02] OnPlayerCommandText for nitzansm, he typed command /cars
[12/04/2011 15:40:09] [chat] [CoCa_CoLa]: server shit
[12/04/2011 15:40:11] OnPlayerCommandText for nitzansm, he typed command /cars
[12/04/2011 15:40:16] [part] CoCa_CoLa has left the server (2:1)
[12/04/2011 15:40:20] OnPlayerCommandText for nitzansm, he typed command /carsmenu
[12/04/2011 15:41:44] OnPlayerCommandText for Jake_Force, he typed command /sa
[12/04/2011 15:41:47] OnPlayerCommandText for nitzansm, he typed command /ra
[12/04/2011 15:42:00] [death] m4t10 died 255
[12/04/2011 15:42:28] OnPlayerCommandText for nitzansm, he typed command /ar
[12/04/2011 15:42:33] OnPlayerCommandText for m4t10, he typed command /ra
[12/04/2011 15:42:46] OnPlayerCommandText for m4t10, he typed command /ar
[12/04/2011 15:43:39] OnPlayerCommandText for m4t10, he typed command /ar
[12/04/2011 15:44:28] OnPlayerCommandText for nitzansm, he typed command /sa
[12/04/2011 15:44:39] OnPlayerCommandText for m4t10, he typed command /camds
[12/04/2011 15:44:54] OnPlayerCommandText for m4t10, he typed command /lv
[12/04/2011 15:45:01] Incoming connection: 88.248.143.134:1506
[12/04/2011 15:45:02] [join] Kerem has joined the server (2:88.248.143.134)
[12/04/2011 15:45:04] OnPlayerCommandText for nitzansm, he typed command /sa
[12/04/2011 15:45:05] Incoming connection: 88.248.143.134:1454
[12/04/2011 15:45:06] [part] Kerem has left the server (2:2)
Can you figure it out? Please,scripters,help me
Reply
#2

By the looks of it, and by the amount of commands that are being processed, you are overflowing memory. Reduce your memory usage (by reducing the "new"'s in your code, for example)
Reply
#3

Both crashes happened after a player left the server. So the first guess would be there is something wrong with your OnPlayerDisconnect, that crashes in certain situations. Adding printf("LINE_NUMBER"); every 2-3 lines could help.
Reply
#4

Not to mention that both times the players were disconnected by the server; i.e. kicked or banned.
Reply
#5

Check out OnPlayerDisconnect
Код:
public OnPlayerDisconnect(playerid, reason)
{
	forceFinishRace(playerid);

	if ( Admin[playerid] )
		OnlineAdmins--;

	if (LoggedIn[playerid] == 1)
	{
		new year,month,day; getdate(year, month, day);
		new hour,minute,second; gettime(hour, minute, second);
		new strdate[30];
		format(strdate, sizeof(strdate),"%d/%d/%d %02d:%02d",day,month,year,hour,minute);

		new name[256],Ip[24];GetPlayerIp(playerid,Ip,24);
		GetPlayerName(playerid, name, sizeof(name));
		strins(name,"users/",0);
		new cash = GetPlayerMoney(playerid);
		new score = GetPlayerScore(playerid);
		//new query[256];
		//format(query, sizeof(query), "UPDATE players SET money='%d', score='%d', is_online=0, last_activity='%s' WHERE LOWER(name)=LOWER('%s')", cash, score, strdate, name);
        //score, money, admin_level, togteles, togdms, godmode, jails, kicks, bans
		dini_Set(name,"IP",Ip);
		dini_Set(name,"LastOn",strdate);
		dini_IntSet(name,"score",score);
		dini_IntSet(name,"money",cash);
		dini_IntSet(name,"admin_level",Admin[playerid]);
		dini_IntSet(name,"Skin",PlayerSkin[playerid]);
		dini_IntSet(name,"togteles",Telemsg[playerid]);
		dini_IntSet(name,"togdms",Togdms[playerid]);
		dini_IntSet(name,"godmode",Godmode[playerid]);
	}
	PlayerRaceOR[playerid] = 0;
	PlayerJoinedOR[playerid] = 0;
	PlayerRaceDrift[playerid] = 0;
	PlayerJoinedDrift[playerid] = 0;
	PlayerRaceMon[playerid] = 0;
	PlayerJoinedMon[playerid] = 0;
	PlayerRaceDrag[playerid] = 0;
	PlayerJoinedDrag[playerid] = 0;
	PlayerRaceLV[playerid] = 0;
	PlayerJoinedLV[playerid] = 0;
	PlayerJoinedRace[playerid] = 0;
	PlayerRaceCount[playerid] = 0;
	raceJoined[playerid] = 0;
	Jails[playerid] = 0;
	Kicks[playerid] = 0;
	Bans[playerid] = 0;
	MarkX[playerid] = 0;
	MarkY[playerid] = 0;
	MarkZ[playerid] = 0;
	MarkA[playerid] = 0;
	DMMini[playerid] = 0;
	MarkI[playerid] = 0;
	SpecBy[playerid] = 0;
	Cashpickup[playerid] = 0;
	PlayerBeingSpeced[playerid] = 0;
	Lastmsg1[playerid] = 0;
	Lastmsg2[playerid] = 0;
	Lastmsg3[playerid] = 0;
	DMArena[playerid] = 0;
	Ramp[playerid] = 0;
	Drift1Race[playerid] = 0;
	Drift2Race[playerid] = 0;
	Drift3Race[playerid] = 0;
	Race1Arena[playerid] = 0;
	Race2Arena[playerid] = 0;
	togpms[playerid] = 0;
	Mute[playerid] = 0;
	Jail[playerid] = 0;
	LoggedIn[playerid] = 0;
	Admin[playerid] = 0;
	God[playerid] = 0;
	doAnimation[playerid] = 0;
	Godmode[playerid] = 0;
	Telemsg[playerid] = 0;
	Togdms[playerid] = 0;
	Freeze[playerid] = 0;
	PlayerSkin[playerid]=(-1);
    SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000); // Bounderies Off
    
	new string[128];
	switch(reason)
	{
		case 0: format(string, 128, "%s(%d) {94F28F}has left the server [ REASON: {FFFFFF}Crash {94F28F}]", GetPlayerNameEx(playerid), playerid);
		case 1: format(string, 128, "%s(%d) {94F28F}has left the server [ REASON: {FFFFFF}Leaving {94F28F}]", GetPlayerNameEx(playerid), playerid);
		case 2: format(string, 128, "%s(%d) {94F28F}has left the server [ REASON: {FFFFFF}Kick/Ban {94F28F}]", GetPlayerNameEx(playerid), playerid);
	}
	SendClientMessageToAll(white, string);
	return 1;
}
May this be the problem?!
Reply
#6

Dude , I think no problem here however maybe:

Quote:

SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000); // Bounderies

Is wrong wtf?

anyways there are another way to check why crash i will ask you qus , Did your net bad?.
Reply
#7

Quote:
Originally Posted by [M.A]Angel[M.A]
Посмотреть сообщение
Dude , I think no problem here however maybe:



Is wrong wtf?

anyways there are another way to check why crash i will ask you qus , Did your net bad?.
it's hosted by VPS...it's 100% an gamemode problem.
Reply
#8

not sure whats wrong, but how about a few edits:

(1)
change:
Код:
new name[256],Ip[24];GetPlayerIp(playerid,Ip,24);
to:
Код:
new name[MAX_PLAYER_NAME], Ip[24]; GetPlayerIp(playerid,Ip,24);
(2)
why do u have:
Код:
SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000); // Bounderies Off
(3)
When players left, were they registered, unregistered? is the server forced register only,

(4)
PlayerSkin[playerid]=(-1); ??

(5)
idk...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)