Players connect, server crashes
#1

Hey guys, I've lately been getting a problem which is giving me a headache, well, simply when very rarely someone connects the server will crash, at first I had suspicious of a hacker, since this player relogged 26 times with differents IP's doing the same thing to make the server crash, I have crashdetect and it says:
Код:
[debug] AMX backtrace:
[22:13:01] [debug] #0  native CallLocalFunction () [00472260] from samp-server.exe
[22:13:01] [debug] #1  0000129c in public OnPlayerCommandText () from sfrp.amx
[22:13:01] [debug] System backtrace:
[22:13:01] [debug] #0  004010b6 in ?? () from C:\SAMP SERVER\samp-server.exe
[22:13:01] [debug] #1  74283322 in Load () from C:\SAMP SERVER\plugins\crashdetect.DLL
[22:13:01] [debug] #2  74285766 in Load () from C:\SAMP SERVER\plugins\crashdetect.DLL
[22:13:01] [debug] #3  7427beba in Load () from C:\SAMP SERVER\plugins\crashdetect.DLL
[22:13:01] [debug] #4  7428334e in Load () from C:\SAMP SERVER\plugins\crashdetect.DLL
[22:13:01] [debug] #5  0046cfe0 in ?? () from C:\SAMP SERVER\samp-server.exe
[22:13:01] [debug] #6  0048b4d4 in ?? () from C:\SAMP SERVER\samp-server.exe
[22:13:01] [debug] #7  7708e38c in RtlInitUnicodeString () from C:\Windows\SysWOW64\ntdll.dll
[22:13:01] [debug] #8  7708e0f2 in RtlAllocateHeap () from C:\Windows\SysWOW64\ntdll.dll
[22:13:01] [debug] #9  0045615c in ?? () from C:\SAMP SERVER\samp-server.exe
I was wondering if someone had this problem before and can give me some information about it, thank you.
Reply
#2

Does anyone know or experienced this before?
Under OnPlayerConnect I don't have any script calling a command, and also the command logs don't say anything at all (for example, Yuri Waka connected 26 times and server crashed, but they didn't type any command according to my log system).
Reply
#3

I had the same thing but my problem was with OnPlayerDeath. But other than that, i have no clue. Sorry :/
Reply
#4

Show me your OnPlayerConnect, and your OnPlayerCommandText.
Reply
#5

i think you might have a file or folder missing in your script
Reply
#6

Anyone who can help with this? I am the Community Manager for the server and the server has crashed 5 times now from the post Admantis made, random players join who is not registered with the server yet joins and then sudden server crash with the above error Admantis displayed.

It's not every non-registered player, so not sure if it's a bug or missing files or someone hacking..

We have like 30+ Players on during peak, and then this will happen with us.
Reply
#7

Here is another crash log that happend earlier:

Quote:

[12:33:13] [join] Jeff_Jackson has joined the server (17:108.62.214.247)
[12:33:13] [debug] Server crashed while executing sfrp.amx
[12:33:13] [debug] AMX backtrace:
[12:33:13] [debug] #0 native CallLocalFunction () [00472260] from samp-server.exe
[12:33:13] [debug] #1 0000129c in public OnPlayerCommandText () from sfrp.amx
[12:33:13] [debug] System backtrace:
[12:33:13] [debug] #0 004010b6 in ?? () from C:\SAMP SERVER\samp-server.exe
[12:33:13] [debug] #1 73863322 in Load () from C:\SAMP SERVER\plugins\crashdetect.DLL
[12:33:13] [debug] #2 73865766 in Load () from C:\SAMP SERVER\plugins\crashdetect.DLL
[12:33:13] [debug] #3 7385beba in Load () from C:\SAMP SERVER\plugins\crashdetect.DLL
[12:33:13] [debug] #4 7386334e in Load () from C:\SAMP SERVER\plugins\crashdetect.DLL
[12:33:13] [debug] #5 0046cfe0 in ?? () from C:\SAMP SERVER\samp-server.exe
[12:33:13] [debug] #6 0048b4d4 in ?? () from C:\SAMP SERVER\samp-server.exe
[12:33:13] [debug] #7 7708e38c in RtlInitUnicodeString () from C:\Windows\SysWOW64\ntdll.dll
[12:33:13] [debug] #8 7708e0f2 in RtlAllocateHeap () from C:\Windows\SysWOW64\ntdll.dll
[12:33:13] [debug] #9 0045615c in ?? () from C:\SAMP SERVER\samp-server.exe

Reply
#8

I can't post my OnPlayerConnect since it's over 1000 lines long however, it wouldn't be the reason because the other dozens of players connect smoothly.
pawn Код:
public OnPlayerCommandPerformed( playerid, cmdtext[], success )
{
    if( !success )
        return ShowErrorMessage( playerid, "Unknown command, type /help or /helpme." );

    else
    {
        if( strcmp( cmdtext, "/me", true ) != 0 || strcmp( cmdtext, "/do", true ) != 0)
            CommandTime[playerid] = 0;
        else if( strcmp( cmdtext, "/ban", true ) == 0)
            CommandTime[playerid] = 7;
        else CommandTime[playerid] = 1;

        UncheckedPays[playerid] = 0;
        format( szString, 128, "%s typed \"%s\"", GetPName( playerid ), cmdtext );
        Log( szString, LOGTYPE_CMD );
    }

    return 1;
}

public OnPlayerCommandReceived( playerid, cmdtext[] )
{
    if( PlayerInfo[playerid][LoggedIn] == 0) return 1;
    if( CommandTime[playerid] != 0) {
        format( szString, 128, "There are %d seconds left before you can perform another command.", CommandTime[playerid] );
        ShowErrorMessage( playerid, szString );
        return 0;
    }

    return 1;
}

stock Log( logString[], logType )
{
    new logPath[128], fileEntry[128];

    switch( logType ) {
        case LOGTYPE_DEATH: logPath = DeathLogPath;
        case LOGTYPE_BAN: logPath = BanLogPath;
        case LOGTYPE_KICK: logPath = KickLogPath;
        case LOGTYPE_AJAIL: logPath = AdminJailLogPath;
        case LOGTYPE_CMD: logPath = UserCommandLogPath;
        case LOGTYPE_ADMCMD: logPath = AdmCommandLogPath;
        case LOGTYPE_PM: logPath = PMLogPath;
        case LOGTYPE_PAY: logPath = PayLogPath;
        case LOGTYPE_PURCHASE: logPath = PurchasesLogPath;
        case LOGTYPE_ICCHAT: logPath = ICChatLogPath;
        case LOGTYPE_OOCCHAT: logPath = OOCChatLogPath;
        case LOGTYPE_ACTIONS: logPath = ActionLogPath;
        case LOGTYPE_WEAPONRY: logPath = WeaponryLogPath;
    }

    new day, month, year;
    new timesec, timemin, timehour;
    getdate( year, month, day );
    gettime( timehour, timemin, timesec );
    format( fileEntry, 128, "[%d/%d/%d] [%d:%d:%d] %s\r\n", day, month, year, timehour, timemin, timesec, logString );

    new File: logFile;
    logFile = fopen( logPath, io_append );
    fwrite( logFile, fileEntry );
    fclose( logFile );

    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)