Host restarts after I join the table
#1

Hey guys, recently something strange happened, my Poker/Roulette System was working fine on both my LOCAL server and my SERVER host, I literally didn't do any updates in that system or any other plugin/include/system that has anything common with this one.

Problem: I have a system on which poker/roulette tables are dynamic and you can join to them, but the thing is that whenever the player types /jointable and setups the game SERVER host keeps restarting, but when I tried the same thing on Local host everything works fine. Can any of you guys tell me what can be the problem because all I can think is that it's host's problem.

HOST is on Linux, my PC is on Windows.
p.s:can settimerex cause this kind of problem ?
Reply
#2

It can be a file missing and that's crashing the server.
Try using crashdetect plugin and see the log after server restarts, see if anything useful got printed.

Good luck.
Reply
#3

System is fully mysql, and mysql logs are fine, all of the plugins are fine as well and I'm just uploading .amx file from my pc to host, so that's not the issue. But Thank you. Any other suggestions ?
Reply
#4

He did have another suggestion...

Quote:
Originally Posted by jlalt
Посмотреть сообщение
Try using crashdetect plugin and see the log after server restarts, see if anything useful got printed.
Logs are something which is needed when posting threads like this, and reading the responses is another.
Reply
#5

Okay I'll try it right now.
Reply
#6

Where should I get crash information ? in which notepad ? I wrote crashdetect.so as a first plugin and no crash information is showing up
Reply
#7

Did you check your server_log.txt file on the server? It should show crash information by crashdetect.
Reply
#8

You need to read the instructions as you need to use the plugin in the right way.

The information is in your server log, as was stated.
Reply
#9

This is the Crashes I got

Код:
[12:10:51] 1956.050048, 1039.329956, 992.409973, -1.000000, -1.000000, -1.000000
[12:10:53] 1956.050048, 1039.329956, 992.409973, -1.000000, -1.000000, -1.000000
[12:10:54] [debug] Server crashed while executing lsrp.amx
[12:10:54] [debug] AMX backtrace:
[12:10:54] [debug] #0 native fclose () from samp03svr
[12:10:54] [debug] #1 00017160 in ?? (228483804, 230488540) from lsrp.amx
[12:10:54] [debug] #2 000581d0 in public GPD_OnDialogResponse (0, 4200, 1, -1, 230234276) from lsrp.amx
[12:10:54] [debug] #3 native CallLocalFunction () from samp03svr
[12:10:54] [debug] #4 0001215c in public OnDialogResponse (0, 4200, 1, -1, 230234256) from lsrp.amx
[12:10:54] [debug] Native backtrace:
[12:10:54] [debug] #0 b4e68e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[12:10:54] [debug] #1 b4e61bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[12:10:54] [debug] #2 b4e62dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[12:10:54] [debug] #3 b4e63226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[12:10:54] [debug] #4 b4e68adc in ?? () from plugins/crashdetect.so
[12:10:54] [debug] #5 b77fd600 in ?? ()
[12:10:54] [debug] #6 b77fd405 in ?? ()
[12:10:54] [debug] #7 b7489297 in gsignal () from /lib/libc.so.6
[12:10:54] [debug] #8 b748ab69 in abort () from /lib/libc.so.6
[12:10:54] [debug] #9 b74c8e0e in ?? () from /lib/libc.so.6
[12:10:54] [debug] #10 b74d0406 in ?? () from /lib/libc.so.6
[12:10:54] [debug] #11 b74d4676 in cfree () from /lib/libc.so.6
[12:10:54] [debug] #12 b74bf028 in fclose () from /lib/libc.so.6
[12:10:54] [debug] #13 0809bd64 in ?? () from ./samp03svr
[12:10:54] [debug] #14 080950e4 in ?? () from ./samp03svr
[12:10:54] [debug] #15 b4e6494b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[12:10:54] [debug] #16 b4e678f8 in ?? () from plugins/crashdetect.so
[12:10:54] [debug] #17 b4e6b916 in amx_Exec () from plugins/crashdetect.so
[12:10:54] [debug] #18 b4e63be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[12:10:54] [debug] #19 b4e67659 in ?? () from plugins/crashdetect.so
[12:10:54] [debug] #20 b4a7c88a in ?? () from plugins/streamer.so
[12:10:54] [debug] #21 080dfd62 in ?? () from ./samp03svr
[12:10:54] [debug] #22 080950e4 in ?? () from ./samp03svr
[12:10:54] [debug] #23 b4e6494b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[12:10:54] [debug] #24 b4e678f8 in ?? () from plugins/crashdetect.so
[12:10:54] [debug] #25 b4e6b916 in amx_Exec () from plugins/crashdetect.so
[12:10:54] [debug] #26 b4e63be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[12:10:54] [debug] #27 b4e67659 in ?? () from plugins/crashdetect.so
[12:10:54] [debug] #28 b4a7c88a in ?? () from plugins/streamer.so
[12:10:54] [debug] #29 080a682f in ?? () from ./samp03svr
[12:10:54] [debug] #30 080b2c44 in ?? () from ./samp03svr
[12:10:54] [debug] #31 08071d38 in ?? () from ./samp03svr
[12:10:54] [debug] #32 08071e32 in ?? () from ./samp03svr
[12:10:54] [debug] #33 0807bc50 in ?? () from ./samp03svr
[12:10:54] [debug] #34 080aed3d in ?? () from ./samp03svr
[12:10:54] [debug] #35 080aef02 in ?? () from ./samp03svr
[12:10:54] [debug] #36 080aa13a in ?? () from ./samp03svr
[12:10:54] [debug] #37 b7473e7e in __libc_start_main () from /lib/libc.so.6
Reply
#10

This is dialogid: 4200. On which crashdetect showed erros. Pawn compiler isn't giving me any errors on this dialog


Код:
		case DIALOG_CGAMESBUYINPOKER:
		{
			if(response) {
				if(strval(inputtext) < PokerTable[GetPVarInt(playerid, "pkrTableID")-1][pkrBuyInMin] || strval(inputtext) > PokerTable[GetPVarInt(playerid, "pkrTableID")-1][pkrBuyInMax] || strval(inputtext) > GetPVarInt(playerid, "cgChips")) {
					return ShowCasinoGamesMenu(playerid, DIALOG_CGAMESBUYINPOKER);
				}

				PokerTable[GetPVarInt(playerid, "pkrTableID")-1][pkrActivePlayers]++;
				SetPVarInt(playerid, "pkrChips", GetPVarInt(playerid, "pkrChips")+strval(inputtext));
				SetPVarInt(playerid, "cgChips", GetPVarInt(playerid, "cgChips")-strval(inputtext));

				format(string, sizeof(string), "%s (IP:%s) has bought in with the amount of $%s (%d)", GetPlayerNameEx(playerid), GetPlayerIpEx(playerid), number_format(GetPVarInt(playerid, "pkrChips")), GetPVarInt(playerid, "pkrTableID")-1);
				Log("logs/poker.log", string);

				if(PokerTable[GetPVarInt(playerid, "pkrTableID")-1][pkrActive] == 3 && PokerTable[GetPVarInt(playerid, "pkrTableID")-1][pkrRound] == 0 && PokerTable[GetPVarInt(playerid, "pkrTableID")-1][pkrDelay] >= 2) {
					SetPVarInt(playerid, "pkrStatus", 1);
				}
				else if(PokerTable[GetPVarInt(playerid, "pkrTableID")-1][pkrActive] < 3) {
					SetPVarInt(playerid, "pkrStatus", 1);
				}

				if(PokerTable[GetPVarInt(playerid, "pkrTableID")-1][pkrActive] == 1 && GetPVarInt(playerid, "pkrRoomLeader")) {
					PokerTable[GetPVarInt(playerid, "pkrTableID")-1][pkrActive] = 2;
					SelectTextDraw(playerid, COLOR_YELLOW);
				}
			} else {
				return LeavePokerTable(playerid);
			}
		}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)