{"action":"created","issue":{"url":"https://api.github.com/repos/AAvivB/YSF/issues/2","labels_url":"https://api.github.com/repos/AAvivB/YSF/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/AAvivB/YSF/issues/2/comments","events_url":"https://api.github.com/repos/AAvivB/YSF/issues/2/events","html_url":"https://github.com/AAvivB/YSF/issues/2","id":98205572,"number":2,"title":"Server crashing","user":{"login":"AAvivB","id":7698214,"avatar_url":"https://avatars.githubusercontent.com/u/7698214?v=3","gravatar_id":"","url":"https://api.github.com/users/AAvivB","html_url":"https://github.com/AAvivB","followers_url":"https://api.github.com/users/AAvivB/followers","following_url":"https://api.github.com/users/AAvivB/following{/other_user}","gists_url":"https://api.github.com/users/AAvivB/gists{/gist_id}","starred_url":"https://api.github.com/users/AAvivB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AAvivB/subscriptions","organizations_url":"https://api.github.com/users/AAvivB/orgs","repos_url":"https://api.github.com/users/AAvivB/repos","events_url":"https://api.github.com/users/AAvivB/events{/privacy}","received_events_url":"https://api.github.com/users/AAvivB/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-30T16:03:56Z","updated_at":"2015-07-30T16:20:22Z","closed_at":null,"body":"Server is crashing when player takes damage / dies / spawns (one or more of those, I'm not really sure).\r\nI 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.\r\nif (pPlayerData[playerid]->syncDataFrozen) {\r\n      memcpy(pSyncData, &lastSyncData[playerid], sizeof(CSyncData));\r\n}\r\nelse {\r\n       memcpy(&lastSyncData[playerid], pSyncData, sizeof(CSyncData));\r\n}\r\n\r\nI tried doing multiple stuff, and I couldn't figure out what is going on there.\r\nserver_log:\r\n[18:52:39] [debug] Server crashed due to an unknown error\r\n[18:52:39] [debug] Native backtrace:\r\n[18:52:39] [debug] #0 775de45b in ?? () from C:\\Windows\\SysWOW64\\ntdll.dll\r\n[18:52:39] [debug] #1 775de063 in ?? () from C:\\Windows\\SysWOW64\\ntdll.dll\r\n[18:52:39] [debug] #2 754814bd in ?? () from C:\\Windows\\syswow64\\kernel32.dll\r\n[18:52:39] [debug] #3 00498e11 in ?? () from samp-server.exe\r\n[18:52:39] [debug] #4 0045e72b in ?? () from samp-server.exe\r\n[18:52:39] [debug] #5 00460396 in ?? () from samp-server.exe\r\n[18:52:39] [debug] #6 00458e06 in ?? () from samp-server.exe\r\n[18:52:39] [debug] #7 775e00b8 in ?? () from C:\\Windows\\SysWOW64\\ntdll.dll\r\nCrashInfo:\r\n--------------------------\r\n\r\nSA-MP Server: 0.3.7-R2\r\n\r\n\r\n\r\nException At Address: 0x775E00B8 Module: (ntdll.dll)\r\n\r\n\r\n\r\nRegisters:\r\n\r\nEAX: 0x00000003\tEBX: 0xCDB80001\tECX: 0x6B3002F6\tEDX: 0x00006B30\r\n\r\nESI: 0x03DC632E\tEDI: 0xCDB80000\tEBP: 0x00000000\tESP: 0x0458F65C\r\n\r\nEFLAGS: 0x00010206\r\n\r\n\r\n\r\nStack:\r\n\r\n+0000: 0x06BB0024   0x00419AA9   0x00000000   0x00000000\r\n\r\n+0010: 0x0458F6E4   0x0100007F   0x04581E61   0x76FB1A43\r\n\r\n+0020: 0x00419AB3   0x003FD92C   0x00000000   0x76FB1ACE\r\n\r\n+0030: 0x41CE3106   0x00000000   0x70562584   0x00000002\r\n\r\n+0040: 0x76FB1A43   0x00000001   0x00000000   0x00000000\r\n\r\n+0050: 0x75470000   0x0458F68C   0x00000000   0x0458FB30\r\n\r\n+0060: 0x76FD7000   0x336B4EC6   0xFFFFFFFE   0x76FB1ACE\r\n\r\n+0070: 0x76FD73AE   0x76FB1D09   0x41CE3C8E   0x00000000\r\n\r\n+0080: 0x70562584   0x70560000   0x001A0018   0x70562584\r\n\r\n+0090: 0x0458FB60   0x00000000   0x00000000   0x00000000\r\n\r\n+00A0: 0x02080000   0x0458F91C   0x02080000   0x0458F714\r\n\r\n+00B0: 0x00000000   0x75470000   0x00000000   0x00000000\r\n\r\n+00C0: 0x00000000   0x02080000   0x0458F940   0x02080000\r\n\r\n+00D0: 0x0458F738   0x00000000   0x75470000   0x00000000\r\n\r\n+00E0: 0x00000000   0x00000000   0x00000000   0x00000000\r\n\r\n+00F0: 0x00000000   0x00000000   0x00000000   0x00000000\r\n\r\n+0100: 0x00000000   0x00000000   0x00000000   0x00000000\r\n\r\n+0110: 0x00000000   0x00000000   0x00000000   0x00000000\r\n\r\n+0120: 0x00000000   0x00000000   0x00000000   0x00000000\r\n\r\n+0130: 0x00000000   0x00000000   0x00000000   0x00000000\r\n\r\n\r\n\r\n--------------------------\r\n\r\n\r\n\r\nLoaded Modules:\r\n\r\nsamp-server.exe\tA: 0x00400000 - 0x00519000\t(PATH\\SA-MP Server\\samp-server.exe)\r\n\r\nntdll.dll\tA: 0x775B0000 - 0x77730000\t(C:\\Windows\\SysWOW64\\ntdll.dll)\r\n\r\nkernel32.dll\tA: 0x75470000 - 0x75580000\t(C:\\Windows\\syswow64\\kernel32.dll)\r\n\r\nKERNELBASE.dll\tA: 0x76FA0000 - 0x76FE7000\t(C:\\Windows\\syswow64\\KERNELBASE.dll)\r\n\r\nSHELL32.dll\tA: 0x75800000 - 0x7644B000\t(C:\\Windows\\syswow64\\SHELL32.dll)\r\n\r\nmsvcrt.dll\tA: 0x75740000 - 0x757EC000\t(C:\\Windows\\syswow64\\msvcrt.dll)\r\n\r\nSHLWAPI.dll\tA: 0x76DA0000 - 0x76DF7000\t(C:\\Windows\\syswow64\\SHLWAPI.dll)\r\n\r\nGDI32.dll\tA: 0x76F10000 - 0x76FA0000\t(C:\\Windows\\syswow64\\GDI32.dll)\r\n\r\nUSER32.dll\tA: 0x76E00000 - 0x76F00000\t(C:\\Windows\\syswow64\\USER32.dll)\r\n\r\nADVAPI32.dll\tA: 0x766F0000 - 0x76791000\t(C:\\Windows\\syswow64\\ADVAPI32.dll)\r\n\r\nsechost.dll\tA: 0x76450000 - 0x76469000\t(C:\\Windows\\SysWOW64\\sechost.dll)\r\n\r\nRPCRT4.dll\tA: 0x75310000 - 0x75400000\t(C:\\Windows\\syswow64\\RPCRT4.dll)\r\n\r\nSspiCli.dll\tA: 0x74F20000 - 0x74F80000\t(C:\\Windows\\syswow64\\SspiCli.dll)\r\n\r\nCRYPTBASE.dll\tA: 0x74F10000 - 0x74F1C000\t(C:\\Windows\\syswow64\\CRYPTBASE.dll)\r\n\r\nLPK.dll\tA: 0x75400000 - 0x7540A000\t(C:\\Windows\\syswow64\\LPK.dll)\r\n\r\nUSP10.dll\tA: 0x756A0000 - 0x7573D000\t(C:\\Windows\\syswow64\\USP10.dll)\r\n\r\nWSOCK32.dll\tA: 0x72770000 - 0x72777000\t(C:\\Windows\\system32\\WSOCK32.dll)\r\n\r\nWS2_32.dll\tA: 0x76470000 - 0x764A5000\t(C:\\Windows\\syswow64\\WS2_32.dll)\r\n\r\nNSI.dll\tA: 0x75460000 - 0x75466000\t(C:\\Windows\\syswow64\\NSI.dll)\r\n\r\nWINMM.dll\tA: 0x73880000 - 0x738B2000\t(C:\\Windows\\system32\\WINMM.dll)\r\n\r\nIMM32.DLL\tA: 0x75640000 - 0x756A0000\t(C:\\Windows\\system32\\IMM32.DLL)\r\n\r\nMSCTF.dll\tA: 0x76A20000 - 0x76AEC000\t(C:\\Windows\\syswow64\\MSCTF.dll)\r\n\r\nnvinit.dll\tA: 0x74DB0000 - 0x74DDB000\t(C:\\Windows\\SysWOW64\\nvinit.dll)\r\n\r\nVERSION.dll\tA: 0x74E40000 - 0x74E49000\t(C:\\Windows\\system32\\VERSION.dll)\r\n\r\nPSAPI.DLL\tA: 0x76D90000 - 0x76D95000\t(C:\\Windows\\syswow64\\PSAPI.DLL)\r\n\r\ndbghelp.dll\tA: 0x02D10000 - 0x02DFB000\t(C:\\Windows\\system32\\dbghelp.dll)\r\n\r\nMSVCP100.dll\tA: 0x70590000 - 0x705F9000\t(C:\\Windows\\system32\\MSVCP100.dll)\r\n\r\nMSVCR100.dll\tA: 0x704A0000 - 0x7055F000\t(C:\\Windows\\system32\\MSVCR100.dll)\r\n\r\nYSF.DLL\tA: 0x0F9A0000 - 0x0FB77000\t(PATH\\SA-MP Server\\plugins\\YSF.DLL)\r\n\r\nMSVCR120D.dll\tA: 0x0FBE0000 - 0x0FD9F000\t(C:\\Windows\\system32\\MSVCR120D.dll)\r\n\r\nMSVCP120D.dll\tA: 0x0F210000 - 0x0F2D9000\t(C:\\Windows\\system32\\MSVCP120D.dll)\r\n\r\nstreamer.DLL\tA: 0x6A6B0000 - 0x6A6EF000\t(PATH\\SA-MP Server\\plugins\\streamer.DLL)\r\n\r\nmswsock.dll\tA: 0x70680000 - 0x706BC000\t(C:\\Windows\\system32\\mswsock.dll)\r\n\r\nwshtcpip.dll\tA: 0x70670000 - 0x70675000\t(C:\\Windows\\System32\\wshtcpip.dll)\r\n\r\nNLAapi.dll\tA: 0x66A00000 - 0x66A10000\t(C:\\Windows\\system32\\NLAapi.dll)\r\n\r\nnapinsp.dll\tA: 0x66690000 - 0x666A0000\t(C:\\Windows\\system32\\napinsp.dll)\r\n\r\npnrpnsp.dll\tA: 0x65E00000 - 0x65E12000\t(C:\\Windows\\system32\\pnrpnsp.dll)\r\n\r\nmdnsNSP.dll\tA: 0x70600000 - 0x70621000\t(C:\\Program Files (x86)\\Bonjour\\mdnsNSP.dll)\r\n\r\nIphlpapi.DLL\tA: 0x71EF0000 - 0x71F0C000\t(C:\\Windows\\system32\\Iphlpapi.DLL)\r\n\r\nWINNSI.DLL\tA: 0x71EE0000 - 0x71EE7000\t(C:\\Windows\\system32\\WINNSI.DLL)\r\n\r\nWLIDNSP.DLL\tA: 0x70560000 - 0x70587000\t(C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows Live\\WLIDNSP.DLL)\r\n\r\nDNSAPI.dll\tA: 0x725E0000 - 0x72624000\t(C:\\Windows\\system32\\DNSAPI.dll)\r\n\r\nwinrnr.dll\tA: 0x65DA0000 - 0x65DA8000\t(C:\\Windows\\System32\\winrnr.dll)\r\n\r\nrasadhlp.dll\tA: 0x70490000 - 0x70496000\t(C:\\Windows\\system32\\rasadhlp.dll)"},"comment":{"url":"https://api.github.com/repos/AAvivB/YSF/issues/comments/126388999","html_url":"https://github.com/AAvivB/YSF/issues/2#issuecomment-126388999","issue_url":"https://api.github.com/repos/AAvivB/YSF/issues/2","id":126388999,"user":{"login":"AAvivB","id":7698214,"avatar_url":"https://avatars.githubusercontent.com/u/7698214?v=3","gravatar_id":"","url":"https://api.github.com/users/AAvivB","html_url":"https://github.com/AAvivB","followers_url":"https://api.github.com/users/AAvivB/followers","following_url":"https://api.github.com/users/AAvivB/following{/other_user}","gists_url":"https://api.github.com/users/AAvivB/gists{/gist_id}","starred_url":"https://api.github.com/users/AAvivB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AAvivB/subscriptions","organizations_url":"https://api.github.com/users/AAvivB/orgs","repos_url":"https://api.github.com/users/AAvivB/repos","events_url":"https://api.github.com/users/AAvivB/events{/privacy}","received_events_url":"https://api.github.com/users/AAvivB/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T16:20:22Z","updated_at":"2015-07-30T16:20:22Z","body":"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).\r\nHope you can get give me a hand with that.\r\nThanks.\r\n@oscar-broman "}}