When i restart server using /rcon gmx all crashed
#1

Код:
SA-MP 0.3.7
Exception At Address: 0x0315F6E3
Base: 0x03150000

Registers:
EAX: 0x00000001	EBX: 0x00003941	ECX: 0x00003941	EDX: 0x00000000
ESI: 0x00000001	EDI: 0x0000001A	EBP: 0x76C680E0	ESP: 0x0022FD84
EFLAGS: 0x00210206

Stack:
+0000: 0x00000000   0x031F0397   0x0053DFE2   0x00000000
+0010: 0x0053EAA6   0x0415820C   0x0053EAC4   0x44000000
+0020: 0x43C00000   0x0053ECC2   0x00000001   0x00619B71
+0030: 0x0000001A   0x00000001   0x00000001   0x0000000A
+0040: 0x00748DA0   0x0000001A   0x00000001   0x7687CF41
+0050: 0x00000000   0x0022FF88   0x7FFD5000   0x015A0000
+0060: 0x4ED47228   0x015A1130   0x00000008   0x00000100
+0070: 0x00000008   0x00000102   0x44000000   0x43C00000
+0080: 0x00000000   0x00000000   0x00000400   0x00000300
+0090: 0x00000000   0x00000001   0x00B404A4   0x00000200
+00A0: 0x00000000   0x01800200   0x04F2C51C   0x00000200
+00B0: 0x00000180   0x0000002C   0x0022FE2C   0x00825EA4
+00C0: 0x7687CF41   0x00000000   0x7FFD5000   0xFFFFFFFF
+00D0: 0x00821D17   0x00000065   0x00000065   0x0022FF88
+00E0: 0x008246F1   0x00400000   0x00000000   0x017F1EA6
+00F0: 0x0000000A   0x00000094   0x00000006   0x00000001
+0100: 0x00001DB1   0x00000002   0x76726553   0x20656369
+0110: 0x6B636150   0x00003120   0x00000000   0x00000000
+0120: 0x00000000   0x00000000   0x00000000   0x00000000
+0130: 0x00000000   0x00000000   0x00000000   0x00000000
+0140: 0x00000000   0x00000000   0x00000000   0x00000000
+0150: 0x00000000   0x00000000   0x00000000   0x00000000
+0160: 0x00000000   0x00000000   0x00000000   0x00000000
+0170: 0x00000000   0x00000000   0x00000000   0x00000000
+0180: 0x00000000   0x00824588   0x00000000   0x00000000
+0190: 0x7FFD5000   0xC0000005   0x00000000   0x017F1EA6
+01A0: 0x00000044   0x01832F08   0x01831DD8   0x018321B8
+01B0: 0x00000000   0x00000000   0x00000000   0x00000000
+01C0: 0x00000000   0x00000000   0x00000000   0x00000000
+01D0: 0x00000000   0x00000000   0xFFFFFFFF   0xFFFFFFFF
+01E0: 0xFFFFFFFF   0x00000000   0x00000000   0x0022FE78
+01F0: 0x0022F84C   0x0022FFC4   0x00825EA4   0x00888078
+0200: 0x00000000   0x0022FF94   0x76883C45   0x7FFD5000
+0210: 0x0022FFD4   0x77B337F5   0x7FFD5000   0x73697E92
+0220: 0x00000000   0x00000000   0x7FFD5000   0x00000000
+0230: 0x00000000   0x00000000   0x0022FFA0   0x00000000
+0240: 0xFFFFFFFF   0x77AEE0ED   0x04F9933E   0x00000000
+0250: 0x0022FFEC   0x77B337C8   0x00824570   0x7FFD5000
+0260: 0x00000000   0x00000000   0x00000000   0x00000000
+0270: 0x00824570   0x7FFD5000   0x00000000   0x78746341

SCM Op: 0x248, lDbg: 0 LastRendObj: 3660

Game Version: US 1.0

State Information: Ped Context: 0
I don't know what that mean kindly help me to figure out that bug's.
Thanks
Reply
#2

Firstly show us your server.cfg
Reply
#3

Код:
echo Executing Server Config...
lanmode 0
rcon_password mypass
maxplayers 1000
port 7777
hostname TESTING
gamemode0 GM
filterscripts itde cameditor 
plugins whirlpool sscanf crashdetect streamer mysql iTD  
mapname DS
language Sandandreas
announce 1
query 1
chatlogging 0
weburl www.testing.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 2
connseedtime 300000
logtimeformat [%H:%M:%S]
Reply
#4

Alright. Your game called "GM" is correct ? Your server is crashing at the same time when you crash?
Reply
#5

No server only crash when i restart server. /rcon gmx
server is working fine and not crashing only when i restart server players crashed but server is still online and work fine ..
Reply
#6

is the client or server is crashing??
Reply
#7

all clients are crashing when i restart /rcon gmx

But server is online and work fine even after restart.
Reply
#8

Try to use crashdetect to detect what cause the crash, I believe OnPlayerDisconnect can cause the crash, or some other callback or function which gets called when the client disconnects or GM is restarted
You should use crash detect once.
Reply
#9

Quote:
Originally Posted by [ND]xXZeusXx.
Посмотреть сообщение
Try to use crashdetect to detect what cause the crash, I believe OnPlayerDisconnect can cause the crash, or some other callback or function which gets called when the client disconnects or GM is restarted
You should use crash detect once.
Код:
public OnPlayerDisconnect(playerid, reason)
{
//	destroyCar(playerid);
	LeaveZone(playerid);
	RemoveAdminVehicle(playerid);
	RemoveDisco(playerid);
	RemoveSiren(playerid);
	NeonRemoved(playerid);
	DestroyCmds(playerid);
	DistroyStatss(playerid);
	DistroyRules(playerid);
	DestroySpeedometerTextdraw(playerid);
	Delete3DTextLabel(alabel[playerid]);
	PlayerTextDrawDestroy(playerid, ImageOnConnect[playerid]);
	HideMathQuizForPlayer(playerid);
	if(pInfo[playerid][Logged] == 1)
	{
			OnlineStatus[playerid] = 0;
			if(SurviveEvent[playerid] == 1)
			{
				PlayerSurvive--;
				KillTimer(SEvent[playerid]);
				SurviveEvent[playerid] = 0;
				LatestMessageTextdraw( "~y~LMS Event is going on [Total Players Left %d].",PlayerSurvive,0);
			}
			switch(reason)
		        {
		            case 0: format(Jstring, 128, "Leave : %s has left the server. "COL_YELLOW"[Timeout]", GetName(playerid));
		            case 1: format(Jstring, 128, "Leave : %s has left the server. "lightblue1"[Leaving]", GetName(playerid));
		            case 2: format(Jstring, 128, "Leave : %s has left the server. "COL_RED"[Kicked]"	, GetName(playerid));
		        }
 		    SCMToAll(0xAFAFAFAA, Jstring);
			if(AdminDuty[playerid] != 1 && pInfo[playerid][HasSetAdminName] != true)
			{
				SavePlayerStats(playerid);
			}
	}

	PlayerTextDrawDestroy(playerid,qtext[playerid]);
	for(new i  = 0 ;  i < 13 ; i++  )
	{
	PlayerTextDrawHide(playerid,qlog[i][playerid]);
	PlayerTextDrawDestroy(playerid,qlog[i][playerid]);
	}

	if(Spy[playerid] == 1 )
	{
	 	Spy[playerid]=0;
		KillTimer(ARTimer[playerid]);
 	}

 	if(Cover[playerid] == 1)
	{
			DestroyObject(CObject[playerid]);
			Cover[playerid] = 0;
	}
	if(CbugWarnings[playerid] > 0)
 		CbugWarnings[playerid] = 0;

    if(GetPVarInt(playerid,"MapHidden") == 1 || pInfo[playerid][NameTagHidden] == 1)
		KillTimer(pHideTimer[playerid]);

	if(pInfo[playerid][Frozen] == 1)
		KillTimer(Ftimer[playerid]);

	if(pInfo[playerid][Muted] == 1)
		KillTimer(Mtimer[playerid]);

    if(pInfo[playerid][SpawnedCars] > 0)
	{
       for(new i=0; i<pInfo[playerid][SpawnedCars]; i++)
	   {
           DestroyVehicle(pInfo[playerid][Cars][i]);
       }
 	   pInfo[playerid][SpawnedCars] = 0;
	}

	if(pInfo[playerid][Locked] == 1)
	{
	   foreach(Player, i)
	   SetVehicleParamsForPlayer(GetPVarInt(playerid,"CarID"),i,false,false);
	   pInfo[playerid][Locked]   =    0;
	   Delete3DTextLabel(vLocked3DT[playerid]);
	}

 	if(reconnect[playerid] == 1)
    {
        new ip[16],string[50];
        GetPVarString(playerid, "MYIP", ip, 16);
        format(string,sizeof(string),"unbanip %s", ip);
        SendRconCommand(string);
        reconnect[playerid] = 0;
    }
    #if SpecTextDraw == true
	PlayerTextDrawHide(playerid, SpecPTD[playerid]);
	PlayerTextDrawDestroy(playerid, SpecPTD[playerid]);
    #endif
    foreach(Player, i)
	{
		if (Specid[i] == playerid && pInfo[i][Spec] == 1)
		{
			TogglePlayerSpectating(i, 0);
			GameTextForPlayerEx(i,"~G~Player ~R~Disconnected",2000,3);
		}
	}
	GotHit[playerid]=0;
	if(floorEnable[playerid]==1){DestroyObject(floor[playerid]);return 1;}
	return 1;
}

public OnGameModeExit()
{
	mysql_close(mysql);

	DestroyLatestMessage();
	DestroyMathTextdraws();
	KillTimer(LMSTIMER);
	KillTimer(LmsTimer2);
  	KillTimer(OnPlayerCheatTimer);
 	KillTimer(UpdateTimer);
 	KillTimer(LatestMessageTime);
	KillTimer(TreasureTimer);
	KillTimer(MathTimer);
	TextDrawDestroy(EventTimer);
	TextDrawDestroy(Kill1);
	TextDrawDestroy(Kill2);
	foreach(Player, i)
	{
		if(pInfo[i][pLevel] > 0 && pInfo[i][Spec] == 1)
		{
			PlayerTextDrawHide(i, SpecPTD[i]);
			PlayerTextDrawDestroy(i, SpecPTD[i]);
			PlayerTextDrawHide(i, SpecGTD[i]);
			PlayerTextDrawDestroy(i, SpecGTD[i]);
		}
		PlayerTextDrawDestroy(i, ImageOnConnect[i]);
		PlayerTextDrawDestroy(i,qtext[i]);
		for(new j  = 0 ;  j < 13 ; j++  )
		{
		PlayerTextDrawHide(i,qlog[j][i]);
		PlayerTextDrawDestroy(i,qlog[j][i]);
		}
		KillTimer(SpeedTimer[i]);
		KillTimer(SEvent[i]);
		KillTimer(LATimer[i]);
		KillTimer(WTimer[i]);
		KillTimer(XTimer[i]);
		KillTimer(Jailtimer[i]);
		KillTimer(ARTimer[i]);
	    KillTimer(AntiSpawn[i]);
	    KillTimer(Mtimer[i]);
	    KillTimer(Ftimer[i]);
 	    KillTimer(HeadshotTimer[i]);
		KillTimer(Dialogsonconnect[i]);
		KillTimer(CmdCount[i]);
		KillTimer(ChatCount[i]);
		KillTimer(MapLoading[i]);
		KillTimer(Cmdtimer[i]);
		KillTimer(JPlayer[i]);
		KillTimer(DiscoTimer[i]);
		KillTimer(RobbingTimer[i]);
		KillTimer(Ftimer[i]);

 	}
//KillTimer(timer[i][PlaceID]);
//KillTimer(RobPlaceAvailableTimer[PlaceID]);
	return 1;
}
And I am already using Crashdetect ..

And now i commented my all OnPlayerDisconnect and OnGameModeEx still crashe..
Reply
#10

So.. The problem comes from of you, not the script. Local server? Or it's a public server ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)