[debug] Server crashed while executing...
#1

What's going on here?
I keep getting these strange crashes.

Code:
[OnGameModeInit] Initialising 'Main'...
[11:36:53] 
[OnGameModeInit_Setup] Setting up...
[11:36:53] [debug] Server crashed while executing ScavengeSurvive.amx
[11:36:53] [debug] AMX backtrace:
[11:36:53] [debug] #0 0001ffdc in ?? (0, 3, 20064044, 1) from ScavengeSurvive.amx
[11:36:53] [debug] #1 0002a500 in ?? () from ScavengeSurvive.amx
[11:36:53] [debug] #2 00032278 in ?? () from ScavengeSurvive.amx
[11:36:53] [debug] #3 00226038 in ?? () from ScavengeSurvive.amx
[11:36:53] [debug] #4 000034b4 in public RNPC_OnGameModeInit () from ScavengeSurvive.amx
[11:36:53] [debug] #5 native CallLocalFunction () from samp03svr
[11:36:53] [debug] #6 00003198 in public OnGameModeInit () from ScavengeSurvive.amx
[11:36:53] [debug] Native backtrace:
[11:36:53] [debug] #0 00341e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[11:36:53] [debug] #1 0033abcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[11:36:53] [debug] #2 0033bdbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[11:36:53] [debug] #3 0033c226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[11:36:53] [debug] #4 00341adc in ?? () from plugins/crashdetect.so
[11:36:53] [debug] #5 00b2040c in ?? ()
[11:36:53] [debug] #6 00343440 in amx_Exec () from plugins/crashdetect.so
[11:36:53] [debug] #7 0033cbe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[11:36:53] [debug] #8 00340659 in ?? () from plugins/crashdetect.so
[11:36:53] [debug] #9 0047e370 in ?? () from plugins/streamer.so
[11:36:53] [debug] #10 080dfd62 in ?? () from ./samp03svr
[11:36:53] [debug] #11 080950e4 in ?? () from ./samp03svr
[11:36:53] [debug] #12 0047d6e4 in ?? () from plugins/streamer.so
[11:36:53] [debug] #13 0033d94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[11:36:53] [debug] #14 003408f8 in ?? () from plugins/crashdetect.so
[11:36:53] [debug] #15 00344916 in amx_Exec () from plugins/crashdetect.so
[11:36:53] [debug] #16 0033cbe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[11:36:53] [debug] #17 00340659 in ?? () from plugins/crashdetect.so
[11:36:53] [debug] #18 0047e370 in ?? () from plugins/streamer.so
[11:36:53] [debug] #19 080a503b in ?? () from ./samp03svr
[11:36:53] [debug] #20 080ab922 in ?? () from ./samp03svr
[11:36:53] [debug] #21 080aa0fd in ?? () from ./samp03svr
[11:36:53] [debug] #22 001a5d36 in __libc_start_main () from /lib/libc.so.6
[11:36:53] [debug] #23 0804b4e1 in ?? () from ./samp03svr
Here is the OnGameModeInit_Setup()

Code:
OnGameModeInit_Setup()
{
	print("\n[OnGameModeInit_Setup] Setting up...");

	if(!dir_exists(DIRECTORY_SCRIPTFILES))
	{
		print("ERROR: Directory '"DIRECTORY_SCRIPTFILES"' not found. Creating directory.");
		dir_create(DIRECTORY_SCRIPTFILES);
	}

	if(!dir_exists(DIRECTORY_SCRIPTFILES DIRECTORY_MAIN))
	{
		print("ERROR: Directory '"DIRECTORY_SCRIPTFILES DIRECTORY_MAIN"' not found. Creating directory.");
		dir_create(DIRECTORY_SCRIPTFILES DIRECTORY_MAIN);
	}

	gAccounts = db_open_persistent(ACCOUNT_DATABASE);
	gWorld = db_open_persistent(WORLD_DATABASE);

	djson_GameModeInit();

	LoadSettings();

	SendRconCommand(sprintf("mapname %s", gMapName));

	GetSettingInt("server/global-debug-level", 0, gGlobalDebugLevel);
	GLOBAL_DEBUG = debug_register_handler("GLOBAL", gGlobalDebugLevel);
}
Reply
#2

If it is linux #DEFINE _LINUX
If it is windows #DEFINE WIN_32
Reply
#3

Quote:
Originally Posted by JohnLedingham
View Post
If it is linux #DEFINE _LINUX
If it is windows #DEFINE WIN_32
Where I can edit or add this ?
Reply
#4

Quote:
Originally Posted by Khoasmile
View Post
Where I can edit or add this ?
Add it at the top of your defines, Find the first "#define" inside your .pwn and add #DEFINE _LINUX if it's Linux Server

Or #DEFINE WIN_32 If it's Windows Server.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)