Skip to content
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

ToggleCloseConnectionFix #124

Closed
iMarllun opened this issue Aug 23, 2020 · 7 comments
Closed

ToggleCloseConnectionFix #124

iMarllun opened this issue Aug 23, 2020 · 7 comments

Comments

@iMarllun
Copy link

ToggleCloseConnectionFix is crashing with FCNPC

SAMP 0.3.7-R2
Windows 10 Pro

@n0bodysec
Copy link
Contributor

Possibly not related to YSF. However, could u post a backtrace/crashdump log here?
Thanks!

@iMarllun
Copy link
Author

=========================== FCNPC Exception Handler ============================
Address: 0x90d5dd00

Registers:
EAX: 0x327fbd8 - EBX: 0x7 - ECX: 0x327fbd8 - EDX: 0x0
ESI: 0x38 - EDI: 0x29468dc - EBP: 0x226d758 - ESP: 0x327f5f8

Stack:
0x0: 0x4591fe - 0x4: 0x8 - 0x8: 0x49b62c - 0xC: 0x226d758 - 0x10: 0x327ff34 - 0x14: 0x2a15ea0
0x18: 0x0 - 0x1C: 0x100007f - 0x20: 0xea57

Information:
System: Windows
SA-MP: 0.3.7 R2
FCNPC: 2.0.0

Functions:
FUNC_CPlayerPool__DeletePlayer: 0x466570
FUNC_CPlayer__Kill: 0x484620
FUNC_CPlayer__EnterVehicle: 0x484c72
FUNC_CPlayer__ExitVehicle: 0x484f52
FUNC_CPlayer__SpawnForWorld: 0x486d30
FUNC_GetVehicleModelInfo: 0x488240
FUNC_CConsole__GetIntVariable: 0x48b5b0
FUNC_ClientJoin_RPC: 0x4918f0

Pointers:
VAR_ServerAuthentication: 0x4f5fe8
VAR_NetVersion: 0xfd9

Offsets:
OFFSET_RemoteSystemManager: 0x33c
OFFSET_RemoteSystemSize: 0xcb8
OFFSET_RemoteSystem__ConnectMode: 0xcb0
OFFSET_RemoteSystem__Unknown: 0xcb5

Callbacks:
FUNC_CGameMode__OnPlayerGiveDamage: 0x46ed70
FUNC_CGameMode__OnPlayerTakeDamage: 0x46ecf0
FUNC_CGameMode__OnPlayerWeaponShot: 0x46f360
FUNC_CGameMode__OnPlayerStreamIn: 0x46e8e0
FUNC_CGameMode__OnPlayerStreamOut: 0x46e950
FUNC_CGameMode__OnGameModeExit: 0x46d7b0
=========================== FCNPC Exception Handler ============================

@n0bodysec
Copy link
Contributor

Looks like FCNPC issue, could u provide a crashdetect dump instead?

Also, are you loading YSF at the latest plugin in server.cfg (after FCNPC too!)?

@iMarllun
Copy link
Author

crashdetect samp-precise-timers FCNPC streamer sscanf pawncmd mysql YSF

CrashDetect returns nothing

@spmn
Copy link
Contributor

spmn commented Aug 24, 2020

That's because FCNPC sets up its own exception filter. Try to load crashdetect after FCNPC.

@iMarllun
Copy link
Author

iMarllun commented Aug 24, 2020

Debug: -r -O0 -d3

[24/08/2020 12:51:14] [debug] Server crashed while executing Truck.amx
[24/08/2020 12:51:14] [debug] AMX backtrace:
[24/08/2020 12:51:14] [debug] #0 native cache_is_value_name_null () in mysql.DLL
[24/08/2020 12:51:14] [debug] #1 005b67f4 in Housing_LoadAll () at C:\SBC\gamemodes\Truck.pwn:5678
[24/08/2020 12:51:14] [debug] #2 005c779c in GameModeInit_VehiclesPickups () at VeiculosEcoisas.pwn:578
[24/08/2020 12:51:14] [debug] #3 00685554 in public mf_OnGameModeInit () at C:\SBC\gamemodes\Truck.pwn:9293
[24/08/2020 12:51:14] [debug] #4 00033900 in public OnGameModeInitACT () at MapFix.pwn:53
[24/08/2020 12:51:14] [debug] #5 0002e160 in public OPBA_OnGameModeInit () at C:\SBC\dependencies\includes\AntiCarTroll.inc:347
[24/08/2020 12:51:14] [debug] #6 0001c19c in public VFUNC_OnGameModeInit () at C:\SBC\dependencies\includes\Opba.inc:949
[24/08/2020 12:51:14] [debug] #7 000097f4 in public PawnCmd_OnGameModeInit () at C:\SBC\dependencies\includes\AntiAFK.inc:75
[24/08/2020 12:51:14] [debug] #8 00009408 in public SSCANF_OnGameModeInit () at C:\SBC\dependencies\includes\Pawn.CMD.inc:127
[24/08/2020 12:51:14] [debug] #9 00002758 in public Iter_OnGameModeInit () at C:\SBC\dependencies.resources\sscanf-019253\sscanf2.inc:211
[24/08/2020 12:51:14] [debug] #10 00000b14 in public fcnpc0_OnGameModeInit () at C:\SBC\dependencies\includes\foreach.inc:660
[24/08/2020 12:51:14] [debug] #11 00000740 in public OnGameModeInit () at C:\SBC\dependencies\includes\FCNPC.inc:356
[24/08/2020 12:51:14] [debug] Registers:
[24/08/2020 12:51:14] [debug] EAX: 0334fbd8 EBX: 00000007 ECX: 0334fbd8 EDX: 00000000
[24/08/2020 12:51:14] [debug] ESI: 00000038 EDI: 02a568dc EBP: 023ed768 ESP: 0334f5f8
[24/08/2020 12:51:14] [debug] EIP: 90d5dd00 EFLAGS: 00010246
[24/08/2020 12:51:14] [debug] Stack:
[24/08/2020 12:51:14] [debug] ESP+00000000: 004591fe 00000008 0049b62c 023ed768
[24/08/2020 12:51:14] [debug] ESP+00000020: 0000d67b 02a51e28 00a10d41 00000000
[24/08/2020 12:51:14] [debug] ESP+00000040: 00000000 00000000 00000000 02a568dc
[24/08/2020 12:51:14] [debug] ESP+00000060: 00000000 00000000 00000000 00000000
[24/08/2020 12:51:14] [debug] ESP+00000080: 00000000 00000000 00000000 00000000
[24/08/2020 12:51:14] [debug] ESP+000000a0: 00000000 00000000 00000000 00000000
[24/08/2020 12:51:14] [debug] ESP+000000c0: 00000000 00000000 00000000 00000000
[24/08/2020 12:51:14] [debug] ESP+000000e0: 00000000 00000000 00000000 00000000
[24/08/2020 12:51:14] [debug] ESP+00000100: 00000000 00000000 00000000 00000000
[24/08/2020 12:51:14] [debug] ESP+00000120: 00000000 00000000 00000000 00000000
[24/08/2020 12:51:14] [debug] ESP+00000140: 00000000 00000000 00000000 00000000
[24/08/2020 12:51:14] [debug] ESP+00000160: 00000000 00000000 00000000 00000000
[24/08/2020 12:51:14] [debug] ESP+00000180: 00000000 00000000 00000000 00000000
[24/08/2020 12:51:14] [debug] ESP+000001a0: 00000000 00000000 00000000 00000000
[24/08/2020 12:51:14] [debug] ESP+000001c0: 00000000 00000000 00000000 00000000
[24/08/2020 12:51:14] [debug] ESP+000001e0: 77e0152c 774c4112 00000088 00000000
[24/08/2020 12:51:14] [debug] ESP+00000200: 0334f830 00000030 00000000 00000000
[24/08/2020 12:51:14] [debug] ESP+00000220: 0334f930 00000000 00000000 00000088
[24/08/2020 12:51:14] [debug] ESP+00000240: 00000001 00000001 0000000a 4ad5c509
[24/08/2020 12:51:14] [debug] ESP+00000260: 0334f938 00000000 00000000 02000002
[24/08/2020 12:51:14] [debug] ESP+00000280: 00000000 00000000 00000000 02000002
[24/08/2020 12:51:14] [debug] ESP+000002a0: 00000000 00000000 00000000 00000000
[24/08/2020 12:51:14] [debug] ESP+000002c0: 77dd7c7b 4ad5c6b1 007a0000 00000364
[24/08/2020 12:51:14] [debug] ESP+000002e0: 0334fb08 02000002 02450000 66000066
[24/08/2020 12:51:14] [debug] ESP+00000300: 007a0000 02000002 00818150 8b00008b
[24/08/2020 12:51:14] [debug] ESP+00000320: 0334fb48 0e00000e 000000bb ac0000ac
[24/08/2020 12:51:14] [debug] ESP+00000340: 0000001d ffffffff 00818b90 ffffff63
[24/08/2020 12:51:14] [debug] ESP+00000360: 007a50c4 ffffff80 02452a88 00000000
[24/08/2020 12:51:14] [debug] ESP+00000380: 0000001d 007a0298 007a0000 00000024
[24/08/2020 12:51:14] [debug] ESP+000003a0: 007a601c 000007ff 000000d5 00000000
[24/08/2020 12:51:14] [debug] ESP+000003c0: 00000000 0000001d 00000029 0000000b
[24/08/2020 12:51:14] [debug] ESP+000003e0: 00000029 66000066 007a00c0 007a0000
[24/08/2020 12:51:14] [debug] Loaded modules:
[24/08/2020 12:51:14] [debug] 00400000 - 00519000 samp-server.exe
[24/08/2020 12:51:14] [debug] 77d90000 - 77f33000 ntdll.dll
[24/08/2020 12:51:14] [debug] 75ee0000 - 75fd0000 KERNEL32.DLL
[24/08/2020 12:51:14] [debug] 773b0000 - 775c3000 KERNELBASE.dll
[24/08/2020 12:51:14] [debug] 76330000 - 768e0000 SHELL32.dll
[24/08/2020 12:51:14] [debug] 778b0000 - 7792b000 msvcp_win.dll
[24/08/2020 12:51:14] [debug] 77760000 - 77880000 ucrtbase.dll
[24/08/2020 12:51:14] [debug] 77070000 - 77203000 USER32.dll
[24/08/2020 12:51:14] [debug] 775d0000 - 775e8000 win32u.dll
[24/08/2020 12:51:14] [debug] 779d0000 - 779f3000 GDI32.dll
[24/08/2020 12:51:14] [debug] 77b00000 - 77bda000 gdi32full.dll
[24/08/2020 12:51:14] [debug] 750a0000 - 750c8000 WINMM.dll
[24/08/2020 12:51:14] [debug] 75c60000 - 75c68000 WSOCK32.dll
[24/08/2020 12:51:14] [debug] 768e0000 - 7699f000 msvcrt.dll
[24/08/2020 12:51:14] [debug] 77a90000 - 77af3000 WS2_32.dll
[24/08/2020 12:51:14] [debug] 77c70000 - 77d2a000 RPCRT4.dll
[24/08/2020 12:51:14] [debug] 77380000 - 773a5000 IMM32.DLL
[24/08/2020 12:51:14] [debug] 66990000 - 669cf000 samp-precise-timers.DLL
[24/08/2020 12:51:14] [debug] 76030000 - 760a9000 ADVAPI32.dll
[24/08/2020 12:51:14] [debug] 75d70000 - 75de5000 sechost.dll
[24/08/2020 12:51:14] [debug] 66970000 - 66984000 VCRUNTIME140.dll
[24/08/2020 12:51:14] [debug] 74450000 - 7445a000 CRYPTBASE.DLL
[24/08/2020 12:51:14] [debug] 75fd0000 - 7602c000 bcryptPrimitives.dll
[24/08/2020 12:51:14] [debug] 66040000 - 6612e000 FCNPC.DLL
[24/08/2020 12:51:14] [debug] 666f0000 - 66741000 crashdetect.DLL
[24/08/2020 12:51:14] [debug] 66160000 - 661d1000 MSVCP120.dll
[24/08/2020 12:51:14] [debug] 65f50000 - 6603e000 MSVCR120.dll
[24/08/2020 12:51:14] [debug] 65ee0000 - 65f47000 streamer.DLL
[24/08/2020 12:51:14] [debug] 600c0000 - 60130000 MSVCP140.dll
[24/08/2020 12:51:14] [debug] 10000000 - 1000e000 sscanf.DLL
[24/08/2020 12:51:14] [debug] 5f970000 - 5f9fe000 pawncmd.DLL
[24/08/2020 12:51:14] [debug] 665f0000 - 6663e000 mysql.DLL
[24/08/2020 12:51:14] [debug] 5f8a0000 - 5f96d000 libmariadb.dll
[24/08/2020 12:51:14] [debug] 666d0000 - 666ea000 log-core.dll
[24/08/2020 12:51:14] [debug] 75c70000 - 75cb5000 SHLWAPI.dll
[24/08/2020 12:51:14] [debug] 769a0000 - 76a9f000 CRYPT32.dll
[24/08/2020 12:51:14] [debug] 750e0000 - 750ea000 Secur32.dll
[24/08/2020 12:51:14] [debug] 74320000 - 74341000 SSPICLI.DLL
[24/08/2020 12:51:14] [debug] 754b0000 - 754bf000 kernel.appcore.dll
[24/08/2020 12:51:14] [debug] 698a0000 - 698b1000 napinsp.dll
[24/08/2020 12:51:14] [debug] 69880000 - 69896000 pnrpnsp.dll
[24/08/2020 12:51:14] [debug] 69870000 - 69880000 wshbth.dll
[24/08/2020 12:51:14] [debug] 70ac0000 - 70ad6000 NLAapi.dll
[24/08/2020 12:51:14] [debug] 75030000 - 75062000 IPHLPAPI.DLL
[24/08/2020 12:51:14] [debug] 755b0000 - 75602000 mswsock.dll
[24/08/2020 12:51:14] [debug] 70d80000 - 70e10000 DNSAPI.dll
[24/08/2020 12:51:14] [debug] 77880000 - 77887000 NSI.dll
[24/08/2020 12:51:14] [debug] 69860000 - 6986e000 winrnr.dll
[24/08/2020 12:51:14] [debug] 742d0000 - 742d8000 rasadhlp.dll
[24/08/2020 12:51:14] [debug] 029a0000 - 02a47000 YSF.DLL
[24/08/2020 12:51:14] [debug] 75df0000 - 75ed3000 ole32.dll
[24/08/2020 12:51:14] [debug] 760b0000 - 76330000 combase.dll
[24/08/2020 12:51:14] [debug] 77930000 - 779c6000 OLEAUT32.dll
[24/08/2020 12:51:14] [debug] 70d20000 - 70d78000 fwpuclnt.dll
[24/08/2020 12:51:14] [debug] 77890000 - 778a9000 bcrypt.dll

@n0bodysec
Copy link
Contributor

This issue is not related to YSF.

@IS4Code IS4Code closed this as completed Sep 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants