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

FCNPC CRASHES #321

Open
globrm opened this issue Jul 24, 2024 · 15 comments
Open

FCNPC CRASHES #321

globrm opened this issue Jul 24, 2024 · 15 comments

Comments

@globrm
Copy link

globrm commented Jul 24, 2024

Hello guys.
Any ideas on what's causing this?
Address: 0x77584f24 | Address: 0x49df95| Address: 0x20aa34e7

=========================== FCNPC Exception Handler ============================
Address: 0x77584f24

Registers:
EAX: 0x19e5ec - EBX: 0xb40000 - ECX: 0x160 - EDX: 0x0
ESI: 0x160 - EDI: 0x0 - EBP: 0x19e5c0 - ESP: 0x19e580

Stack:
0x0: 0x4c5c90 - 0x4: 0x160 - 0x8: 0x19fb0c - 0xC: 0x0 - 0x10: 0x0 - 0x14: 0x160
0x18: 0x0 - 0x1C: 0x0 - 0x20: 0x38340000

Information:
System: Windows
SA-MP: 0.3.DL R1
FCNPC: 2.0.10

Functions:
FUNC_CPlayerPool__DeletePlayer: 0x466550
FUNC_CPlayer__Kill: 0x485020
FUNC_CPlayer__EnterVehicle: 0x485670
FUNC_CPlayer__ExitVehicle: 0x485790
FUNC_CPlayer__SpawnForWorld: 0x487730
FUNC_GetVehicleModelInfo: 0x4892a0
FUNC_CConsole__GetIntVariable: 0x490c80
FUNC_ClientJoin_RPC: 0x497ef0

Pointers:
VAR_ServerAuthentication: 0x4fc470
VAR_NetVersion: 0xfde

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

Callbacks:
FUNC_CGameMode__OnPlayerGiveDamage: 0x46f050
FUNC_CGameMode__OnPlayerTakeDamage: 0x46efd0
FUNC_CGameMode__OnPlayerWeaponShot: 0x46f640
FUNC_CGameMode__OnPlayerStreamIn: 0x46ebc0
FUNC_CGameMode__OnPlayerStreamOut: 0x46ec30
FUNC_CGameMode__OnGameModeExit: 0x46da90
=========================== FCNPC Exception Handler ============================

OR this

=========================== FCNPC Exception Handler ============================
Address: 0x49df95

Registers:
EAX: 0x0 - EBX: 0x8 - ECX: 0x0 - EDX: 0x64e509e8
ESI: 0x1 - EDI: 0x19f0f0 - EBP: 0x64e50b38 - ESP: 0x19f0bc

Stack:
0x0: 0x0 - 0x4: 0x64e509e8 - 0x8: 0x19f280 - 0xC: 0x12b - 0x10: 0x2 - 0x14: 0x64e509e8
0x18: 0x49e243 - 0x1C: 0x0 - 0x20: 0x1

Information:
System: Windows
SA-MP: 0.3.DL R1
FCNPC: 2.0.10

Functions:
FUNC_CPlayerPool__DeletePlayer: 0x466550
FUNC_CPlayer__Kill: 0x485020
FUNC_CPlayer__EnterVehicle: 0x485670
FUNC_CPlayer__ExitVehicle: 0x485790
FUNC_CPlayer__SpawnForWorld: 0x487730
FUNC_GetVehicleModelInfo: 0x4892a0
FUNC_CConsole__GetIntVariable: 0x490c80
FUNC_ClientJoin_RPC: 0x497ef0

Pointers:
VAR_ServerAuthentication: 0x4fc470
VAR_NetVersion: 0xfde

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

Callbacks:
FUNC_CGameMode__OnPlayerGiveDamage: 0x46f050
FUNC_CGameMode__OnPlayerTakeDamage: 0x46efd0
FUNC_CGameMode__OnPlayerWeaponShot: 0x46f640
FUNC_CGameMode__OnPlayerStreamIn: 0x46ebc0
FUNC_CGameMode__OnPlayerStreamOut: 0x46ec30
FUNC_CGameMode__OnGameModeExit: 0x46da90
=========================== FCNPC Exception Handler ============================

=========================== FCNPC Exception Handler ============================
Address: 0x20aa34e7

Registers:
EAX: 0x0 - EBX: 0x0 - ECX: 0x80e8 - EDX: 0x3a4b9fd8
ESI: 0x25d84 - EDI: 0x0 - EBP: 0x3e8 - ESP: 0x2152ef00

Stack:
0x0: 0xf - 0x4: 0x17 - 0x8: 0x2152efe0 - 0xC: 0x11 - 0x10: 0x80e8 - 0x14: 0x3a4b9fd8
0x18: 0x20ab016a - 0x1C: 0x2152ef88 - 0x20: 0x20b77cf0

Information:
System: Windows
SA-MP: 0.3.DL R1
FCNPC: 2.0.10

Functions:
FUNC_CPlayerPool__DeletePlayer: 0x466550
FUNC_CPlayer__Kill: 0x485020
FUNC_CPlayer__EnterVehicle: 0x485670
FUNC_CPlayer__ExitVehicle: 0x485790
FUNC_CPlayer__SpawnForWorld: 0x487730
FUNC_GetVehicleModelInfo: 0x4892a0
FUNC_CConsole__GetIntVariable: 0x490c80
FUNC_ClientJoin_RPC: 0x497ef0

Pointers:
VAR_ServerAuthentication: 0x4fc470
VAR_NetVersion: 0xfde

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

Callbacks:
FUNC_CGameMode__OnPlayerGiveDamage: 0x46f050
FUNC_CGameMode__OnPlayerTakeDamage: 0x46efd0
FUNC_CGameMode__OnPlayerWeaponShot: 0x46f640
FUNC_CGameMode__OnPlayerStreamIn: 0x46ebc0
FUNC_CGameMode__OnPlayerStreamOut: 0x46ec30
FUNC_CGameMode__OnGameModeExit: 0x46da90
=========================== FCNPC Exception Handler ============================

Thanks in advanced <3

@recepilhanli
Copy link

recepilhanli commented Jul 24, 2024

=========================== FCNPC Exception Handler ============================
Signal 11 (Segmentation fault), address is fff5b000 from ef369371

Backtrace:
  #0 in plugins/FCNPC-DL.so(_ZN17CExceptionHandler24ExceptionHandlerCallbackEiP9siginfo_tPv+0x126) [0xed78ad16]
  #1 in linux-gate.so.1(__kernel_rt_sigreturn+0) [0xef72e5a0]
  #2 in /lib/i386-linux-gnu/libc.so.6(+0x146371) [0xef369371]
  #3 in [0x804cf0a]
  #4 in [0x807a35b]
  #5 in [(nil)]

Information:
  System: GNU/Linux
  SA-MP: 0.3.DL R1
  FCNPC: 2.0.8

Functions:
  FUNC_CPlayerPool__DeletePlayer: 0x80dc0b0
  FUNC_CPlayer__Kill: 0x80d5ac0
  FUNC_CPlayer__EnterVehicle: 0x80d6a70
  FUNC_CPlayer__ExitVehicle: 0x80d6bf0
  FUNC_CPlayer__SpawnForWorld: 0x80d7870
  FUNC_GetVehicleModelInfo: 0x80e14f0
  FUNC_CConsole__GetIntVariable: 0x80a87d0
  FUNC_ClientJoin_RPC: 0x80ba350

Pointers:
  VAR_ServerAuthentication: 0x81b7d2c
  VAR_NetVersion: 0xfde

Offsets:
  OFFSET_RemoteSystemManager: 0x334
  OFFSET_RemoteSystemSize: 0xc69
  OFFSET_RemoteSystem__ConnectMode: 0xc62
  OFFSET_RemoteSystem__Unknown: 0xc67
=========================== FCNPC Exception Handler ============================

Same here, I've been using these plugins for years, and it's the first time I've seen this.

@itslapsu
Copy link

itslapsu commented Sep 23, 2024

And my crash))

=========================== FCNPC Exception Handler ============================
Signal 11 (Segmentation fault), address is 18 from 80961fc

Backtrace:
  #0 in plugins/FCNPC.so(_ZN17CExceptionHandler24ExceptionHandlerCallbackEiP9siginfo_tPv+0x126) [0xf5a9bb86]
  #1 in linux-gate.so.1(__kernel_rt_sigreturn+0) [0xf7eda580]
  #2 in ./samp03svr() [0x80961fc]
  #3 in plugins/FCNPC.so(amx_Push+0x29) [0xf5ac5eb9]

Information:
  System: GNU/Linux
  SA-MP: 0.3.7 R2
  FCNPC: 2.0.11

Functions:
  FUNC_CPlayerPool__DeletePlayer: 0x80d0a90
  FUNC_CPlayer__Kill: 0x80cb220
  FUNC_CPlayer__EnterVehicle: 0x80cc1c0
  FUNC_CPlayer__ExitVehicle: 0x80cc340
  FUNC_CPlayer__SpawnForWorld: 0x80ccfc0
  FUNC_GetVehicleModelInfo: 0x80d5e00
  FUNC_CConsole__GetIntVariable: 0x80a0070
  FUNC_ClientJoin_RPC: 0x80b0030

Pointers:
  VAR_ServerAuthentication: 0x81ab8ec
  VAR_NetVersion: 0xfd9

Offsets:
  OFFSET_RemoteSystemManager: 0x334
  OFFSET_RemoteSystemSize: 0xc69
  OFFSET_RemoteSystem__ConnectMode: 0xc62
  OFFSET_RemoteSystem__Unknown: 0xc67
=========================== FCNPC Exception Handler ============================

@ziggi
Copy link
Owner

ziggi commented Sep 23, 2024

No code to reproduce the error = no help.

@itslapsu
Copy link

0x80961fc

The problem is that it is not clear why. Everything is going normally and then the server just crashes. And the NPCs are just standing in place.

@itslapsu
Copy link

itslapsu commented Sep 24, 2024

{9E4AE12D-A05A-49C7-BAEA-F3BCDA88AA51}
{DEB1B1EF-8930-44B0-9A19-7617A20420DF}

  • UPD:
    {98060A3F-1581-4216-B110-D1C890213753}

Here is the code that is used by FСNPС, but while the server is crashing they are not used.

@ziggi
Copy link
Owner

ziggi commented Sep 24, 2024

Here is the code that is used by FСNPС, but while the server is crashing they are not used.

Try to use FCNPC_OnCreate callback for the code which should be executed after the NPC creation.

@itslapsu
Copy link

Here is the code that is used by FСNPС, but while the server is crashing they are not used.

Try to use callback for the code which should be executed after the NPC creation.FCNPC_OnCreate

I mean, the server starts up, the bots work. Then after a while, even when there is no interaction with the bots, the server crashes.

@itslapsu
Copy link

itslapsu commented Sep 25, 2024

Here is the code that is used by FСNPС, but while the server is crashing they are not used.

Try to use FCNPC_OnCreate callback for the code which should be executed after the NPC creation.

=========================== FCNPC Exception Handler ============================
Signal 11 (Segmentation fault), address is 286 from f78f5941

Backtrace:
  #0 in plugins/FCNPC.so(_ZN17CExceptionHandler24ExceptionHandlerCallbackEiP9siginfo_tPv+0x126) [0xf5adcb86]
  #1 in linux-gate.so.1(__kernel_rt_sigreturn+0) [0xf7f22580]
  #2 in plugins/sampvoice.so(ProcessTick+0x5d1) [0xf78f5941]
  #3 in ./samp03svr() [0x80d1ce2]
  #4 in ./samp03svr() [0x80aef6c]
  #5 in ./samp03svr() [0x80aa13a]
  #6 in /lib/i386-linux-gnu/libc.so.6(+0x232d5) [0xf79bb2d5]
  #7 in /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0x88) [0xf79bb398]
  #8 in ./samp03svr() [0x804b4e1]

Information:
  System: GNU/Linux
  SA-MP: 0.3.7 R2
  FCNPC: 2.0.11

Functions:
  FUNC_CPlayerPool__DeletePlayer: 0x80d0a90
  FUNC_CPlayer__Kill: 0x80cb220
  FUNC_CPlayer__EnterVehicle: 0x80cc1c0
  FUNC_CPlayer__ExitVehicle: 0x80cc340
  FUNC_CPlayer__SpawnForWorld: 0x80ccfc0
  FUNC_GetVehicleModelInfo: 0x80d5e00
  FUNC_CConsole__GetIntVariable: 0x80a0070
  FUNC_ClientJoin_RPC: 0x80b0030

Pointers:
  VAR_ServerAuthentication: 0x81ab8ec
  VAR_NetVersion: 0xfd9

Offsets:
  OFFSET_RemoteSystemManager: 0x334
  OFFSET_RemoteSystemSize: 0xc69
  OFFSET_RemoteSystem__ConnectMode: 0xc62
  OFFSET_RemoteSystem__Unknown: 0xc67
=========================== FCNPC Exception Handler ============================

Does this mean it conflicts with sampvoice?

@ziggi
Copy link
Owner

ziggi commented Sep 25, 2024

Does this mean it conflicts with sampvoice?

Yes, or the bug only in sampvoice.

@itslapsu
Copy link

Does this mean it conflicts with sampvoice?

Yes, or the bug only in sampvoice.

=========================== FCNPC Exception Handler ============================
Signal 11 (Segmentation fault), address is 2 from f5b6bec7

Backtrace:
  #0 in plugins/FCNPC.so(_ZN17CExceptionHandler24ExceptionHandlerCallbackEiP9siginfo_tPv+0x126) [0xf5b61b86]
  #1 in linux-gate.so.1(__kernel_rt_sigreturn+0) [0xf7f8d580]
  #2 in plugins/FCNPC.so(_ZN11CPlayerData7ProcessEv+0x17) [0xf5b6bec7]
  #3 in plugins/FCNPC.so(_ZN14CPlayerManager7ProcessEv+0x42) [0xf5b6e182]
  #4 in plugins/FCNPC.so(_ZN7CServer7ProcessEv+0x54) [0xf5b706e4]
  #5 in plugins/FCNPC.so(ProcessTick+0x23) [0xf5b71fa3]
  #6 in ./samp03svr() [0x80d1ce2]
  #7 in ./samp03svr() [0x80aef6c]
  #8 in ./samp03svr() [0x80aa13a]
  #9 in /lib/i386-linux-gnu/libc.so.6(+0x232d5) [0xf7a262d5]

Information:
  System: GNU/Linux
  SA-MP: 0.3.7 R2
  FCNPC: 2.0.11

Functions:
  FUNC_CPlayerPool__DeletePlayer: 0x80d0a90
  FUNC_CPlayer__Kill: 0x80cb220
  FUNC_CPlayer__EnterVehicle: 0x80cc1c0
  FUNC_CPlayer__ExitVehicle: 0x80cc340
  FUNC_CPlayer__SpawnForWorld: 0x80ccfc0
  FUNC_GetVehicleModelInfo: 0x80d5e00
  FUNC_CConsole__GetIntVariable: 0x80a0070
  FUNC_ClientJoin_RPC: 0x80b0030

Pointers:
  VAR_ServerAuthentication: 0x81ab8ec
  VAR_NetVersion: 0xfd9

Offsets:
  OFFSET_RemoteSystemManager: 0x334
  OFFSET_RemoteSystemSize: 0xc69
  OFFSET_RemoteSystem__ConnectMode: 0xc62
  OFFSET_RemoteSystem__Unknown: 0xc67
=========================== FCNPC Exception Handler ============================

What could cause crashes during GMX?

@ziggi
Copy link
Owner

ziggi commented Sep 25, 2024

What could cause crashes during GMX?

Using FCNPC_Create inside of OnGameModeInit, use FCNPC_OnInit instead (#200)

@itslapsu
Copy link

itslapsu commented Sep 25, 2024

FCNPC_OnInit

Thank you.

I managed to catch a crash when the crashlog contains a reference to sampvoice.SO, when you left the server and the server has not yet managed to disconnect the player and you log in with the same nickname, a samp window pops up that such a nickname is already in use - the server crashes.

Is there an option to fix this?
Before connecting the FCNPC plugin, this crash did not occur, even when such a situation occurred.

@ziggi
Copy link
Owner

ziggi commented Sep 25, 2024

Is there an option to fix this?

I don't know.

@itslapsu
Copy link

Is there an option to fix this?

I don't know.

I deleted sampvoice, everything became stable, everything is cool, I was happy.

But after a day the server unexpectedly crashed. Again, no NPCs were used, they just stood in place.

=========================== FCNPC Exception Handler ============================
Signal 11 (Segmentation fault), address is 18 from 80961fc

Backtrace:
  #0 in plugins/FCNPC.so(_ZN17CExceptionHandler24ExceptionHandlerCallbackEiP9siginfo_tPv+0x126) [0xf5ae1b86]
  #1 in linux-gate.so.1(__kernel_rt_sigreturn+0) [0xf7f57580]
  #2 in ./samp03svr() [0x80961fc]
  #3 in plugins/FCNPC.so(amx_Push+0x29) [0xf5b0beb9]

Information:
  System: GNU/Linux
  SA-MP: 0.3.7 R2
  FCNPC: 2.0.11

Functions:
  FUNC_CPlayerPool__DeletePlayer: 0x80d0a90
  FUNC_CPlayer__Kill: 0x80cb220
  FUNC_CPlayer__EnterVehicle: 0x80cc1c0
  FUNC_CPlayer__ExitVehicle: 0x80cc340
  FUNC_CPlayer__SpawnForWorld: 0x80ccfc0
  FUNC_GetVehicleModelInfo: 0x80d5e00
  FUNC_CConsole__GetIntVariable: 0x80a0070
  FUNC_ClientJoin_RPC: 0x80b0030

Pointers:
  VAR_ServerAuthentication: 0x81ab8ec
  VAR_NetVersion: 0xfd9

Offsets:
  OFFSET_RemoteSystemManager: 0x334
  OFFSET_RemoteSystemSize: 0xc69
  OFFSET_RemoteSystem__ConnectMode: 0xc62
  OFFSET_RemoteSystem__Unknown: 0xc67
=========================== FCNPC Exception Handler ============================

@itslapsu
Copy link

=========================== FCNPC Exception Handler ============================
Signal 11 (Segmentation fault), address is ed8ea086 from ed8ea086

Backtrace:
  #0 in plugins/FCNPC.so(_ZN17CExceptionHandler24ExceptionHandlerCallbackEiP9siginfo_tPv+0x126) [0xf5ae1b86]
  #1 in linux-gate.so.1(__kernel_rt_sigreturn+0) [0xf7f16580]
  #2 in [0xed8ea086]
  #3 in ./samp03svr() [0x808106e]
  #4 in ./samp03svr() [0x8073680]
  #5 in ./samp03svr() [0x808ec9d]
  #6 in ./samp03svr() [0x8074846]
  #7 in ./samp03svr() [0x80763fe]
  #8 in /lib/i386-linux-gnu/libc.so.6(+0x8836d) [0xf7a1436d]
  #9 in /lib/i386-linux-gnu/libc.so.6(clone+0x66) [0xf7aad436]

Information:
  System: GNU/Linux
  SA-MP: 0.3.7 R2
  FCNPC: 2.0.11

Functions:
  FUNC_CPlayerPool__DeletePlayer: 0x80d0a90
  FUNC_CPlayer__Kill: 0x80cb220
  FUNC_CPlayer__EnterVehicle: 0x80cc1c0
  FUNC_CPlayer__ExitVehicle: 0x80cc340
  FUNC_CPlayer__SpawnForWorld: 0x80ccfc0
  FUNC_GetVehicleModelInfo: 0x80d5e00
  FUNC_CConsole__GetIntVariable: 0x80a0070
  FUNC_ClientJoin_RPC: 0x80b0030

Pointers:
  VAR_ServerAuthentication: 0x81ab8ec
  VAR_NetVersion: 0xfd9

Offsets:
  OFFSET_RemoteSystemManager: 0x334
  OFFSET_RemoteSystemSize: 0xc69
  OFFSET_RemoteSystem__ConnectMode: 0xc62
  OFFSET_RemoteSystem__Unknown: 0xc67
=========================== FCNPC Exception Handler ============================

After 10 minutes, crash again.

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