Bug when running gamemode
#1

Please help don't know whats the problem when running it or is it the new include make this happen or any other something?

Код:
[15:42:20] Running Gamemode please wait...
[15:42:20] [debug] Server crashed while executing SRRP.amx
[15:42:20] [debug] AMX backtrace:
[15:42:20] [debug] #0 native fclose () [004056f0] from samp-server.exe
[15:42:20] [debug] #1 0022104c in ?? () from SRRP.amx
[15:42:20] [debug] #2 001a9480 in public zcmd_OnGameModeInit () from SRRP.amx
[15:42:20] [debug] #3 native CallLocalFunction () [00474110] from samp-server.exe
[15:42:20] [debug] #4 000123b8 in public Timers_OnScriptInit () from SRRP.amx
[15:42:20] [debug] #5 native CallLocalFunction () [00474110] from samp-server.exe
[15:42:20] [debug] #6 00012240 in public Itter_OnGameModeInit () from SRRP.amx
[15:42:20] [debug] #7 native CallLocalFunction () [00474110] from samp-server.exe
[15:42:20] [debug] #8 000076e4 in public YVers_OnScriptInit () from SRRP.amx
[15:42:20] [debug] #9 native CallLocalFunction () [00474110] from samp-server.exe
[15:42:20] [debug] #10 00006c60 in public SSCANF_OnGameModeInit () from SRRP.amx
[15:42:20] [debug] #11 00000984 in public OnGameModeInit () from SRRP.amx
[15:42:20] [debug] Native backtrace:
[15:42:20] [debug] #0 00497acb in ?? () from samp-server.exe
[15:42:20] [debug] #1 004056fd in ?? () from samp-server.exe
[15:42:20] [debug] #2 704d49ca in ?? () from plugins\crashdetect.DLL
[15:42:20] [debug] #3 704d681f in ?? () from plugins\crashdetect.DLL
[15:42:20] [debug] #4 704c9b84 in ?? () from plugins\crashdetect.DLL
[15:42:20] [debug] #5 704d4a1a in ?? () from plugins\crashdetect.DLL
[15:42:20] [debug] #6 723351b9 in ?? () from plugins\streamer.DLL
[15:42:20] [debug] #7 0047441e in ?? () from samp-server.exe
[15:42:20] [debug] #8 004010b6 in ?? () from samp-server.exe
[15:42:20] [debug] #9 704d49ca in ?? () from plugins\crashdetect.DLL
[15:42:20] [debug] #10 704d681f in ?? () from plugins\crashdetect.DLL
[15:42:20] [debug] #11 704c9b84 in ?? () from plugins\crashdetect.DLL
[15:42:20] [debug] #12 704d4a1a in ?? () from plugins\crashdetect.DLL
[15:42:20] [debug] #13 723351b9 in ?? () from plugins\streamer.DLL
[15:42:20] [debug] #14 0047441e in ?? () from samp-server.exe
[15:42:20] [debug] #15 004010b6 in ?? () from samp-server.exe
[15:42:20] [debug] #16 704d49ca in ?? () from plugins\crashdetect.DLL
[15:42:20] [debug] #17 704d681f in ?? () from plugins\crashdetect.DLL
[15:42:20] [debug] #18 704c9b84 in ?? () from plugins\crashdetect.DLL
[15:42:20] [debug] #19 704d4a1a in ?? () from plugins\crashdetect.DLL
[15:42:20] [debug] #20 723351b9 in ?? () from plugins\streamer.DLL
[15:42:20] [debug] #21 0047441e in ?? () from samp-server.exe
[15:42:20] [debug] #22 004010b6 in ?? () from samp-server.exe
[15:42:20] [debug] #23 704d49ca in ?? () from plugins\crashdetect.DLL
[15:42:20] [debug] #24 704d681f in ?? () from plugins\crashdetect.DLL
[15:42:20] [debug] #25 704c9b84 in ?? () from plugins\crashdetect.DLL
[15:42:20] [debug] #26 704d4a1a in ?? () from plugins\crashdetect.DLL
[15:42:20] [debug] #27 723351b9 in ?? () from plugins\streamer.DLL
[15:42:20] [debug] #28 0047441e in ?? () from samp-server.exe
[15:42:20] [debug] #29 004010b6 in ?? () from samp-server.exe
[15:42:20] [debug] #30 704d49ca in ?? () from plugins\crashdetect.DLL
[15:42:20] [debug] #31 704d681f in ?? () from plugins\crashdetect.DLL
[15:42:20] [debug] #32 704c9b84 in ?? () from plugins\crashdetect.DLL
[15:42:20] [debug] #33 704d4a1a in ?? () from plugins\crashdetect.DLL
[15:42:20] [debug] #34 723351b9 in ?? () from plugins\streamer.DLL
[15:42:20] [debug] #35 0046f504 in ?? () from samp-server.exe
[15:42:20] [debug] #36 65646f6d in ?? () from samp-server.exe
[15:42:20] [debug] #37 52532f73 in ?? () from samp-server.exe
[15:42:20] [debug] #38 612e5052 in ?? () from samp-server.exe
Reply
#2

update plugins
Reply
#3

scanff and streamer are on the lastest version.
Reply
#4

fclose crashes the server if the file handle is not valid. We have to find the function which is called in OnGameModeInit and uses fclose to fix it and using -d3 will point it out + the exact line: https://github.com/Zeex/samp-plugin-...ith-debug-info
Reply
#5

I follow all this step



When compiling there's nothing
Reply
#6

It's not .cfg type but a text document. Copy server.cfg and paste it to pawno folder. Rename it to pawn and add -d3 in it. Try re-compiling your script once again.
Reply
#7

Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          31400 bytes
Code size:          6157508 bytes
Data size:         62708248 bytes
Stack/heap size:   16000000 bytes; estimated max. usage: unknown, due to recursion
Total requirements:84897156 bytes
Reply
#8

Okay, good. Run the server and if you get the results with debug prefix again, post your server log.
Reply
#9

Код:
SA-MP Dedicated Server
----------------------
v0.3.7, ©2005-2015 SA-MP Team

[22:42:43] 
[22:42:43] Server Plugins
[22:42:43] --------------
[22:42:43]  Loading plugin: sscanf.dll
[22:42:44] 

[22:42:44]  ===============================

[22:42:44]       sscanf plugin loaded.     

[22:42:44]          Version:  2.8.1        

[22:42:44]    © 2012 Alex "******" Cole  

[22:42:44]  ===============================

[22:42:44]   Loaded.
[22:42:44]  Loading plugin: crashdetect.dll
[22:42:44]   CrashDetect v4.15.1 is OK.
[22:42:44]   Loaded.
[22:42:44]  Loading plugin: streamer.dll
[22:42:44] 

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

[22:42:44]   Loaded.
[22:42:44]  Loaded 3 plugins.

[22:42:44] 
[22:42:44] Filterscripts
[22:42:44] ---------------
[22:42:44]   Loading filterscript 'all.amx'...
[22:42:45]   Loading filterscript 'buttons.amx'...
[22:42:45]   Loaded 2 filterscripts.

[22:42:45] Running Gamemode please wait...
[22:42:59] 3DTEXTDRAW LIMIT: 1024 | 3DTEXTDRAW COUNT: 1712
[22:42:59] PICKUP LIMIT: 4096  | PICKUP COUNT: 1583
[22:42:59] OBJECT LIMIT: 1000  | OBJECT COUNT: 10425
[22:42:59]  
[22:42:59] -------------------------------------------   
[22:42:59]  True Reality Roleplay Memory since 2012
[22:42:59] -------------------------------------------
[22:42:59]  
[22:42:59] Number of vehicle models: 76
I know this seems normal if on my PC but the host admin compile it and run the gamemode it show that error above. This is what he replied after that.

Код:
Well this is the last step to get your server running but listen, the things you got to do till here is:
Get your streamer and sscanf of latest version, get latest includes from samp0.3.7 windows pawno ( only Default SAMP Includes ).
After that you will be able to get to this last step, I'll like you to try at SAMP forums, they will be helping you, I can't do any help here as I've never before worked using your includes.
Other than it, your script got near about 93k of lines and I won't be able to get to the solution after this, I've done many steps, got over some problems and reduced the problem you will be facing just follow the steps I've told you here. Hope you get your server running ASAP, I'll be leaving this topic open if any other question arises.
My plugins already on the latest just didn't know about the include he said that need to be update. I did search on the SA-MP forum for latest include but all i see was the old version of the include.

This is the include that i using

Код:
#include <a_samp>       //update
#include <sscanf2>      //update
#include <streamer>     //update
#include <a_zones>      //update
#include <foreach>      //update
#include <yom_buttons>  //update
#include <djson>        
#include <progress>     
#include <YSI\y_timers>
#include <zcmd>
#include <dini>
#include <mSelection>   //update
That have "//update" means already updated. Others can't seems to be found.
Reply
#10

The problem is not about not updated plugins/includes. The native fclose and any (almost) other file function will crash the server if the file handle is invalid. The output from the server log you posted is fine, I need the one with debug prefix from crashdetect plugin so we can see the function which calls fclose and fix it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)