#[ SAMP ] Need Support Regards Server Crash
1 messages ยท Page 1 of 1 (latest)
I have Recently Getting a Random Crash while a Player disconnects the Server, But i couldn't get any specific lines regards the Crash
So i need some help to over come this
I have Attached Some Log for Reference
Crash Log 1
Some Code regards the Crash mentioned..
Code of BlockIpAddress() native used in My Game Mode [ Nex - AC Callback]
forward KickPlayer(playerid);
public KickPlayer(playerid)
{
if(!PlayerInfo[playerid][pKicked])
{
PlayerInfo[playerid][pKicked] = 1;
SetTimerEx("KickPlayer", 200, false, "i", playerid);
}
else
{
PlayerInfo[playerid][pKicked] = 0;
Kick(playerid);
}
}
Code KickPlayer Callback used in my Game Mode and The line the crash detect Mentioned
Crash Log 2
This is an Unknown Crash, but while checking the Server log, This too Occured while a player is Disconnecting
[19/04/2024 05:13:28] [join] Vicky_Gem has joined the server (4:42.106.176.175)
[19/04/2024 05:13:28] [sv:dbg:network:receive] : player (4) identified (port:28404)
[19/04/2024 05:13:28] [cmd] Jean Paul: [pour]
[19/04/2024 05:13:28] [cmd] Titan Pavan: [pr]
[19/04/2024 05:13:29] [cmd] Hasini Rajesh: [usecry]
[19/04/2024 05:13:30] [cmd] William Spark: [pr]
[19/04/2024 05:13:31] [cmd] Rayappan Quruvilla: [pr]
[19/04/2024 05:13:32] [sv:dbg:network:connect] : disconnecting player (12) ...
[19/04/2024 05:13:32] [part] Abi_Kutty has left the server (12:0)
[19/04/2024 05:13:32] [cmd] Peter Parker: [stats]
[19/04/2024 05:13:32] [cmd] Nedu Maran: [rvc]
[19/04/2024 05:13:33] [cmd] Sara Pambu: [pr]
[19/04/2024 05:13:36] [cmd] Flash Thombson: [mdc]
[19/04/2024 05:13:36] [sv:dbg:network:connect] : disconnecting player (6) ...
[19/04/2024 05:13:36] [part] Kesavan_Anbu has left the server (6:0)
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[19/04/2024 05:13:42]
[19/04/2024 05:13:42] Server Plugins
(( Server_ Log ))
Sorry for the Tag
|| @sick ember
@hollow delta
@craggy walrus
@jovial bridge ||
If anyother could help, Thanks for Helping...
Do you know for sure that this particular line is causing the crash? If not, i suggest putting debug messages in chat or print in console to see how far the script goes until the server crashes
Its not a Particular line that has crashing the server,
I have also attached that part too of, How Far the script is going
This was happenning, When a Random Player Disconnect Server Sometime its Crashing the Server
So if i understand correctly the crash happens at kickplayer?
Its Showing Like that
But Another Crash not linked with KickPlayer but linked with Disconnect of player, It Marked as Unknown Crash
does playerinfo[playerid][pkicked] have value from the beginning? onplayerconnect for example? like a default value
yes, PlayerInfo[playerid][pKicked] = 0;
i need to know is there any conflict on using TimerFix Plugin include file on top of the Script after <a_samp>
I suggest you temporarily remove things after the script crashes so you surely know what to look at
for example, remove the kickplayer and run it once without it just to see if it will crash
I have Removed and Pushed and Waiting for the Output
@hollow delta
?
he's having issues with nex-ac and blockipaddress is giving him crashes on his gamemode
it's not a problem with nex-ac
[18/04/2024 18:32:40] #0 native BlockIpAddress () in samp03svr
nex-ac doesn't implement this function, it's just call it
[chat] [rayapuram_peter]: manda mala podunga
[chat] [rayapuram_peter]: kakala
[cmd] manjiro sano: [rvc]
[sv:dbg:network:connect] : disconnecting player (30) ...
the futex facility returned an unexpected error code.
[log-core] server crash detected: fatal signal '6' (sigabrt) caught
[log-core] fatal signal '6' (sigabrt) catched
/home/container/start.sh: line 3: 16 aborted (core dumped) ./samp03svr
[snhcloud.com daemon]: ---------- detected server process in a crashed state! ----------
is there anything that makes sense ...?
will any conflict in the sequence of including Library will cause this crash ...?
@hollow delta
@true dune
//============================================================================
//========================== SAMP Include ====================================
//============================================================================
#include <a_samp>
//======================== [ Max Player Definition ] ========================
#undef MAX_PLAYERS
#if defined MAIN_SQL
#define MAX_PLAYERS 574
#else
#define MAX_PLAYERS 119
#endif
//==========================================================================
#include <timerfix>
#include <foreach>
#include <sscanf2>
#include <SKY>
#include <streamer>
#define DEBUG
#include <nex-ac_en.lang> //or any other
#include <nex-ac>
#include <a_mysql>
#include <bcrypt>
#include <progress2>
#include <notify>
#include <MenuStore>
#include <colandreas>
#include <FCNPC>
#include <selection> // New Selection Dialog
#include <callbacks>
#include <BustAim>
#include <weapon-config>
#include <Pawn.CMD>
#include <tp> // Anti Teleport
#include <sampvoice>
#include <geolite>
#include <mapfix>
#include <garage_block>
#endif
#if defined Christmas
#include <winteredition>
#endif
Header size: 46572 bytes
Code size: 6003320 bytes
Data size: 44206608 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5514 cells (22056 bytes)
Total requirements:50272884 bytes
hardly, I'd think on some memhack plugins maybe
btw why you need this
#include <tp> // Anti Teleport
if you already has anti-teleport in the ac
That just a custom include file checking player teleport
Just to double check
nex-ac already checks this
Ok i will remove it
I have added manual debug on where the actual crash is happening
I hope i will get something good
idc about other anticheats, just noticed it because they sometimes can cause issues as they usually has ac_ hook prefix (which coincides with the one in nex-ac in this case)
maybe you kick players in OnPlayerDisconnect btw?
in your gamemode
I didn't kick anywhere and I ain't blaming your anti cheat but it crashing on player disconnect
I hope something is happening
it's obvious, I mean samp had some issues with using Kick function inside OnPlayerDisconnect
I will check that
Is there anything like that
Is there any way to get more debug info
maybe try starting a server under omp?
if you have such ability atm
SKY plugin can be replaced with Pawn.RakNet
oh, right, didn't notice that
well, if you have any possibility to run it without FCNPC, you could still try to catch this crash
so you either get it with a lot more debug info (a .dmp file will be created), or just don't get it at all
If it crash regular i can detect it
It crashing in other host ( Many player like Main Server ) and working good on other host ( less player like Test Server)
Local host Running Good and Omp Running Good ( Local Host )
@hollow delta
Will this /rcon unbanip [IP] do the same thing as of BlockIpAddress native
if(Reconnecting[playerid] == true)
{
new string[64];
format(string, sizeof(string), "unbanip %s", ReconnectIP[playerid]);
SendRconCommand(string);
Reconnecting[playerid] = false;
SendRconCommand("reloadbans");
}
This code was in OnplayerDisconnect for relogging player on /relog was used on player
Not completely the same as it puts an IP into banlist while BlockIpAddress doesn't
[20/04/2024 18:19:23] [sv:dbg:network:connect] : disconnecting player (2) ...
[20/04/2024 18:19:23] [DEBUG] Relog Reset
[20/04/2024 18:19:23] [DEBUG] Check NPC
[20/04/2024 18:19:23] [DEBUG] Notify Nearby
[20/04/2024 18:19:23] [DEBUG] Update Discord
[20/04/2024 18:19:23] [DEBUG] Successfully Destroyed Progress Bar
[20/04/2024 18:19:23] [DEBUG] Successfully Destroyed 3D Text Labels
[20/04/2024 18:19:23] [DEBUG] Successfully Destroyed Player Temp Data
[20/04/2024 18:19:23] [DEBUG] Starting ForEach Temp Data
[20/04/2024 18:19:23] [DEBUG] Completed ForEach Temp Data
[20/04/2024 18:19:23] [DEBUG] Successfully Deleted SAMP Voice Streams
[20/04/2024 18:19:23] [DEBUG] Successfully Deleted Prison Actor
[20/04/2024 18:19:23] [DEBUG] Successfully Deleted Trailer
[20/04/2024 18:19:23] [DEBUG] Successfully Stopped Rainbow Timer
[20/04/2024 18:19:23] [DEBUG] Successfully Destroyed Active Report
[20/04/2024 18:19:23] [DEBUG] Successfully Resetted Accepted EMS
[20/04/2024 18:19:23] [DEBUG] Successfully Destroyed Tutorial Timer
[20/04/2024 18:19:23] [DEBUG] Successfully Resetted some Temp Data
[20/04/2024 18:19:23] [DEBUG] Resetted Jewel Rob
[20/04/2024 18:19:23] [DEBUG] Resetted Oil Rig Rob
[20/04/2024 18:19:23] [DEBUG] Resetted Main Bank Rob
[20/04/2024 18:19:23] [DEBUG] Resetted Car Rob
[20/04/2024 18:19:23] [DEBUG] Resetted Cargo Rob
[20/04/2024 18:19:23] [DEBUG] Resetted Drug Heist Rob
[20/04/2024 18:19:23] [DEBUG] Destroy Zone
[20/04/2024 18:19:23] [DEBUG] Destroy Report
[20/04/2024 18:19:23] [DEBUG] Destroy Points
[20/04/2024 18:19:23] [DEBUG] Destroy Turf
[20/04/2024 18:19:23] [DEBUG] Reset Grand X War
[20/04/2024 18:19:23] [DEBUG] Save Variables
[20/04/2024 18:19:23] [DEBUG] Prison or Not
[20/04/2024 18:19:23] [DEBUG] Remove Map Icon
[20/04/2024 18:19:23] [part] Don_Adhira has left the server (2:1)
[20/04/2024 18:19:52] [cmd] Theeran Asher: [rentcar]
[20/04/2024 18:20:54] [sv:dbg:network:connect] : disconnecting player (0) ...
**Server Crashed**
The Player whom was disconnected on last didn't even reached onplayerdisconnect,
Even if it reached the callback the first code was the Reconnect code after that a debug will display
I hope there is a conflict with Library file i need to rearrange it with sky.so the only memory hacking plugin i use
What is [sv:dbg:network:connect] logs?
Samp voice, It reset on server crash
so you have absolutely no suspicions about it all this time?
if its logs is the last line before the crash
Because samp voice crash all time if i messes with its natives and i have added manual check guard to avoid crash on it.
For make sure check it again, I will also check it by debugging.
Yesterday the crash didn't happen. I hope i made a fix,
Still Diagnosing the server
so, sampvoice was crashing the server like before your even created this thread, it keep crashing now and you still think what could be the reason?
It happened a year ago
what was the reason (by crashdetect) of those previous crashes?
SvDeletestream() native
It delete the stream without even created it ( For Phone Call )
I don't have the log, But it mentioned the native, so it was easier to find and fix