SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 22/10/2013, 08:23 PM   #1
Joe_Goro
Big Clucker
 
Joe_Goro's Avatar
 
Join Date: Aug 2012
Location: In No Where City
Posts: 193
Reputation: 4
Default server crashes help!!

Server Log :
Code:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3x-R2, (C)2005-2013 SA-MP Team

[16:26:10] password = ""  (string)
[16:26:10] 
[16:26:10] Server Plugins
[16:26:10] --------------
[16:26:10]  Loading plugin: mysql_static.so
[16:26:10] plugin.mysql: R20 successfully loaded.
[16:26:10]   Loaded.
[16:26:10]  Loading plugin: streamer.so
[16:26:10] 

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

[16:26:10]   Loaded.
[16:26:10]  Loading plugin: sscanf.so
[16:26:10] 

[16:26:10]  ===============================

[16:26:10]       sscanf plugin loaded.     

[16:26:10]    (c) 2009 Alex "******" Cole

[16:26:10]    0.3d-R2 500 Players "dnee"

[16:26:10]  ===============================

[16:26:10]   Loaded.
[16:26:10]  Loading plugin: Whirlpool.so
[16:26:10]  
[16:26:10]  ==================
[16:26:10]  
[16:26:10]   Whirlpool loaded
[16:26:10]  
[16:26:10]  ==================
[16:26:10]  
[16:26:10]   Loaded.
[16:26:10]  Loading plugin: nativechecker.so
[16:26:10]   Loaded.
[16:26:10]  Loaded 5 plugins.

[16:26:10] 
[16:26:10] Filterscripts
[16:26:10] ---------------
[16:26:10]   Loading filterscript 'buttons.amx'...
[16:26:10]   Loading filterscript 'gcustom03e.amx'...
[16:26:10]   Loading filterscript 'vactions.amx'...
[16:26:10]   Loaded 3 filterscripts.

[16:26:10]  
[16:26:10]  ======================================= 
[16:26:10]  |                                     | 
[16:26:10]  |        YSI version 3.01.0002        | 
[16:26:10]  |        By Alex "******" Cole        | 
[16:26:10]  |                                     | 
[16:26:10]  ======================================= 
[16:26:10]  
[16:26:11] function 'mysql_debug' is deprecated, use 'mysql_log' instead.
[16:26:11] [MySQL] (Main Pipelines) Connecting to 127.0.0.1...
[16:26:11] [MySQL] (MainPipeline) Connection successful toward MySQL Database Server!
[16:26:11] [LoadHouses] Loading data from database...
[16:26:11] [LoadDynamicDoors] Loading data from database...
[16:26:11] [LoadDynamicMapIcons] Loading data from database...
[16:26:11] [LoadDynamicTexts] Loading data from database...
[16:26:11] [LoadTurfWars] 40 turfs loaded.
[16:26:11] [LoadPaintballArenas] 10 paintball arenas loaded.
[16:26:11] [LoadEventPoints] 0 event points loaded.
[16:26:11] [LoadGates] 4000 gates loaded.
[16:26:11] [LoadElevatorStuff] 20 floors loaded.
[16:26:11] [LoadFamilies] 16 families loaded.
[16:26:11] [LoadPoints] 9 points loaded.
[16:26:19] [LoadCDealerships] 15 dealerships loaded.
[16:26:19] [MiscLoad] Misc Loaded
[16:26:19] [Tax] Government Tax/Vault Loaded.
what is the problem ? why server crashes ? its linex system

i do in Putty :
Code:
Unknown@VPS:~/VWRP# ./samp03svr

Started server on port: 7777, with maxplayers: 500 lanmode is OFF.

Segmentation fault
Unknown@VPS:~/VWRP#
__________________
If I Helped You REP+ PLease . Thanks


Server Team Speak : 5.231.62.98




Joe_Goro is offline   Reply With Quote
Old 22/10/2013, 08:26 PM   #2
Patrick
Guest
 
Posts: n/a
Default Re: server crashes help!!

Use Crashdetect and add -d3 in your pawno/pawn.cfg(Create one if not created)
  Reply With Quote
Old 22/10/2013, 08:29 PM   #3
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,831
Reputation: 1401
Default Re: server crashes help!!

Load crashdetect plugin (https://github.com/Zeex/samp-plugin-...ases/tag/v4.12) and when the server will crash again, show us what it printed to the console/server log. Although, I want you to do one more thing.

Goto pawno directory/folder and create a file pawn.cfg
Open the file and write in it:
pawn Code:
-d3
Save it and re-compile the scripts you use. The above thing might give extra information.
__________________
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 22/10/2013, 08:47 PM   #4
Joe_Goro
Big Clucker
 
Joe_Goro's Avatar
 
Join Date: Aug 2012
Location: In No Where City
Posts: 193
Reputation: 4
Angry Re: server crashes help!!

Server Log : with crash detect

Code:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3x-R2, (C)2005-2013 SA-MP Team

[16:52:04] password = ""  (string)
[16:52:04] 
[16:52:04] Server Plugins
[16:52:04] --------------
[16:52:04]  Loading plugin: mysql_static.so
[16:52:04] plugin.mysql: R20 successfully loaded.
[16:52:04]   Loaded.
[16:52:04]  Loading plugin: streamer.so
[16:52:04] 

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

[16:52:04]   Loaded.
[16:52:04]  Loading plugin: sscanf.so
[16:52:04] 

[16:52:04]  ===============================

[16:52:04]       sscanf plugin loaded.     

[16:52:04]    (c) 2009 Alex "******" Cole

[16:52:04]    0.3d-R2 500 Players "dnee"

[16:52:04]  ===============================

[16:52:04]   Loaded.
[16:52:04]  Loading plugin: Whirlpool.so
[16:52:04]  
[16:52:04]  ==================
[16:52:04]  
[16:52:04]   Whirlpool loaded
[16:52:04]  
[16:52:04]  ==================
[16:52:04]  
[16:52:04]   Loaded.
[16:52:04]  Loading plugin: nativechecker.so
[16:52:04]   Loaded.
[16:52:04]  Loading plugin: crashdetect.so
[16:52:04]   CrashDetect v4.12 is OK.
[16:52:04]   Loaded.
[16:52:04]  Loaded 6 plugins.

[16:52:04] 
[16:52:04] Filterscripts
[16:52:04] ---------------
[16:52:04]   Loading filterscript 'buttons.amx'...
[16:52:04]   Loading filterscript 'gcustom03e.amx'...
[16:52:05]   Loading filterscript 'vactions.amx'...
[16:52:05]   Loaded 3 filterscripts.

[16:52:06]  
[16:52:06]  ======================================= 
[16:52:06]  |                                     | 
[16:52:06]  |        YSI version 3.01.0002        | 
[16:52:06]  |        By Alex "******" Cole        | 
[16:52:06]  |                                     | 
[16:52:06]  ======================================= 
[16:52:06]  
[16:52:06] function 'mysql_debug' is deprecated, use 'mysql_log' instead.
[16:52:06] [MySQL] (Main Pipelines) Connecting to 127.0.0.1...
[16:52:06] [MySQL] (MainPipeline) Connection successful toward MySQL Database Server!
[16:52:06] [LoadHouses] Loading data from database...
[16:52:06] [LoadDynamicDoors] Loading data from database...
[16:52:06] [LoadDynamicMapIcons] Loading data from database...
[16:52:06] [LoadDynamicTexts] Loading data from database...
[16:52:06] [LoadTurfWars] 40 turfs loaded.
[16:52:06] [LoadPaintballArenas] 10 paintball arenas loaded.
[16:52:06] [LoadEventPoints] 0 event points loaded.
[16:52:06] [LoadGates] 4000 gates loaded.
[16:52:06] [LoadElevatorStuff] 20 floors loaded.
[16:52:06] [LoadFamilies] 16 families loaded.
[16:52:06] [LoadPoints] 9 points loaded.
[16:52:15] [LoadCDealerships] 15 dealerships loaded.
[16:52:15] [MiscLoad] Misc Loaded
[16:52:15] [Tax] Government Tax/Vault Loaded.
[16:52:39] [debug] Server crashed while executing VWRP.amx
[16:52:39] [debug] AMX backtrace:
[16:52:39] [debug] #0 native fclose () [0809a980] from samp03svr
[16:52:39] [debug] #1 0007b6b4 in ?? (0x012e56f8, 0x022277c0) from VWRP.amx
[16:52:39] [debug] #2 004a7314 in ?? (0x00000237, 0x451cb4cd, 0xc4d1accd, 0x4154cccd, 0x43134ccd, 0x00000003, 0x00000003, 0xffffffff, 0x0000ffff) from VWRP.amx
[16:52:39] [debug] #3 004844f8 in ?? (0x00000001) from VWRP.amx
[16:52:39] [debug] #4 000e42c4 in public zcmd_OnGameModeInit () from VWRP.amx
[16:52:39] [debug] #5 native CallLocalFunction () [080d2960] from samp03svr
[16:52:39] [debug] #6 0001eb5c in public S@@_OnGameModeInit () from VWRP.amx
[16:52:39] [debug] #7 native CallLocalFunction () [080d2960] from samp03svr
[16:52:39] [debug] #8 000137b0 in public S@@_OnGameModeInit () from VWRP.amx
[16:52:39] [debug] #9 native CallLocalFunction () [080d2960] from samp03svr
[16:52:39] [debug] #10 0000df04 in public Itter_OnGameModeInit () from VWRP.amx
[16:52:39] [debug] #11 native CallLocalFunction () [080d2960] from samp03svr
[16:52:39] [debug] #12 000072b0 in public SSCANF_OnGameModeInit () from VWRP.amx
[16:52:39] [debug] #13 00000ac0 in public OnGameModeInit () from VWRP.amx
[16:52:39] [debug] Native backtrace:
[16:52:39] [debug] #0 b67d0a5b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[16:52:39] [debug] #1 b67c9852 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[16:52:39] [debug] #2 b67ca35c in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[16:52:39] [debug] #3 b67ca86e in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[16:52:39] [debug] #4 b67d076d in ?? () from plugins/crashdetect.so
[16:52:39] [debug] #5 b77cd600 in ?? ()
[16:52:39] [debug] #6 b75d0eb6 in _IO_file_close_it () from /lib/i386-linux-gnu/libc.so.6
[16:52:39] [debug] #7 b75cf248 in fclose () from /lib/i386-linux-gnu/libc.so.6
[16:52:39] [debug] #8 b7508490 in fclose () from /lib/i386-linux-gnu/libc.so.6
[16:52:39] [debug] #9 0809a994 in ?? () from ./samp03svr
[16:52:39] [debug] #10 08093d14 in ?? () from ./samp03svr
[16:52:39] [debug] #11 b67c710c in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[16:52:39] [debug] #12 b67cc348 in ?? () from plugins/crashdetect.so
[16:52:39] [debug] #13 b67d2db5 in amx_Exec () from plugins/crashdetect.so
[16:52:39] [debug] #14 b67c96ab in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[16:52:39] [debug] #15 b67cc149 in ?? () from plugins/crashdetect.so
[16:52:39] [debug] #16 080d2c02 in ?? () from ./samp03svr
[16:52:39] [debug] #17 08093d14 in ?? () from ./samp03svr
[16:52:39] [debug] #18 b67c710c in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[16:52:39] [debug] #19 b67cc348 in ?? () from plugins/crashdetect.so
[16:52:39] [debug] #20 b67d2db5 in amx_Exec () from plugins/crashdetect.so
[16:52:39] [debug] #21 b67c96ab in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[16:52:39] [debug] #22 b67cc149 in ?? () from plugins/crashdetect.so
[16:52:39] [debug] #23 080d2c02 in ?? () from ./samp03svr
[16:52:39] [debug] #24 08093d14 in ?? () from ./samp03svr
[16:52:39] [debug] #25 b67c710c in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[16:52:39] [debug] #26 b67cc348 in ?? () from plugins/crashdetect.so
[16:52:39] [debug] #27 b67d2db5 in amx_Exec () from plugins/crashdetect.so
[16:52:39] [debug] #28 b67c96ab in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[16:52:39] [debug] #29 b67cc149 in ?? () from plugins/crashdetect.so
[16:52:39] [debug] #30 080d2c02 in ?? () from ./samp03svr
[16:52:39] [debug] #31 08093d14 in ?? () from ./samp03svr
[16:52:39] [debug] #32 b67c710c in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[16:52:39] [debug] #33 b67cc348 in ?? () from plugins/crashdetect.so
[16:52:39] [debug] #34 b67d2db5 in amx_Exec () from plugins/crashdetect.so
[16:52:39] [debug] #35 b67c96ab in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[16:52:39] [debug] #36 b67cc149 in ?? () from plugins/crashdetect.so
[16:52:39] [debug] #37 080d2c02 in ?? () from ./samp03svr
[16:52:39] [debug] #38 08093d14 in ?? () from ./samp03svr
[16:52:39] [debug] #39 b67c710c in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[16:52:39] [debug] #40 b67cc348 in ?? () from plugins/crashdetect.so
[16:52:39] [debug] #41 b67d2db5 in amx_Exec () from plugins/crashdetect.so
[16:52:39] [debug] #42 b67c96ab in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[16:52:39] [debug] #43 b67cc149 in ?? () from plugins/crashdetect.so
[16:52:39] [debug] #44 080acccb in ?? () from ./samp03svr
[16:52:39] [debug] #45 080b2bbd in ?? () from ./samp03svr
[16:52:39] [debug] #46 080b1487 in ?? () from ./samp03svr
[16:52:39] [debug] #47 b74bc4d3 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6

Putty :
Code:
2013-10-22 16:44:35 (229 KB/s) - `crashdetect-4.12-linux.tar.gz' saved [78714/78714]

User:~/VWRP# ./samp03svr

Started server on port: 7777, with maxplayers: 500 lanmode is OFF.

Segmentation fault
User:~/VWRP#
__________________
If I Helped You REP+ PLease . Thanks


Server Team Speak : 5.231.62.98




Joe_Goro is offline   Reply With Quote
Old 22/10/2013, 08:50 PM   #5
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,831
Reputation: 1401
Default Re: server crashes help!!

Are you sure you created the file to the correct directory? While compiling, it should give more information about the mode. Did you get them?

The only thing we know is that fclose function crashes your server in OnGameModeInit callback.

Would you mind to show us the callback? However, if it there's a lot of code in it, a line would be great!
__________________
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 22/10/2013, 08:54 PM   #6
Joe_Goro
Big Clucker
 
Joe_Goro's Avatar
 
Join Date: Aug 2012
Location: In No Where City
Posts: 193
Reputation: 4
Default Re: server crashes help!!

the server working perfectly on Windows , its get crashes on Linex only ,,
on windows i use plugin : Mysql.dll
on luinex i use plugin : mysql_static.so
This is the only difference

tell me what you want again ? iam not understand ?
__________________
If I Helped You REP+ PLease . Thanks


Server Team Speak : 5.231.62.98




Joe_Goro is offline   Reply With Quote
Old 22/10/2013, 09:02 PM   #7
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,831
Reputation: 1401
Default Re: server crashes help!!

Creating a file pawn.cfg into pawno directory/folder and writing in it:
pawn Code:
-d3
makes it to be compiled with debug mode. Compiling VWRP.pwn now will give extra information (if it does, then that means the file is ok. Otherwise, you've made a mistake (probably wrong extension or directory)).

So.. if the server crashes again, then it might give the line the crash was caused. If it still prints nothing else than the previous time show us OnGameModeInit callback.

PS: I'm going to sleep, I'll reply tomorrow back.
__________________
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 22/10/2013, 09:10 PM   #8
Joe_Goro
Big Clucker
 
Joe_Goro's Avatar
 
Join Date: Aug 2012
Location: In No Where City
Posts: 193
Reputation: 4
Default Re: server crashes help!!

re-compile the scripts ?
i cant re-compile on luinex , must re-compile on windows , and the script works fine on it
__________________
If I Helped You REP+ PLease . Thanks


Server Team Speak : 5.231.62.98





Last edited by Joe_Goro; 22/10/2013 at 09:13 PM. Reason: Edit
Joe_Goro is offline   Reply With Quote
Old 22/10/2013, 09:22 PM   #9
Joe_Goro
Big Clucker
 
Joe_Goro's Avatar
 
Join Date: Aug 2012
Location: In No Where City
Posts: 193
Reputation: 4
Default Re: server crashes help!!

help please
__________________
If I Helped You REP+ PLease . Thanks


Server Team Speak : 5.231.62.98




Joe_Goro is offline   Reply With Quote
Old 23/10/2013, 09:40 AM   #10
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,831
Reputation: 1401
Default Re: server crashes help!!

Quote:
Originally Posted by Joe_Goro View Post
re-compile the scripts ?
i cant re-compile on luinex , must re-compile on windows , and the script works fine on it
Re-compile your scripts on Windows with debug mode (what I basically mentioned above) and then upload your files to the server (on Linux). If you don't recompile with debug mode, then we're not aware of the lines.
__________________
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
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 crashes with use of gmx DrDoom151 Scripting Help 3 08/02/2013 01:40 PM
Server Crashes AMEENAMEEN Server Support 3 22/11/2012 07:14 PM
Server Crashes OwNaGe Server Support 1 18/05/2012 04:56 AM
Server Crashes @ Hourly Server time change. +Rep+. Quinlynn Server Support 6 24/03/2012 02:54 PM
Server crashes when more than 1 person joins the server???? WillyP Server Support 0 05/07/2010 06:47 PM


All times are GMT. The time now is 07:17 AM.


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