IS4Code / YSF

YSF Server Functions
Other
98 stars 34 forks source link

Server Crash GMX and runtime #151

Open rettdev opened 11 months ago

rettdev commented 11 months ago

good morning, my server is crashing after restarting a GMX. when I don't use GMX, it crashes after a few hours on at runtime. In the crash-info debug it says that YSF.dll crashed on both crashes.

IS4Code commented 11 months ago

You have to provide the crash info (crashdetect or FCNPC output), the version of the plugin, and the version of the server (and DL or not).

rettdev commented 11 months ago

not use fcnpc, no sa-mp dl SA-MP Server: 0.3.7-R2

Exception At Address: 0x02781398 Module: (YSF.DLL)

Registers:

EAX: 0x00000283 EBX: 0x000006A0 ECX: 0x00000003 EDX: 0x59C8000E

ESI: 0x0019EFA8 EDI: 0x00000000 EBP: 0x00000008 ESP: 0x0019EE80

EFLAGS: 0x00210206

Stack:

+0000: 0x0019EFA8 0x00000007 0x00000000 0x00609AF8

+0010: 0x02784532 0x00000000 0x00000003 0x00000003

+0020: 0x0000BB12 0x7AF513BB 0x0019EFA8 0x004B9D2C

+0030: 0x00000000 0x00600000 0x00000001 0x00000000

+0040: 0x0019EE00 0x00000001 0x461C4000 0x428C0000

+0050: 0x00000001 0x00000001 0x00000028 0x00000028

+0060: 0x00000028 0x00000000 0x0019EEFC 0x0000BB12

+0070: 0x00000002 0x7AF51300 0x0045563B 0x7AF513BB

+0080: 0x0000BB12 0x00000000 0x0045A81C 0x6C60F59C

+0090: 0x0278F807 0x0000008B 0x0019EFA8 0x00000007

+00A0: 0x00000009 0x00609B90 0x7AF513BB 0x00000002

+00B0: 0x00000000 0x0044DC77 0x00000249 0x0048E4BE

+00C0: 0x004B9D2C 0x0019EFA8 0x00000001 0x00000009

+00D0: 0x00000002 0x7AF513BB 0x0048BB12 0x00000000

+00E0: 0x00000000 0x0019F194 0x00000000 0x0019F1AC

+00F0: 0x00609B90 0x13BB0000 0xBB127AF5 0x00490939

+0100: 0x004B9D2C 0x0019EFA8 0x00000007 0x00000002

+0110: 0x00000007 0x00609B90 0xFFFFFF00 0x0045A51E

+0120: 0x00000000 0x0119F074 0x00000283 0x00001246

+0130: 0x00000000 0x59C83D58 0x01044001 0x040060C4


IS4Code commented 11 months ago

YSF version missing. Do you have crashdetect? It should get the stack trace that is readable and show addresses of the loaded modules. I cannot use this.

rettdev commented 11 months ago

version used: https://github.com/IS4Code/YSF/releases/tag/v2.2

crashdetect:

[11:53:10] Server crashed due to an unknown error [11:53:10] Native backtrace: [11:53:10] #0 018ffe17 in ?? () in plugins\YSF.DLL [11:53:10] #1 6bbf3e44 in ?? () in plugins\streamer.DLL [11:53:10] #2 6bbfcc13 in ?? () in plugins\streamer.DLL [11:53:10] #3 6bbf9973 in ?? () in plugins\streamer.DLL [11:53:10] #4 6bbfe646 in ?? () in plugins\streamer.DLL [11:53:10] #5 00469a66 in ?? () in samp-server.exe [11:53:10] #6 0048d4db in ?? () in samp-server.exe [11:53:10] #7 0049b4a1 in ?? () in samp-server.exe [11:53:10] #8 0049b4b1 in ?? () in samp-server.exe [11:53:10] #9 10e8c1c1 in ?? () [11:53:10] #10 007fff25 in ?? () [11:53:10] #11 30a1c300 in ?? () [11:53:10] Registers: [11:53:10] EAX: 00000000 EBX: 00000000 ECX: 0072c758 EDX: 0014fb74 [11:53:10] ESI: 00000001 EDI: 0014fb6c EBP: 0014fb48 ESP: 0014fabc [11:53:10] EIP: 018ffe17 EFLAGS: 00210206 [11:53:10] Stack: ....

IS4Code commented 11 months ago

The crash trace goes through streamer's ProcessTick. Try deleting all streamed items and calling Streamer_Update on all players before gmx.

rettdev commented 11 months ago

I did what gmx asked and apparently it worked. what about crashing at runtime?

IS4Code commented 11 months ago

I realize this might have actually already been fixed by 87861798bccf8fa83dd0fdd1ae400e1d622230d3 or the commits around that time.

Please try this: YSF.zip