Portal SAMP
[Ajuda] Alguem sabe o que pode ser? - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] Alguem sabe o que pode ser? (/showthread.php?tid=2215)



Alguem sabe o que pode ser? - Klaba - 19/03/2022

Eu atualizei os plugins de crashdetect porque meu servidor, na VPS Linux, está crashando toda hora. Ao eu colocar o CrashDetect pra 4.20 ocorreu vários erros de DBUG, olhem:

Código:
[08:05:58] [debug] Long callback execution detected (hang or performance issue)
[08:05:58] [debug] AMX backtrace:
[08:05:58] [debug] #0 00004ea8 in GetAmxHeaderNow (amxhdr[AMX_HDR:17]=@00001c20) at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\YSI_Coding\y_timers\..\y_malloc\..\..\YSI_Core\y_core\..\..\amx\amx_header.inc:177
[08:05:58] [debug] #1 00005018 in ResetStaticAmxHeader () at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\YSI_Coding\y_timers\..\y_malloc\..\..\YSI_Core\y_core\..\..\amx\amx_header.inc:189
[08:05:58] [debug] #2 00005068 in GetAmxHeader (amxhdr[AMX_HDR:17]=@00004814) at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\YSI_Coding\y_timers\..\y_malloc\..\..\YSI_Core\y_core\..\..\amx\amx_header.inc:198
[08:05:58] [debug] #3 00010548 in CodeScanInit (scanner[CodeScanner:164]=@02365608) at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\YSI_Coding\y_timers\..\y_malloc\..\..\YSI_Core\y_core\..\..\amx\codescan.inc:971
[08:05:58] [debug] #4 00010ca0 in AddressofResolve () at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\YSI_Coding\y_timers\..\y_malloc\..\..\YSI_Core\y_core\..\..\amx\addressof_jit.inc:89
[08:05:58] [debug] #5 0001200c in public AMX_OnCodeInit () at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\YSI_Coding\y_timers\..\y_malloc\..\..\YSI_Core\y_core\y_thirdpartyinclude.inc:367
[08:05:58] [debug] #6 00002268 in public Debug_OnCodeInit () at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\y_amx_impl.inc:206
[08:05:58] [debug] #7 00001bbc in public ScriptInit_OnCodeInit () at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\y_debug_impl.inc:659
[08:05:58] [debug] #8 00000cb0 in ScriptInit_CallOnCodeInit (bool:jit=false) at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\y_scriptinit_impl.inc:193
[08:05:58] [debug] #9 00000fcc in public OnGameModeInit () at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\YSI_Coding\y_timers\..\..\YSI_Core\y_core\y_scriptinit_impl.inc:339
[08:06:02] 
[08:06:02] 
[08:06:02] 
[08:06:02]  =======================================
[08:06:02]  |                                     |
[08:06:02]  |        YSI version 5.03.0689        |
[08:06:02]  |        By Alex "Y_Less" Cole        |
[08:06:02]  |                                     |
[08:06:02]  =======================================
[08:06:02] 
[08:06:02] -------------------------------------------
[08:06:02] | Conexão correta com o banco de dados  |
[08:06:02] -------------------------------------------
[08:06:03] 
[08:06:03] Number of vehicle models: 3
[08:06:05] 
[08:06:05] [CUENTAS]: 302
[08:06:05] [debug] Long callback execution detected (hang or performance issue)
[08:06:05] [debug] AMX backtrace:
[08:06:05] [debug] #0 0005d700 in DesocuparFabrica (ID=1, bool:save=false) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:5661
[08:06:05] [debug] #1 0005a624 in CargarFabricas () at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:5555
[08:06:05] [debug] #2 0027b270 in public cargartodo () at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:32473
[08:06:05] [FABRICAS]: 12
[08:06:05] [FACCIONES]: 27
[08:06:05] [TERRITORIOS]: 98
[08:06:05] [CURRICULUMS]: 0
[08:06:05] - STATS CARGADOS
[08:06:05] 
[08:06:06] [debug] Long callback execution detected (hang or performance issue)
[08:06:06] [debug] AMX backtrace:
[08:06:06] [debug] #0 000ec074 in public cargarRoboTiendas () at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:12040
[08:06:06] [ACTORES TIENDAS]: 50
[08:06:06] [debug] Long callback execution detected (hang or performance issue)
[08:06:06] [debug] AMX backtrace:
[08:06:06] [debug] #0 001670a8 in public LoadDoor () at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:18686
[08:06:06] [PUERTAS DINAMICAS]: 78
[08:06:06] [debug] Long callback execution detected (hang or performance issue)
[08:06:06] [debug] AMX backtrace:
[08:06:06] [debug] #0 002a0f78 in public CargarAutos () at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:34874
[08:06:06] [VEHICULOS]: 180
[08:06:06] [debug] Long callback execution detected (hang or performance issue)
[08:06:06] [debug] AMX backtrace:
[08:06:06] [debug] #0 00335f1c in public CargarPropiedades () at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:42862
[08:06:08] [PROPIEDADES]: 824
[08:06:08] [connection] incoming connection: 127.0.0.1:64477 id: 0
[08:06:08] [connection] incoming connection: 127.0.0.1:64475 id: 1
[08:06:08] [connection] incoming connection: 127.0.0.1:64478 id: 2
[08:06:08] [connection] incoming connection: 127.0.0.1:64476 id: 3
[08:06:08] [connection] incoming connection: 127.0.0.1:64479 id: 4
[08:06:08] [connection] incoming connection: 127.0.0.1:64480 id: 5
[08:06:08] [npc:join] .Motorman2 has joined the server (0:127.0.0.1)
[08:06:08] [npc:join] .Motorman1 has joined the server (1:127.0.0.1)
[08:06:08] [npc:join] .Motorman4 has joined the server (2:127.0.0.1)
[08:06:08] [npc:join] .Motorman3 has joined the server (3:127.0.0.1)
[08:06:08] [npc:join] .Miguel has joined the server (4:127.0.0.1)
[08:06:08] [npc:join] .Sergio has joined the server (5:127.0.0.1)
[08:06:08] [ESTACIONAMIENTOS]: 6
[08:06:11] [debug] Long callback execution detected (hang or performance issue)
[08:06:11] [debug] AMX backtrace:
[08:06:11] [debug] #0 00121748 in ActualizarPais (playerid=0) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:15315
[08:06:11] [debug] #1 00321948 in public OnPlPa_OnPlayerSpawn (playerid=0) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:41783
[08:06:11] [debug] #2 native CallLocalFunction () in samp-server.exe
[08:06:11] [debug] #3 0003b650 in public OnPlayerSpawn (playerid=0) at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\pause.inc:173
[08:06:11] [debug] Long callback execution detected (hang or performance issue)
[08:06:11] [debug] AMX backtrace:
[08:06:11] [debug] #0 0002667c in sscanf_ (string[]=@02364660 "127.0.0.1", format[]=@0236449c "p.dddd", 37110968, 37110972, 37110976, 37110980) at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\geolocation.inc:334
[08:06:11] [debug] #1 00026204 in ip2long (ip[]=@02364660 "127.0.0.1") at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\geolocation.inc:275
[08:06:11] [debug] #2 0002574c in GetIPCountry (ip[]=@02364660 "127.0.0.1", dest[]=@02364b88 "", len=30) at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\geolocation.inc:123
[08:06:11] [debug] #3 000254c8 in GetPlayerCountry (playerid=1, string[]=@02364b88 "", len=30) at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\geolocation.inc:67
[08:06:11] [debug] #4 001217c0 in ActualizarPais (playerid=1) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:15319
[08:06:11] [debug] #5 00321948 in public OnPlPa_OnPlayerSpawn (playerid=1) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:41783
[08:06:11] [debug] #6 native CallLocalFunction () in samp-server.exe
[08:06:11] [debug] #7 0003b650 in public OnPlayerSpawn (playerid=1) at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\pause.inc:173
[08:06:11] [debug] Long callback execution detected (hang or performance issue)
[08:06:11] [debug] AMX backtrace:
[08:06:11] [debug] #0 00026480 in sscanf_ (string[]=@02364660 "127.0.0.1", format[]=@0236449c "p.dddd", 37110968, 37110972, 37110976, 37110980) at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\geolocation.inc:312
[08:06:11] [debug] #1 00026204 in ip2long (ip[]=@02364660 "127.0.0.1") at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\geolocation.inc:275
[08:06:11] [debug] #2 0002574c in GetIPCountry (ip[]=@02364660 "127.0.0.1", dest[]=@02364b88 "", len=30) at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\geolocation.inc:123
[08:06:11] [debug] #3 000254c8 in GetPlayerCountry (playerid=3, string[]=@02364b88 "", len=30) at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\geolocation.inc:67
[08:06:11] [debug] #4 001217c0 in ActualizarPais (playerid=3) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:15319
[08:06:11] [debug] #5 00321948 in public OnPlPa_OnPlayerSpawn (playerid=3) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:41783
[08:06:11] [debug] #6 native CallLocalFunction () in samp-server.exe
[08:06:11] [debug] #7 0003b650 in public OnPlayerSpawn (playerid=3) at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\pause.inc:173
[08:06:11] [debug] Long callback execution detected (hang or performance issue)
[08:06:11] [debug] AMX backtrace:
[08:06:11] [debug] #0 00027ac4 in sscanf_ (string[]=@02364660 "127.0.0.1", format[]=@0236449c "p.dddd", 37110968, 37110972, 37110976, 37110980) at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\geolocation.inc:518
[08:06:11] [debug] #1 00026204 in ip2long (ip[]=@02364660 "127.0.0.1") at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\geolocation.inc:275
[08:06:11] [debug] #2 0002574c in GetIPCountry (ip[]=@02364660 "127.0.0.1", dest[]=@02364b88 "", len=30) at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\geolocation.inc:123
[08:06:11] [debug] #3 000254c8 in GetPlayerCountry (playerid=2, string[]=@02364b88 "", len=30) at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\geolocation.inc:67
[08:06:11] [debug] #4 001217c0 in ActualizarPais (playerid=2) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:15319
[08:06:11] [debug] #5 00321a04 in public OnPlPa_OnPlayerSpawn (playerid=2) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:41784
[08:06:11] [debug] #6 native CallLocalFunction () in samp-server.exe
[08:06:11] [debug] #7 0003b650 in public OnPlayerSpawn (playerid=2) at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\pause.inc:173
[08:06:11] [debug] Long callback execution detected (hang or performance issue)
[08:06:11] [debug] AMX backtrace:
[08:06:11] [debug] #0 00025aac in GetIPCountry (ip[]=@02364660 "127.0.0.1", dest[]=@02364b88 "", len=30) at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\geolocation.inc:154
[08:06:11] [debug] #1 000254c8 in GetPlayerCountry (playerid=5, string[]=@02364b88 "", len=30) at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\geolocation.inc:67
[08:06:11] [debug] #2 001217c0 in ActualizarPais (playerid=5) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:15319
[08:06:11] [debug] #3 00321a04 in public OnPlPa_OnPlayerSpawn (playerid=5) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:41784
[08:06:11] [debug] #4 native CallLocalFunction () in samp-server.exe
[08:06:11] [debug] #5 0003b650 in public OnPlayerSpawn (playerid=5) at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\pause.inc:173
[08:06:11] [debug] Long callback execution detected (hang or performance issue)
[08:06:11] [debug] AMX backtrace:
[08:06:11] [debug] #0 00325e2c in public OnPlPa_OnPlayerSpawn (playerid=4) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:41915
[08:06:11] [debug] #1 native CallLocalFunction () in samp-server.exe
[08:06:11] [debug] #2 0003b650 in public OnPlayerSpawn (playerid=4) at C:\Users\Italo Khaus\Desktop\LZ\pawno\include\pause.inc:173
[08:07:11] [debug] Long callback execution detected (hang or performance issue)
[08:07:11] [debug] AMX backtrace:
[08:07:11] [debug] #0 002b3524 in public Anticheats (playerid=3) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:35811
[08:08:14] [debug] Long callback execution detected (hang or performance issue)
[08:08:14] [debug] AMX backtrace:
[08:08:14] [debug] #0 002b84b4 in public TimerGlobalPlayerid (playerid=5) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:36066
[08:09:15] [debug] Long callback execution detected (hang or performance issue)
[08:09:15] [debug] AMX backtrace:
[08:09:15] [debug] #0 002d7ad0 in public OnPlayerKeyStateChange (playerid=4, newkeys=2, oldkeys=0) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:37715
[08:09:40] [debug] Long callback execution detected (hang or performance issue)
[08:09:40] [debug] AMX backtrace:
[08:09:40] [debug] #0 002b8208 in public TimerGlobalPlayerid (playerid=5) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:36055
[08:10:13] [debug] Long callback execution detected (hang or performance issue)
[08:10:13] [debug] AMX backtrace:
[08:10:13] [debug] #0 002b81a0 in public TimerGlobalPlayerid (playerid=3) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:36053
[08:10:32] [debug] Long callback execution detected (hang or performance issue)
[08:10:32] [debug] AMX backtrace:
[08:10:32] [debug] #0 002c0c5c in public TimerGlobalPlayerid (playerid=3) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:36504
[08:10:40] [debug] Long callback execution detected (hang or performance issue)
[08:10:40] [debug] AMX backtrace:
[08:10:40] [debug] #0 00131180 in FinTiempoCriminal (e=5) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:16498
[08:10:40] [debug] #1 002bd218 in public TimerGlobalPlayerid (playerid=1) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:36303


Devo atualizar alguma coisa?


RE: Alguem sabe o que pode ser? - xbruno1000x - 19/03/2022

Não tem nenhum erro. Provavelmente essas callbacks tem algum looping ou são muito extensas, por isso gera um aviso de execução demorada. Todos parâmetros estão sendo enviados corretamente, me parece tudo certo.

Para detectar o que está crashando o servidor, tem que olhar o debug do momento do crash. Se o servidor crashou às 10:30, é provável que o debug de 9:15 não tenha nada haver.


RE: Alguem sabe o que pode ser? - Klaba - 19/03/2022

Código:
[23:13:54] [debug] Run time error 4: "Array index out of bounds"
[23:13:54] [debug]  Attempted to read/write array element at index 65535 in array of size 100
[23:13:54] [debug] AMX backtrace:
[23:13:54] [debug] #0 0007f164 in PlayerPlaySoundEx (playerid=65535, sound=17802, Float:X=0.00000, Float:Y=0.00000, Float:Z=0.00000) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:7016
[23:13:54] [debug] #1 002a3288 in public OnPlayerTakeDamage (playerid=6, issuerid=65535, Float:amount=3.30000, weaponid=54, bodypart=3) at c:\Users\Italo Khaus\Desktop\LZ\gamemodes\LR.pwn:35020
 
O começo... ele caiu 23:37


RE: Alguem sabe o que pode ser? - ipsLuan - 19/03/2022

O que tem na linha 7016?