The server does not start
#1

Hello, i have a problem with my server.

Код:
[19:49:51] [debug] AMX backtrace:
[19:49:51] [debug] #0 0000006f in Debug_Print0 (... <25 variable arguments>) at D:\Gta San Andreas\SA-MP\SERVERE DE SAMP\ V3 [0.3.7]\Windows\TTTTTTTTTTTTTTTTTTTTT\pawno\include\float.inc:108
[19:49:51] [debug] #1 0000006f in Debug_Print0 () at D:\Gta San Andreas\SA-MP\SERVERE DE SAMP\ V3 [0.3.7]\Windows\TTTTTTTTTTTTTTTTTTTTT\pawno\include\float.inc:108
[19:49:51] [debug] #2 native CallLocalFunction () [080dfac0] from samp03svr
[19:49:51] [debug] #3 0000b338 in public zcmd_OnGameModeInit () at D:\Gta San Andreas\SA-MP\SERVERE DE SAMP\V3 [0.3.7]\Windows\TTTTTTTTTTTTTTTTTTTTT\pawno\include\audio.inc:119
[19:49:51] [debug] #4 native CallLocalFunction () [080dfac0] from samp03svr
[19:49:51] [debug] #5 0000ab20 in public SSCANF_OnGameModeInit () at D:\Gta San Andreas\SA-MP\SERVERE DE SAMP\ V3 [0.3.7]\Windows\TTTTTTTTTTTTTTTTTTTTT\pawno\include\zcmd.inc:68
[19:49:51] [debug] #6 native CallLocalFunction () [080dfac0] from samp03svr
[19:49:51] [debug] #7 00004118 in public Itter_OnGameModeInit () at D:\Gta San Andreas\SA-MP\SERVERE DE SAMP\ V3 [0.3.7]\Windows\TTTTTTTTTTTTTTTTTTTTT\pawno\include\sscanf2.inc:84
[19:49:51] [debug] #8 native CallLocalFunction () [080dfac0] from samp03svr
[19:49:51] [debug] #9 000031e4 in public ScriptInit_OnGameModeInit () at D:\Gta San Andreas\SA-MP\SERVERE DE SAMP\V3 [0.3.7]\Windows\TTTTTTTTTTTTTTTTTTTTT\pawno\include\YSI\y_iterate.inc:791
[19:49:51] [debug] #10 00001e60 in Debug_Print0 () at D:\Gta San Andreas\SA-MP\SERVERE DE SAMP\V3 [0.3.7]\Windows\TTTTTTTTTTTTTTTTTTTTT\pawno\include\YSI\internal\..\y_scriptinit.inc:171
[19:49:51] [debug] System backtrace:
ZMCD - line 68:
Код:
if (funcidx("zcmd_OnGameModeInit") != -1)
	{
		68: return CallLocalFunction("zcmd_OnGameModeInit", "");
	}
Audio - line 119:
Код:
if (funcidx("Audio_OnGameModeInit") != -1)
	{
		119: return CallLocalFunction("Audio_OnGameModeInit", "");
	}
float - line: 108:
Код:
stock Float:operator-(Float:oper)
What could have?
Reply
#2

Update both crashdetect plugin and YSI because Debug_Print0 is an old bug that was fixed in later versions.
Reply
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Update both crashdetect plugin and YSI because Debug_Print0 is an old bug that was fixed in later versions.
now look like this:
Код:
[21:37:15] [debug] AMX backtrace:
[21:37:15] [debug] #0 0000006f in ?? (101, 45, 108, 105, 115, 116, 46, 0, 0, 0, ... <15 arguments>) from royal.amx
[21:37:15] [debug] #1 0000006f in public Audio_OnGameModeInit () from royal.amx
[21:37:15] [debug] #2 native CallLocalFunction () from samp03svr
[21:37:15] [debug] #3 00008af4 in public zcmd_OnGameModeInit () from royal.amx
[21:37:15] [debug] #4 native CallLocalFunction () from samp03svr
[21:37:15] [debug] #5 00008434 in public SSCANF_OnGameModeInit () from royal.amx
[21:37:15] [debug] #6 native CallLocalFunction () from samp03svr
[21:37:15] [debug] #7 00002710 in public Itter_OnGameModeInit () from royal.amx
[21:37:15] [debug] #8 native CallLocalFunction () from samp03svr
[21:37:15] [debug] #9 00001b3c in public OnGameModeInit () from royal.amx
Reply
#4

This is a bit more informative now as it is a function in OnGameModeInit (in royal.pwn) with 15 arguments. Two questions though:

1) Did it report a run time error above "[debug] AMX backtrace:"?
2) Did you remove the debug info? Create pawn.cfg file in pawno folder and re-compile the script. Re-run the server and post once again the server log so we can get the exact line.
Reply
#5

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
This is a bit more informative now as it is a function in OnGameModeInit (in royal.pwn) with 15 arguments. Two questions though:

1) Did it report a run time error above "[debug] AMX backtrace:"?
2) Did you remove the debug info? Create pawn.cfg file in pawno folder and re-compile the script. Re-run the server and post once again the server log so we can get the exact line.
I added -d3 in pawn.cfg and look:
Код:
[22:00:55] [debug] Server crashed while executing royal.amx
[22:00:55] [debug] AMX backtrace:
[22:00:55] [debug] #0 0000006f in ?? (... <25 arguments>) at D:\Gta San Andreas\SA-MP\SERVERE DE SAMP\Linux\pawno\include\float.inc:112
[22:00:55] [debug] #1 0000006f in public Audio_OnGameModeInit () at D:\Gta San Andreas\SA-MP\SERVERE DE SAMP\Linux\pawno\include\float.inc:112
[22:00:55] [debug] #2 native CallLocalFunction () from samp03svr
[22:00:55] [debug] #3 0000a1a8 in public zcmd_OnGameModeInit () at D:\Gta San Andreas\SA-MP\SERVERE DE SAMP\Linux\pawno\include\audio.inc:119
[22:00:55] [debug] #4 native CallLocalFunction () from samp03svr
[22:00:55] [debug] #5 00009990 in public SSCANF_OnGameModeInit () at D:\Gta San Andreas\SA-MP\SERVERE DE SAMP\Linux\pawno\include\zcmd.inc:68
[22:00:55] [debug] #6 native CallLocalFunction () from samp03svr
[22:00:55] [debug] #7 00002f88 in public Itter_OnGameModeInit () at D:\Gta San Andreas\SA-MP\SERVERE DE SAMP\Linux\pawno\include\sscanf2.inc:84
[22:00:55] [debug] #8 native CallLocalFunction () from samp03svr
[22:00:55] [debug] #9 000020a4 in public OnGameModeInit () at D:\Gta San Andreas\SA-MP\SERVERE DE SAMP\Linux\pawno\include\Foreach.inc:687
Reply
#6

It still fails to report accurately what causes the crash. After searching for a while I found an interesting "issue" in github (for crashdetect): https://github.com/Zeex/samp-plugin-...tect/issues/32

The reason was valstr which is a known issue that crashes when it is a very high number. In case you use it anywhere in the script, either replace with format or use a fix for it: https://github.com/Open-GTO/sa-mp-fi...ixes.inc#L7418

Another interesting thing is that if a script has many many lines, crashdetect fails to report and there was a special version for such cases: https://github.com/Zeex/samp-plugin-...ag/v4.13.1-lse
Reply
#7

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
It still fails to report accurately what causes the crash. After searching for a while I found an interesting "issue" in github (for crashdetect): https://github.com/Zeex/samp-plugin-...tect/issues/32

The reason was valstr which is a known issue that crashes when it is a very high number. In case you use it anywhere in the script, either replace with format or use a fix for it: https://github.com/Open-GTO/sa-mp-fi...ixes.inc#L7418

Another interesting thing is that if a script has many many lines, crashdetect fails to report and there was a special version for such cases: https://github.com/Zeex/samp-plugin-...ag/v4.13.1-lse
Sorry, I do not understand what you mean by "valstr".
I put that crashdetect, and:

Код:
[22:28:23] [debug] Server crashed while executing royal.amx
[22:28:23] [debug] AMX backtrace:
[22:28:23] [debug] #0 0000006f in ?? (0x00000065, 0x0000002d, 0x0000006c, 0x00000069, 0x00000073, 0x00000074, 0x0000002e, 0x00000000, 0x00000000, 0x00000000, ... <15 arguments>) from royal.amx
[22:28:23] [debug] #1 0000006f in public Audio_OnGameModeInit () from royal.amx
[22:28:23] [debug] #2 native CallLocalFunction () [080dfac0] from samp03svr
[22:28:23] [debug] #3 0000a1a8 in public zcmd_OnGameModeInit () from royal.amx
[22:28:23] [debug] #4 native CallLocalFunction () [080dfac0] from samp03svr
[22:28:23] [debug] #5 00009990 in public SSCANF_OnGameModeInit () from royal.amx
[22:28:23] [debug] #6 native CallLocalFunction () [080dfac0] from samp03svr
[22:28:23] [debug] #7 00002f88 in public Itter_OnGameModeInit () from royal.amx
[22:28:23] [debug] #8 native CallLocalFunction () [080dfac0] from samp03svr
[22:28:23] [debug] #9 000020a4 in public OnGameModeInit () from royal.amx
Reply
#8

valstr is a native in samp and converts an integer to a string.

Compile once again with debug info and if it still doesn't show what function is "??", you will need to debug it manually (add print messages in every line in OnGameModeInit) to see where the code stops.
Reply
#9

I will be back with an answer.
Reply
#10

I found the problem.
Is the load factions on the server, although so far worked very well, now appeared the problem and do not know how to fix.
Loading data using strval and floatval.
Maybe from this be?


Edit: I put a print after loading data from the database (factions), and appeared in a server log, but all in vain, failed server.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)