-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server crashing #2
Comments
@kurta999 @oscar-broman |
I suppose you could add a check if |
Is there a function to do that or something? I have no clue what can be wrong with the lasySyncData since it's definitely not null, and it was used already(it was set in the lastsync before it was frozen). |
Could you compile it with debug symbols and run the server with a debugger? |
Uhhh... I hope this is what you asked for, @oscar-broman The thread 0x48fc has exited with code 0 (0x0). Tried running the debugger once again, came up with this when server crashed: |
Server is crashing when player takes damage / dies / spawns (one or more of those, I'm not really sure).
I don't know why, I have been trying to figure it out for few hours and I couldn't, it seems like when I remove the memcpy if syncDataFrozen is true, it works fine.
if (pPlayerData[playerid]->syncDataFrozen) {
memcpy(pSyncData, &lastSyncData[playerid], sizeof(CSyncData));
}
else {
memcpy(&lastSyncData[playerid], pSyncData, sizeof(CSyncData));
}
I tried doing multiple stuff, and I couldn't figure out what is going on there.
server_log:
[18:52:39] [debug] Server crashed due to an unknown error
[18:52:39] [debug] Native backtrace:
[18:52:39] [debug] #0 775de45b in ?? () from C:\Windows\SysWOW64\ntdll.dll
[18:52:39] [debug] #1 775de063 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[18:52:39] [debug] #2 754814bd in ?? () from C:\Windows\syswow64\kernel32.dll
[18:52:39] [debug] IS4Code#3 00498e11 in ?? () from samp-server.exe
[18:52:39] [debug] IS4Code#4 0045e72b in ?? () from samp-server.exe
[18:52:39] [debug] IS4Code#5 00460396 in ?? () from samp-server.exe
[18:52:39] [debug] IS4Code#6 00458e06 in ?? () from samp-server.exe
[18:52:39] [debug] IS4Code#7 775e00b8 in ?? () from C:\Windows\SysWOW64\ntdll.dll
CrashInfo:
SA-MP Server: 0.3.7-R2
Exception At Address: 0x775E00B8 Module: (ntdll.dll)
Registers:
EAX: 0x00000003 EBX: 0xCDB80001 ECX: 0x6B3002F6 EDX: 0x00006B30
ESI: 0x03DC632E EDI: 0xCDB80000 EBP: 0x00000000 ESP: 0x0458F65C
EFLAGS: 0x00010206
Stack:
+0000: 0x06BB0024 0x00419AA9 0x00000000 0x00000000
+0010: 0x0458F6E4 0x0100007F 0x04581E61 0x76FB1A43
+0020: 0x00419AB3 0x003FD92C 0x00000000 0x76FB1ACE
+0030: 0x41CE3106 0x00000000 0x70562584 0x00000002
+0040: 0x76FB1A43 0x00000001 0x00000000 0x00000000
+0050: 0x75470000 0x0458F68C 0x00000000 0x0458FB30
+0060: 0x76FD7000 0x336B4EC6 0xFFFFFFFE 0x76FB1ACE
+0070: 0x76FD73AE 0x76FB1D09 0x41CE3C8E 0x00000000
+0080: 0x70562584 0x70560000 0x001A0018 0x70562584
+0090: 0x0458FB60 0x00000000 0x00000000 0x00000000
+00A0: 0x02080000 0x0458F91C 0x02080000 0x0458F714
+00B0: 0x00000000 0x75470000 0x00000000 0x00000000
+00C0: 0x00000000 0x02080000 0x0458F940 0x02080000
+00D0: 0x0458F738 0x00000000 0x75470000 0x00000000
+00E0: 0x00000000 0x00000000 0x00000000 0x00000000
+00F0: 0x00000000 0x00000000 0x00000000 0x00000000
+0100: 0x00000000 0x00000000 0x00000000 0x00000000
+0110: 0x00000000 0x00000000 0x00000000 0x00000000
+0120: 0x00000000 0x00000000 0x00000000 0x00000000
+0130: 0x00000000 0x00000000 0x00000000 0x00000000
Loaded Modules:
samp-server.exe A: 0x00400000 - 0x00519000 (PATH\SA-MP Server\samp-server.exe)
ntdll.dll A: 0x775B0000 - 0x77730000 (C:\Windows\SysWOW64\ntdll.dll)
kernel32.dll A: 0x75470000 - 0x75580000 (C:\Windows\syswow64\kernel32.dll)
KERNELBASE.dll A: 0x76FA0000 - 0x76FE7000 (C:\Windows\syswow64\KERNELBASE.dll)
SHELL32.dll A: 0x75800000 - 0x7644B000 (C:\Windows\syswow64\SHELL32.dll)
msvcrt.dll A: 0x75740000 - 0x757EC000 (C:\Windows\syswow64\msvcrt.dll)
SHLWAPI.dll A: 0x76DA0000 - 0x76DF7000 (C:\Windows\syswow64\SHLWAPI.dll)
GDI32.dll A: 0x76F10000 - 0x76FA0000 (C:\Windows\syswow64\GDI32.dll)
USER32.dll A: 0x76E00000 - 0x76F00000 (C:\Windows\syswow64\USER32.dll)
ADVAPI32.dll A: 0x766F0000 - 0x76791000 (C:\Windows\syswow64\ADVAPI32.dll)
sechost.dll A: 0x76450000 - 0x76469000 (C:\Windows\SysWOW64\sechost.dll)
RPCRT4.dll A: 0x75310000 - 0x75400000 (C:\Windows\syswow64\RPCRT4.dll)
SspiCli.dll A: 0x74F20000 - 0x74F80000 (C:\Windows\syswow64\SspiCli.dll)
CRYPTBASE.dll A: 0x74F10000 - 0x74F1C000 (C:\Windows\syswow64\CRYPTBASE.dll)
LPK.dll A: 0x75400000 - 0x7540A000 (C:\Windows\syswow64\LPK.dll)
USP10.dll A: 0x756A0000 - 0x7573D000 (C:\Windows\syswow64\USP10.dll)
WSOCK32.dll A: 0x72770000 - 0x72777000 (C:\Windows\system32\WSOCK32.dll)
WS2_32.dll A: 0x76470000 - 0x764A5000 (C:\Windows\syswow64\WS2_32.dll)
NSI.dll A: 0x75460000 - 0x75466000 (C:\Windows\syswow64\NSI.dll)
WINMM.dll A: 0x73880000 - 0x738B2000 (C:\Windows\system32\WINMM.dll)
IMM32.DLL A: 0x75640000 - 0x756A0000 (C:\Windows\system32\IMM32.DLL)
MSCTF.dll A: 0x76A20000 - 0x76AEC000 (C:\Windows\syswow64\MSCTF.dll)
nvinit.dll A: 0x74DB0000 - 0x74DDB000 (C:\Windows\SysWOW64\nvinit.dll)
VERSION.dll A: 0x74E40000 - 0x74E49000 (C:\Windows\system32\VERSION.dll)
PSAPI.DLL A: 0x76D90000 - 0x76D95000 (C:\Windows\syswow64\PSAPI.DLL)
dbghelp.dll A: 0x02D10000 - 0x02DFB000 (C:\Windows\system32\dbghelp.dll)
MSVCP100.dll A: 0x70590000 - 0x705F9000 (C:\Windows\system32\MSVCP100.dll)
MSVCR100.dll A: 0x704A0000 - 0x7055F000 (C:\Windows\system32\MSVCR100.dll)
YSF.DLL A: 0x0F9A0000 - 0x0FB77000 (PATH\SA-MP Server\plugins\YSF.DLL)
MSVCR120D.dll A: 0x0FBE0000 - 0x0FD9F000 (C:\Windows\system32\MSVCR120D.dll)
MSVCP120D.dll A: 0x0F210000 - 0x0F2D9000 (C:\Windows\system32\MSVCP120D.dll)
streamer.DLL A: 0x6A6B0000 - 0x6A6EF000 (PATH\SA-MP Server\plugins\streamer.DLL)
mswsock.dll A: 0x70680000 - 0x706BC000 (C:\Windows\system32\mswsock.dll)
wshtcpip.dll A: 0x70670000 - 0x70675000 (C:\Windows\System32\wshtcpip.dll)
NLAapi.dll A: 0x66A00000 - 0x66A10000 (C:\Windows\system32\NLAapi.dll)
napinsp.dll A: 0x66690000 - 0x666A0000 (C:\Windows\system32\napinsp.dll)
pnrpnsp.dll A: 0x65E00000 - 0x65E12000 (C:\Windows\system32\pnrpnsp.dll)
mdnsNSP.dll A: 0x70600000 - 0x70621000 (C:\Program Files (x86)\Bonjour\mdnsNSP.dll)
Iphlpapi.DLL A: 0x71EF0000 - 0x71F0C000 (C:\Windows\system32\Iphlpapi.DLL)
WINNSI.DLL A: 0x71EE0000 - 0x71EE7000 (C:\Windows\system32\WINNSI.DLL)
WLIDNSP.DLL A: 0x70560000 - 0x70587000 (C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL)
DNSAPI.dll A: 0x725E0000 - 0x72624000 (C:\Windows\system32\DNSAPI.dll)
winrnr.dll A: 0x65DA0000 - 0x65DA8000 (C:\Windows\System32\winrnr.dll)
rasadhlp.dll A: 0x70490000 - 0x70496000 (C:\Windows\system32\rasadhlp.dll)
The text was updated successfully, but these errors were encountered: