PDA

View Full Version : Server Crash.


TLN
24/02/2014, 10:38 AM
I did just download crashdetect because my server is crashing everytime I say something in the chat or when I spawn.
It didn't really help..
[12:40:25] [join] TLN has joined the server (0:176.11.167.49)
[12:40:32] [debug] Server crashed while executing CNR.amx
[12:40:32] [debug] AMX backtrace:
[12:40:32] [debug] #0 ???????? in ?? () from CNR.amx
[12:40:32] [debug] System backtrace:

BroZeus
24/02/2014, 10:40 AM
show us CNR filterscript

TTJJ
24/02/2014, 10:42 AM
I believe the questionmarks are caused by the function associated with them not being declared as public.

However, what you should do to diagnose this issue is sequentially remove all of the functionality under the "OnPlayerSpawn" callback, or the "OnPlayerConnect" callback. So, comment out each function call then restart the server and connect. If the server still crashes, re-introduce that piece and comment out the next function call until the server doesn't crash. That way you can find the exact piece of functionality causing the issue and get closer to the root of the problem.

If you are still having issues, try posting the contents of these two function calls here, so we might be able to look further into it.

TLN
24/02/2014, 10:43 AM
show us CNR filterscript
....CNR is my gamemode, I won't post everything here.


@TTJJ, will try. :)

Konstantinos
24/02/2014, 10:45 AM
If you don't use the latest version of crashdetect which is 4.13, then update it: https://github.com/Zeex/samp-plugin-crashdetect/releases/tag/v4.13
Use debug info: https://github.com/Zeex/samp-plugin-crashdetect/wiki/Compiling-scripts-with-debug-info
for more information about the crash.

Re-compile, start the server again and at the next crash post the server log.

show us CNR filterscript

No need for that. We don't even know what crashed the server yet.

TLN
24/02/2014, 10:58 AM
@TTJJ
It's still crashing when I spawn / talk in the chat.

@Konstantinos
All I get is this (tried that debug info.)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

And I still get this (Can't find crashdetect.so, newest one)..
[12:54:18] [join] TLN has joined the server (0:176.11.167.49)
[12:54:23] [debug] Server crashed while executing CNR.amx
[12:54:23] [debug] AMX backtrace:
[12:54:23] [debug] #0 ???????? in ?? () from CNR.amx
[12:54:23] [debug] System backtrace:

Server Log.
SA-MP Dedicated Server
----------------------
v0.3z, (C)2005-2014 SA-MP Team

[12:54:02]
[12:54:02] Server Plugins
[12:54:02] --------------
[12:54:02] Loading plugin: streamer.so
[12:54:03]

*** Streamer Plugin v2.7 by Incognito loaded ***

[12:54:03] Loaded.
[12:54:03] Loading plugin: sscanf.so
[12:54:03]

[12:54:03] ===============================

[12:54:03] sscanf plugin loaded.

[12:54:03] (c) 2009 Alex "******" Cole

[12:54:03] 0.3d-R2 500 Players "dnee"

[12:54:03] ===============================

[12:54:03] Loaded.
[12:54:03] Loading plugin: crashdetect.so
[12:54:03] CrashDetect v4.10 is OK.
[12:54:03] Loaded.
[12:54:03] Loaded 3 plugins.

[12:54:03]
[12:54:03] Filterscripts
[12:54:03] ---------------
[12:54:03] Loading filterscript 'Mapicon.amx'...
[12:54:03] Loading filterscript 'RealTime.amx'...
[12:54:03] Loading filterscript 'Vehicles.amx'...
[12:54:03]
--------------------------------------
[12:54:03] Blank Filterscript by your name here
[12:54:03] --------------------------------------

[12:54:03] Loaded 3 filterscripts.

[12:54:04] OnGameo
[12:54:04]
[12:54:04] =======================================
[12:54:04] | |
[12:54:04] | YSI version 1.03.0011 |
[12:54:04] | By Alex "******" Cole |
[12:54:04] | |
[12:54:04] | Checking the latest YSI version.. |
[12:54:04] | |
[12:54:04] =======================================
[12:54:04]
[12:54:04] ------------------------------------
[12:54:04] Server: Cops And Robbers
[12:54:04] Version: v0.1
[12:54:04] Developer: TLN
[12:54:04] ------------------------------------
[12:54:04] Number of vehicle models: 167
[12:54:04]
[12:54:04] ==========================================
[12:54:04] | |
[12:54:04] | A new version (v3.09.0684) of YSI is |
[12:54:04] | available from: |
[12:54:04] | |
[12:54:04] | www.y-less.com/YSI/YSI_1.0.zip |
[12:54:04] | |
[12:54:04] | Changelog: |
[12:54:04] | |
[12:54:04] | 1.04.0000: |
[12:54:04] | |
[12:54:04] | RC 1 for YSI 3.0. Available from: |
[12:54:04] | http://www.y-less.com/YSI/YSI_3.0.rar |
[12:54:04] | - includes MANY new libraries and |
[12:54:04] | fixes, see |
[12:54:04] | http://forum.sa-mp.com/showthread.php? |
[12:54:04] | p=1425938 for more information, with |
[12:54:04] | more topics and updates due over the |
[12:54:04] | next few weeks. In brief: Added |
[12:54:04] | "y_inline", "y_text", "y_users", |
[12:54:04] | "y_uvar", "y_svar", "y_remote"; |
[12:54:04] | updated "y_timers", "y_iter"; MANY |
[12:54:04] | MANY fixes and tweaks in almost every |
[12:54:04] | other library. |
[12:54:04] | |
[12:54:04] | 3.00.0000: |
[12:54:04] | |
[12:54:04] | YSI 3.0 released! Now includes the |
[12:54:04] | "y_text" library for better messages, |
[12:54:04] | and a reworked "y_classes" library. |
[12:54:04] | Largely documented here |
[12:54:04] | "http://forum.sa-mp.com/showthread.php |
[12:54:04] | ?t=321092". |
[12:54:04] | |
[12:54:04] | 3.01.0002: |
[12:54:04] | |
[12:54:04] | Small fixes to "y_text" and |
[12:54:04] | "y_classes". |
[12:54:04] | |
[12:54:04] | 3.09.0684: |
[12:54:04] | |
[12:54:04] | Reverted to old download location. |
[12:54:04] | Improved (and fixed) version checks; |
[12:54:04] | added y_bitmap, y_areas, y_races, |
[12:54:04] | y_zonenames, better documentation; |
[12:54:04] | MANY other bug fixes - see the github |
[12:54:04] | repository for more details: |
[12:54:04] | |
[12:54:04] ==========================================
[12:54:04]
[12:54:17] Incoming connection: 176.11.167.49:2236
[12:54:18] [join] TLN has joined the server (0:176.11.167.49)
[12:54:23] [debug] Server crashed while executing CNR.amx
[12:54:23] [debug] AMX backtrace:
[12:54:23] [debug] #0 ???????? in ?? () from CNR.amx
[12:54:23] [debug] System backtrace:

Konstantinos
24/02/2014, 11:09 AM
Your sscanf plugin is an older version so update both plugin and include file.

Your crashdetect plugin is an older version so update the plugin with the link I gave you above.

You did something wrong with the debug info so make sure you've created a file called pawn.cfg (the extention must be .cfg - it's important) and that file is located in pawno folder (where pawno.exe is located). Also make sure that it's written inside that file: -d3

After done the above, when you will compile you'll get more information such as (an example):

Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

Header size: 14904 bytes
Code size: 2547064 bytes
Data size: 20795764 bytes
Stack/heap size: 16384 bytes; estimated max. usage: 1234 cells
Total requirements: 23374116 bytes

That means that the script has been compiled with -d3 and it's going to give more information about the crashes.

TLN
24/02/2014, 11:16 AM
Yes, I've done it like this:
pawno > pawn.cfg (it is a .cfg file) > -d3, nothing happens.

Also the crashdetect link above, I can only download the Windows one, so I don't get the .so file.
My host is using Linux.. I tried to download the Linux one at the same link, but didn't work (for me).

Konstantinos
24/02/2014, 11:19 AM
Just to be sure of it. You create pawn.cfg in your Windows' server package, don't you? If you do it on Linux, it will do nothing.

The link for the Linux works just fine: https://github.com/Zeex/samp-plugin-crashdetect/releases/download/v4.13/crashdetect-4.13-linux.tar.gz

TLN
24/02/2014, 11:21 AM
Yes, I created it in my Windows' server.
And yeah, the link works but I can't open that file.. \(._.)/

Konstantinos
24/02/2014, 11:27 AM
Do you open the file by double-clicking on it or via pawno.exe > Open file? Open it via the editor. It can mess up if you have more pawno.exe files (different packages) and you run not the correct one.

crashdetect.so (http://www.solidfiles.com/d/c1ff308ef3/crashdetect.so)

TLN
24/02/2014, 11:40 AM
Thanks a lot, I fixed it now.
I had to add all these. :P
public OnVehicleSpawn(vehicleid)
{
return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}

public OnPlayerText(playerid, text[])
{
return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}


public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}


public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}

public OnRconCommand(cmd[])
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}

public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
return 1;
}

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{

return 1;
}