PDA

View Full Version : server crashes help!!


Joe_Goro
22/10/2013, 08:23 PM
Server Log :

----------
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 :

Unknown@VPS:~/VWRP# ./samp03svr

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

Segmentation fault
Unknown@VPS:~/VWRP#

Patrick
22/10/2013, 08:26 PM
Use Crashdetect and add -d3 in your pawno/pawn.cfg(Create one if not created)

Konstantinos
22/10/2013, 08:29 PM
Load crashdetect plugin (https://github.com/Zeex/samp-plugin-crashdetect/releases/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:

-d3

Save it and re-compile the scripts you use. The above thing might give extra information.

Joe_Goro
22/10/2013, 08:47 PM
Server Log : with crash detect

----------
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 :
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#

Konstantinos
22/10/2013, 08:50 PM
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!

Joe_Goro
22/10/2013, 08:54 PM
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 ?

Konstantinos
22/10/2013, 09:02 PM
Creating a file pawn.cfg into pawno directory/folder and writing in it:

-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.

Joe_Goro
22/10/2013, 09:10 PM
re-compile the scripts ?
i cant re-compile on luinex , must re-compile on windows , and the script works fine on it

Joe_Goro
22/10/2013, 09:22 PM
help please

Konstantinos
23/10/2013, 09:40 AM
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.

Joe_Goro
23/10/2013, 10:04 AM
when i compile with pawn.cfg the pawno show not responding ..... why?

Konstantinos
23/10/2013, 10:09 AM
It's the first time someone got that problem. The file pawn.cfg just changes the flag, it shouldn't be a problem.

You'll only need to recompile your script like you used to do, nothing else (not including that file in the mode or so).

Joe_Goro
23/10/2013, 10:20 AM
i do .. but the pawno not responding
and i cant compile

Joe_Goro
23/10/2013, 10:34 AM
Finaly its Compiled :
Pawno :

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

Header size: 33972 bytes
Code size: 6247520 bytes
Data size: 19814208 bytes
Stack/heap size: 16000000 bytes; estimated max. usage: unknown, due to recursion
Total requirements:42095700 bytes


thats mean working ?
i will upload the script now and give you server_log.txt

Joe_Goro
23/10/2013, 10:52 AM
Server Log :

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

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

[07:00:33] password = "" (string)
[07:00:33]
[07:00:33] Server Plugins
[07:00:33] --------------
[07:00:33] Loading plugin: mysql_static.so
[07:00:33] plugin.mysql: R20 successfully loaded.
[07:00:33] Loaded.
[07:00:33] Loading plugin: streamer.so
[07:00:33]

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

[07:00:33] Loaded.
[07:00:33] Loading plugin: sscanf.so
[07:00:33]

[07:00:33] ===============================

[07:00:33] sscanf plugin loaded.

[07:00:33] (c) 2009 Alex "******" Cole

[07:00:33] 0.3d-R2 500 Players "dnee"

[07:00:33] ===============================

[07:00:33] Loaded.
[07:00:33] Loading plugin: Whirlpool.so
[07:00:33]
[07:00:33] ==================
[07:00:33]
[07:00:33] Whirlpool loaded
[07:00:33]
[07:00:33] ==================
[07:00:33]
[07:00:33] Loaded.
[07:00:33] Loading plugin: nativechecker.so
[07:00:33] Loaded.
[07:00:33] Loading plugin: crashdetect.so
[07:00:33] CrashDetect v4.12 is OK.
[07:00:33] Loaded.
[07:00:33] Loaded 6 plugins.

[07:00:33]
[07:00:33] Filterscripts
[07:00:33] ---------------
[07:00:33] Loading filterscript 'buttons.amx'...
[07:00:35] Loading filterscript 'gcustom03e.amx'...
[07:00:36] Loading filterscript 'vactions.amx'...
[07:00:36] Loaded 3 filterscripts.

[07:00:37]
[07:00:37] =======================================
[07:00:37] | |
[07:00:37] | YSI version 3.01.0002 |
[07:00:37] | By Alex "******" Cole |
[07:00:37] | |
[07:00:37] =======================================
[07:00:37]
[07:00:37] function 'mysql_debug' is deprecated, use 'mysql_log' instead.
[07:00:37] [MySQL] (Main Pipelines) Connecting to 127.0.0.1...
[07:00:37] [MySQL] (MainPipeline) Connection successful toward MySQL Database Server!
[07:00:37] [LoadHouses] Loading data from database...
[07:00:37] [LoadDynamicDoors] Loading data from database...
[07:00:37] [LoadDynamicMapIcons] Loading data from database...
[07:00:37] [LoadDynamicTexts] Loading data from database...
[07:01:20] [LoadTurfWars] 40 turfs loaded.
[07:01:20] [LoadPaintballArenas] 10 paintball arenas loaded.
[07:01:20] [LoadEventPoints] 0 event points loaded.
[07:01:20] [LoadGates] 4000 gates loaded.
[07:01:20] [LoadElevatorStuff] 20 floors loaded.
[07:01:20] [LoadFamilies] 16 families loaded.
[07:01:20] [LoadPoints] 9 points loaded.
[07:01:30] [LoadCDealerships] 15 dealerships loaded.
[07:01:30] [MiscLoad] Misc Loaded
[07:01:30] [Tax] Government Tax/Vault Loaded.
[07:01:58] [debug] Server crashed while executing VWRP.amx
[07:01:58] [debug] AMX backtrace:
[07:01:58] [debug] #0 native fclose () [0809a980] from samp03svr
[07:01:58] [debug] #1 0009b708 in Log (sz_fileName[]=@0x012e56f8 "logs/cardebug.log", sz_input[]=@0x022277c0 "-> [471]") at C:\Documents and Settings\edku dreams\Desktop\VWRP\VWRP\gamemodes\VWRP.pwn:14423
[07:01:58] [debug] #2 005f5448 in CreateVehicleEx (modelid=567, Float:x=2507.30005, Float:y=-1677.40002, Float:z=13.30000, Float:angle=147.30000, color1=3, color2=3, respawn_delay=-1, playerid=65535) at C:\Documents and Settings\edku dreams\Desktop\VWRP\VWRP\gamemodes\VWRP.pwn:102209
[07:01:58] [debug] #3 005c8f58 in LoadGangVehicles (f=1) at C:\Documents and Settings\edku dreams\Desktop\VWRP\VWRP\gamemodes\VWRP.pwn:98848
[07:01:58] [debug] #4 00123870 in public zcmd_OnGameModeInit () at C:\Documents and Settings\edku dreams\Desktop\VWRP\VWRP\gamemodes\VWRP.pwn:23034
[07:01:58] [debug] #5 native CallLocalFunction () [080d2960] from samp03svr
[07:01:58] [debug] #6 0002458c in public S@@_OnGameModeInit () at C:\Documents and Settings\edku dreams\Desktop\VWRP\VWRP\pawno\include\ZCMD.inc:70
[07:01:58] [debug] #7 native CallLocalFunction () [080d2960] from samp03svr
[07:01:58] [debug] #8 00017244 in public S@@_OnGameModeInit () at C:\Documents and Settings\edku dreams\Desktop\VWRP\VWRP\pawno\include\YSI\interna l\y_dohooks.inc:422
[07:01:58] [debug] #9 native CallLocalFunction () [080d2960] from samp03svr
[07:01:58] [debug] #10 000109a4 in public Itter_OnGameModeInit () at C:\Documents and Settings\edku dreams\Desktop\VWRP\VWRP\pawno\include\YSI\y_scrip tinit.inc:164
[07:01:58] [debug] #11 native CallLocalFunction () [080d2960] from samp03svr
[07:01:58] [debug] #12 000084d0 in public SSCANF_OnGameModeInit () at C:\Documents and Settings\edku dreams\Desktop\VWRP\VWRP\pawno\include\foreach.inc :633
[07:01:58] [debug] #13 00000cbc in public OnGameModeInit () at C:\Documents and Settings\edku dreams\Desktop\VWRP\VWRP\pawno\include\sscanf2.inc :174
[07:01:58] [debug] Native backtrace:
[07:01:58] [debug] #0 b66d3a5b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[07:01:58] [debug] #1 b66cc852 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[07:01:58] [debug] #2 b66cd35c in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[07:01:58] [debug] #3 b66cd86e in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[07:01:58] [debug] #4 b66d376d in ?? () from plugins/crashdetect.so
[07:01:58] [debug] #5 b77d3600 in ?? ()
[07:01:58] [debug] #6 b75d6eb6 in _IO_file_close_it () from /lib/i386-linux-gnu/libc.so.6
[07:01:58] [debug] #7 b75d5248 in fclose () from /lib/i386-linux-gnu/libc.so.6
[07:01:58] [debug] #8 b750e490 in fclose () from /lib/i386-linux-gnu/libc.so.6
[07:01:58] [debug] #9 0809a994 in ?? () from ./samp03svr
[07:01:58] [debug] #10 08093d14 in ?? () from ./samp03svr
[07:01:58] [debug] #11 b66ca10c in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[07:01:58] [debug] #12 b66cf348 in ?? () from plugins/crashdetect.so
[07:01:58] [debug] #13 b66d5db5 in amx_Exec () from plugins/crashdetect.so
[07:01:58] [debug] #14 b66cc6ab in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[07:01:58] [debug] #15 b66cf149 in ?? () from plugins/crashdetect.so
[07:01:58] [debug] #16 080d2c02 in ?? () from ./samp03svr
[07:01:58] [debug] #17 08093d14 in ?? () from ./samp03svr
[07:01:58] [debug] #18 b66ca10c in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[07:01:58] [debug] #19 b66cf348 in ?? () from plugins/crashdetect.so
[07:01:58] [debug] #20 b66d5db5 in amx_Exec () from plugins/crashdetect.so
[07:01:58] [debug] #21 b66cc6ab in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[07:01:58] [debug] #22 b66cf149 in ?? () from plugins/crashdetect.so
[07:01:58] [debug] #23 080d2c02 in ?? () from ./samp03svr
[07:01:58] [debug] #24 08093d14 in ?? () from ./samp03svr
[07:01:58] [debug] #25 b66ca10c in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[07:01:58] [debug] #26 b66cf348 in ?? () from plugins/crashdetect.so
[07:01:58] [debug] #27 b66d5db5 in amx_Exec () from plugins/crashdetect.so
[07:01:58] [debug] #28 b66cc6ab in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[07:01:58] [debug] #29 b66cf149 in ?? () from plugins/crashdetect.so
[07:01:58] [debug] #30 080d2c02 in ?? () from ./samp03svr
[07:01:58] [debug] #31 08093d14 in ?? () from ./samp03svr
[07:01:58] [debug] #32 b66ca10c in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[07:01:58] [debug] #33 b66cf348 in ?? () from plugins/crashdetect.so
[07:01:58] [debug] #34 b66d5db5 in amx_Exec () from plugins/crashdetect.so
[07:01:58] [debug] #35 b66cc6ab in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[07:01:58] [debug] #36 b66cf149 in ?? () from plugins/crashdetect.so
[07:01:58] [debug] #37 080d2c02 in ?? () from ./samp03svr
[07:01:58] [debug] #38 08093d14 in ?? () from ./samp03svr
[07:01:58] [debug] #39 b66ca10c in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[07:01:58] [debug] #40 b66cf348 in ?? () from plugins/crashdetect.so
[07:01:58] [debug] #41 b66d5db5 in amx_Exec () from plugins/crashdetect.so
[07:01:58] [debug] #42 b66cc6ab in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[07:01:58] [debug] #43 b66cf149 in ?? () from plugins/crashdetect.so
[07:01:58] [debug] #44 080acccb in ?? () from ./samp03svr
[07:01:58] [debug] #45 080b2bbd in ?? () from ./samp03svr
[07:01:58] [debug] #46 080b1487 in ?? () from ./samp03svr
[07:01:58] [debug] #47 b74c24d3 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6

Konstantinos
23/10/2013, 11:23 AM
[07:01:58] [debug] #0 native fclose () [0809a980] from samp03svr
[07:01:58] [debug] #1 0009b708 in Log (sz_fileName[]=@0x012e56f8 "logs/cardebug.log", sz_input[]=@0x022277c0 "-> [471]") at C:\Documents and Settings\edku dreams\Desktop\VWRP\VWRP\gamemodes\VWRP.pwn:14423
[07:01:58] [debug] #2 005f5448 in CreateVehicleEx (modelid=567, Float:x=2507.30005, Float:y=-1677.40002, Float:z=13.30000, Float:angle=147.30000, color1=3, color2=3, respawn_delay=-1, playerid=65535) at C:\Documents and Settings\edku dreams\Desktop\VWRP\VWRP\gamemodes\VWRP.pwn:102209
[07:01:58] [debug] #3 005c8f58 in LoadGangVehicles (f=1) at C:\Documents and Settings\edku dreams\Desktop\VWRP\VWRP\gamemodes\VWRP.pwn:98848
[07:01:58] [debug] #4 00123870 in public zcmd_OnGameModeInit () at C:\Documents and Settings\edku dreams\Desktop\VWRP\VWRP\gamemodes\VWRP.pwn:23034



Important Note: The file handle must be valid, and must point to a file successfully opened by fopen.


I assume that's the mistake you did in Log function. Can you post that function?

nguyenquynh
23/10/2013, 11:26 AM
NG:RP script =]]z

Joe_Goro
23/10/2013, 01:50 PM
what you mean?

Joe_Goro
23/10/2013, 04:38 PM
help please

Konstantinos
23/10/2013, 04:58 PM
You used

Log("logs/cardebug.log", "blabla..");


Post that Log function and also line 14423.

Joe_Goro
23/10/2013, 06:28 PM
stock CreateVehicleEx(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay, playerid = INVALID_PLAYER_ID)
{
new string[128];
format(string, sizeof(string), "(%d, %f, %f, %f, %f, %d, %d, %d) (%s)", modelid, x, y, z, angle, color1, color2, respawn_delay, GetPlayerNameEx(playerid));
Log("logs/cardebug.log", string);

new id = CreateVehicle(modelid, x, y, z, angle, color1, color2, respawn_delay);

format(string, sizeof(string), "-> [%d]", id);
Log("logs/cardebug.log", string);
return id;
}

Line :

if(logfile) fclose(logfile);


but i repeat again its works perfectly on windows , why the problem will be from .pwn ?

Konstantinos
23/10/2013, 06:46 PM
The crash came from the Log function which was called in CreateVehicleEx.

You'll need to post the Log function..

The line 14423 seems fine to me on the way it checks if it opened the file correctly but opening a file and closing it makes no sense unless you show the whole code of it..

Joe_Goro
23/10/2013, 06:49 PM
hey come on TS3 , and talk to me please ::: 5.231.43.21

P.S: also if you can help me in this problem , it will be fine : http://forum.sa-mp.com/showthread.php?t=471384

Joe_Goro
24/10/2013, 07:56 AM
help me please

Joe_Goro
24/10/2013, 12:21 PM
Please Help guys :(