Unknown Crash issue
#1

Hello, I need help determining the reason why my server crashes and gives this errors in my server_logs.txt

The Error is:
Код:
[06:05:26] Number of vehicle models: 110
[06:06:11] [part] francisco has left the server (1:1)
[06:06:49] [debug] Server crashed while executing LSGWv4.amx
[06:06:49] [debug] AMX backtrace:
[06:06:49] [debug] #0 native DCC_SendChannelMessage () from discord-connector.so
[06:06:49] [debug] #1 001ac6a8 in public GANG_OnPlayerDisconnect (playerid=1, reason=2) at C:\Users\jeffrey\Downloads\LSGWv4.pwn:3814
[06:06:49] [debug] #2 0016855c in public FC_OnPlayerDisconnect (playerid=1, reason=2) at C:\Users\jeffrey\Documents\pawno\include\LSGWv4\Gang.inc:210
[06:06:49] [debug] #3 native CallLocalFunction () from samp03svr
[06:06:49] [debug] #4 0013e7f8 in public WC_OnPlayerDisconnect (playerid=1, reason=2) at C:\Users\jeffrey\Documents\pawno\include\fuckcleo.inc:226
[06:06:49] [debug] #5 00067e9c in public ppb_OnPlayerDisconnect (playerid=1, reason=2) at C:\Users\jeffrey\Documents\pawno\include\weapon-config.inc:2164
[06:06:49] [debug] #6 0005f1f8 in public SSCANF_OnPlayerDisconnect (playerid=1, reason=2) at C:\Users\jeffrey\Documents\pawno\include\progress2.inc:405
[06:06:49] [debug] #7 0004de5c in public _y_utils_OnPlayerDisconnect (playerid=1, reason=2) at C:\Users\jeffrey\Documents\pawno\include\sscanf2.inc:260
[06:06:49] [debug] #8 00011264 in OnPlayerDisconnect (playerid=1, reason=2, ... <1073741821 arguments>) at C:\Users\jeffrey\Documents\pawno\include\YSI\..\YSI_Coding\..\YSI_Internal\..\YSI_Core\y_utils.inc:254
[06:06:49] [debug] #9 00013ebc in public OnPlayerDisconnect (... <2 arguments>) at C:\Users\jeffrey\Documents\pawno\include\YSI\..\YSI_Coding\..\YSI_Data\..\YSI_Coding\..\YSI_Internal\y_cgen.inc:30
[06:06:49] [debug] #10 native Kick () from samp03svr
[06:06:49] [debug] #11 001ab2dc in public dialog_ACCOUNT_LOG_IN (playerid=1, response=1, listitem=-1, inputtext[]=@0159b66c "") at C:\Users\jeffrey\Downloads\LSGWv4.pwn:3684
[06:06:49] [debug] #12 native CallLocalFunction () from samp03svr
[06:06:49] [debug] #13 00001b10 in public OnDialogResponse (playerid=1, dialogid=32700, response=1, listitem=-1, inputtext[]=@0159b668 "") at C:\Users\jeffrey\Documents\pawno\include\easydialog.inc:131
[06:06:49] [debug] Native backtrace:
[06:06:49] [debug] #0 e4363e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[06:06:49] [debug] #1 e435cbcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[06:06:49] [debug] #2 e435ddbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[06:06:49] [debug] #3 e435e226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[06:06:49] [debug] #4 e4363adc in ?? () from plugins/crashdetect.so
[06:06:49] [debug] #5 e4ac2410 in ?? ()
[06:06:49] [debug] #6 e47f19c6 in ?? () from /lib/i386-linux-gnu/libc.so.6
[06:06:49] [debug] #7 e46f26bc in samplog_LogNativeCall () from plugins/../log-core.so
[06:06:49] [debug] #8 e2fe02f1 in ?? () from plugins/discord-connector.so
[06:06:49] [debug] #9 e3015941 in ?? () from plugins/discord-connector.so
[06:06:49] [debug] #10 080950e4 in ?? () from ./samp03svr
[06:06:49] [debug] #11 e435f94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[06:06:49] [debug] #12 e43628f8 in ?? () from plugins/crashdetect.so
[06:06:49] [debug] #13 e4366916 in amx_Exec () from plugins/crashdetect.so
[06:06:49] [debug] #14 e435ebe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[06:06:49] [debug] #15 e4362659 in ?? () from plugins/crashdetect.so
[06:06:49] [debug] #16 e3075826 in ?? () from plugins/streamer.so
[06:06:49] [debug] #17 080dfd62 in ?? () from ./samp03svr
[06:06:49] [debug] #18 080950e4 in ?? () from ./samp03svr
[06:06:49] [debug] #19 e435f94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[06:06:49] [debug] #20 e43628f8 in ?? () from plugins/crashdetect.so
[06:06:49] [debug] #21 e4366916 in amx_Exec () from plugins/crashdetect.so
[06:06:49] [debug] #22 e435ebe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[06:06:49] [debug] #23 e4362659 in ?? () from plugins/crashdetect.so
[06:06:49] [debug] #24 e3075826 in ?? () from plugins/streamer.so
[06:06:49] [debug] #25 080a523a in ?? () from ./samp03svr
[06:06:49] [debug] #26 080d0b31 in ?? () from ./samp03svr
[06:06:49] [debug] #27 080ae94b in ?? () from ./samp03svr
[06:06:49] [debug] #28 080d731e in ?? () from ./samp03svr
[06:06:49] [debug] #29 080950e4 in ?? () from ./samp03svr
[06:06:49] [debug] #30 e435f94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[06:06:49] [debug] #31 e43628f8 in ?? () from plugins/crashdetect.so
[06:06:49] [debug] #32 e4366916 in amx_Exec () from plugins/crashdetect.so
[06:06:49] [debug] #33 e435ebe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[06:06:49] [debug] #34 e4362659 in ?? () from plugins/crashdetect.so
[06:06:49] [debug] #35 e3075826 in ?? () from plugins/streamer.so
[06:06:49] [debug] #36 080dfd62 in ?? () from ./samp03svr
[06:06:49] [debug] #37 080950e4 in ?? () from ./samp03svr
[06:06:49] [debug] #38 e435f94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[06:06:49] [debug] #39 e43628f8 in ?? () from plugins/crashdetect.so
[06:06:49] [debug] #40 e4366916 in amx_Exec () from plugins/crashdetect.so
[06:06:49] [debug] #41 e435ebe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[06:06:49] [debug] #42 e4362659 in ?? () from plugins/crashdetect.so
[06:06:49] [debug] #43 e3075826 in ?? () from plugins/streamer.so
[06:06:49] [debug] #44 080a682f in ?? () from ./samp03svr
[06:06:49] [debug] #45 080b2c44 in ?? () from ./samp03svr
[06:06:49] [debug] #46 08071d38 in ?? () from ./samp03svr
[06:06:49] [debug] #47 08071e32 in ?? () from ./samp03svr
[06:06:49] [debug] #48 0807bc50 in ?? () from ./samp03svr
[06:06:49] [debug] #49 080aed3d in ?? () from ./samp03svr
[06:06:49] [debug] #50 080aef02 in ?? () from ./samp03svr
[06:06:49] [debug] #51 080aa13a in ?? () from ./samp03svr
[06:06:49] [debug] #52 e4786af3 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
I tried my best trying to figure the main source but still getting this errors.
Reply
#2

Can you show the Code of OnPlayerDisconnect?
Reply
#3

This my Code in OnPlayerDC

Код:
public OnPlayerDisconnect(playerid, reason)
{
	// Destroy TD
	// Player disconnected - is there any "special" reason?
	if(!isempty(PlayerInfo(playerid, DisconnectReason)))
	{
		SendClientMessageFormatted(INVALID_PLAYER_ID, COLOR_SILVER_SAND, "%s(%d) has left the server! "HTML_LYNCH"(%s)", PlayerInfo(playerid, UserName), playerid, PlayerInfo(playerid, DisconnectReason));

		DCC_SendChannelMessage(Server[CurrentChannel], sprintf("`PART` %s(%d) has left the server! (%s)",\
			ReturnPlayerName(playerid), playerid, PlayerInfo(playerid, DisconnectReason))); 
	}
	// There's no "special" reason - show SA-MP's default ones
	else
	{
		new disconnecttmp[32];

		switch(reason)
		{
			case 0: disconnecttmp = "timed out/crashed";
			case 1: disconnecttmp = "quit the game";
			case 2: disconnecttmp = "kicked/banned";

		}   
		SendClientMessageFormatted(INVALID_PLAYER_ID, COLOR_SILVER_SAND, "%s(%d) has left the server! "HTML_LYNCH"(%s)", PlayerInfo(playerid, UserName), playerid, disconnecttmp);

		DCC_SendChannelMessage(Server[CurrentChannel], sprintf("`PART` %s(%d) has left the server! (%d/"#MAX_PLAYERS")",\
			PlayerInfo(playerid, UserName), playerid, (Iter_Count(Player) - 1)));           
	}

	SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);

	if(PlayerInfo(playerid, ID) != -1 && PlayerInfo(playerid, LoggedIn))
	{
		// Save player data and then reset it

		SavePlayerData(playerid, true);
		ResetPlayerData(playerid);

		foreach(new player_id : Player)
		{
			if(PlayerInfo(player_id, LastPM) == playerid)
			{
				// Invalidate last pm sent ID to those who sent a PM to this player
				PlayerInfo(player_id, LastPM) = INVALID_PLAYER_ID;
			}
			
		}
	}

	// Hide all turfs to aplayer on disconnect
	foreach(new i : Turf)
	{
		GangZoneHideForPlayer(playerid, i);
	}


	static pCount = 0;
	foreach(new i : Player)
	{
		pCount++;

		if(PlayerInfo(i, IsPlayerSpectating) && PlayerInfo(i, PlayerSpectating) == playerid)
		{
			spectateoff(i);
		} 
	}

	if((pCount <= Server[MinimumPlayers]) && Server[PendingUpdate])
	{
		SetTimerEx("RestartServer", 7000, false, "");
		GameTextForAll("Automatic Server Restart in~n~7 seconds", 6000, 3);
	}


	if(DuelInfo[playerid][InDuel] && DuelInfo[DuelInfo[playerid][Opponent]][InDuel] &&  DuelInfo[playerid][DuelSlot] == DuelInfo[DuelInfo[playerid][Opponent]][DuelSlot])
	{
		new tmp[500];
		switch(reason)
		{
		   case 0: format(tmp, sizeof(tmp), ""HTML_MONZA"[DUEL] "HTML_SHAKESPEARE"%s"HTML_MADISON" has timed-out during a duel. "HTML_SHAKESPEARE"%s"HTML_MADISON" has won this match!", PlayerInfo(playerid, UserName), ReturnPlayerName(DuelInfo[playerid][Opponent]));
		   case 1: format(tmp, sizeof(tmp), ""HTML_MONZA"[DUEL] "HTML_SHAKESPEARE"%s"HTML_MADISON" has left the server during a duel. "HTML_SHAKESPEARE"%s"HTML_MADISON" has won this match!", PlayerInfo(playerid, UserName), ReturnPlayerName(DuelInfo[playerid][Opponent]));
		   case 2: format(tmp, sizeof(tmp), ""HTML_MONZA"[DUEL] "HTML_SHAKESPEARE"%s"HTML_MADISON" has been kicked out from the server during a duel. "HTML_SHAKESPEARE"%s"HTML_MADISON" has won this match!", PlayerInfo(playerid, UserName), ReturnPlayerName(DuelInfo[playerid][Opponent]));
		}
		GivePlayerMoneyEx(DuelInfo[playerid][Opponent], DuelInfo[playerid][Bet]*2);
		StopDuelEx(DuelInfo[DuelInfo[playerid][Opponent]][DuelSlot], playerid, DuelInfo[playerid][Opponent]);
		SendClientMessageToAll(-1, tmp);
	}
	

	foreach(new turf_id : Turf)
	{
		DestroyDynamicMapIcon(PlayerMapIcon[playerid][turf_id]);
	}

	DestroyPlayerProgressBar(playerid, PlayerInfo(playerid, ActorHealth));

	TextDraw::DestroyPlayerTD(playerid);
	TextDraw::Destroy******TextDraws(playerid);
	TextDraw::DeleteGameTD(playerid);
	return true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)