SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 24/02/2014, 10:38 AM   #1
TLN
Banned
 
Join Date: Sep 2013
Posts: 277
Reputation: 45
Question Server Crash.

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..
Code:
[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:
TLN is offline   Reply With Quote
Old 24/02/2014, 10:40 AM   #2
BroZeus
High-roller
 
BroZeus's Avatar
 
Join Date: Jan 2014
Location: India
Posts: 1,398
Reputation: 173
Default Re: Server Crash.

show us CNR filterscript
__________________


"Be the change that you wish to see in the world."

Check out my Github profile!
BroZeus is offline   Reply With Quote
Old 24/02/2014, 10:42 AM   #3
TTJJ
Big Clucker
 
Join Date: May 2007
Posts: 146
Reputation: 31
Default Re: Server Crash.

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.
__________________
Soap Roleplay

My Releases:
[GAMEMODE] Just Roleplay
[FILTERSCRIPT] Flak Gun
TTJJ is offline   Reply With Quote
Old 24/02/2014, 10:43 AM   #4
TLN
Banned
 
Join Date: Sep 2013
Posts: 277
Reputation: 45
Default Re: Server Crash.

Quote:
Originally Posted by BroZeus View Post
show us CNR filterscript
....CNR is my gamemode, I won't post everything here.


@TTJJ, will try.
TLN is offline   Reply With Quote
Old 24/02/2014, 10:45 AM   #5
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,828
Reputation: 1401
Default Re: Server Crash.

If you don't use the latest version of crashdetect which is 4.13, then update it: https://github.com/Zeex/samp-plugin-...ases/tag/v4.13
Use debug info: https://github.com/Zeex/samp-plugin-...ith-debug-info
for more information about the crash.

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

Quote:
Originally Posted by BroZeus View Post
show us CNR filterscript
No need for that. We don't even know what crashed the server yet.
__________________
Life is like riding a bicycle. To keep your balance, you must keep moving.

[Tutorial] How to use SQLite
[FilterScript] Tune System
Konstantinos is offline   Reply With Quote
Old 24/02/2014, 10:58 AM   #6
TLN
Banned
 
Join Date: Sep 2013
Posts: 277
Reputation: 45
Default Re: Server Crash.

@TTJJ
It's still crashing when I spawn / talk in the chat.

@Konstantinos
All I get is this (tried that debug info.)
Code:
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
And I still get this (Can't find crashdetect.so, newest one)..
Code:
[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.
Code:
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:
TLN is offline   Reply With Quote
Old 24/02/2014, 11:09 AM   #7
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,828
Reputation: 1401
Default Re: Server Crash.

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 Code:
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.
__________________
Life is like riding a bicycle. To keep your balance, you must keep moving.

[Tutorial] How to use SQLite
[FilterScript] Tune System
Konstantinos is offline   Reply With Quote
Old 24/02/2014, 11:16 AM   #8
TLN
Banned
 
Join Date: Sep 2013
Posts: 277
Reputation: 45
Default Re: Server Crash.

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).
TLN is offline   Reply With Quote
Old 24/02/2014, 11:19 AM   #9
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,828
Reputation: 1401
Default Re: Server Crash.

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-...3-linux.tar.gz
__________________
Life is like riding a bicycle. To keep your balance, you must keep moving.

[Tutorial] How to use SQLite
[FilterScript] Tune System
Konstantinos is offline   Reply With Quote
Old 24/02/2014, 11:21 AM   #10
TLN
Banned
 
Join Date: Sep 2013
Posts: 277
Reputation: 45
Default Re: Server Crash.

Yes, I created it in my Windows' server.
And yeah, the link works but I can't open that file.. \(._.)/
TLN is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Logs Server Crash MBilal Scripting Help 5 31/12/2013 08:41 PM
setplayername server crash helpme [crash detect] bigtigerbeee Scripting Help 4 28/11/2013 12:23 AM
Hello strange crash!!!!! (SAMP Crash not server) Scrillex Scripting Help 2 31/08/2012 07:03 AM
Fatal Game crash, Not client or server crash SourceCode Scripting Help 3 11/10/2011 05:13 PM
The problem server crash (server down), Help Please. alynutzj2p Server Support 4 23/06/2011 06:13 PM


All times are GMT. The time now is 04:59 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.