ziggi / FCNPC

FCNPC - Fully Controllable NPC
Apache License 2.0
125 stars 30 forks source link

Crash on Linux Server #295

Closed AtlanticCityRoleplay closed 10 months ago

AtlanticCityRoleplay commented 10 months ago
=========================== FCNPC Exception Handler ============================
Signal 11 (Segmentation fault), address is 5dc30815 from 80b0036

Backtrace:
  #0 in plugins/FCNPC.so(_ZN17CExceptionHandler24ExceptionHandlerCallbackEiP9siginfo_tPv+0x126) [0xeee5f6e6]
  #1 in [0xf7f56b70]
  #2 in ./samp03svr() [0x80b0036]

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

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

Pointers:
  VAR_ServerAuthentication: 0x81ab9ac
  VAR_NetVersion: 0xfd9

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

Just compiled and https://github.com/ziggi/FCNPC/blob/master/sampsvr_files/filterscripts/traindrivers_pilots.pwn made this to run in server

ziggi commented 10 months ago

Just tested it on Ubuntu 14.04 and everything works fine. Did you test it on empty gamemode? Any other plugins are used?

image

AtlanticCityRoleplay commented 10 months ago

Just tested it on Ubuntu 14.04 and everything works fine. Did you test it on empty gamemode? Any other plugins are used?

image

i am still Getting Crash, I tested it on empty game mode too,

Server: Ubuntu Server 20.04

Pawn Compiler Version: 3.10.10

Plugins Used:

I have tried FCNPC for the First Time

#define FILTERSCRIPT
#include <a_samp>
#include <FCNPC>

new myFirstNPC = INVALID_PLAYER_ID;

#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
    myFirstNPC = FCNPC_Create("FirstNPC");
    FCNPC_Spawn(myFirstNPC, 0, 0.0, 0.0, 3.1);
    return 1;
}

public OnFilterScriptExit()
{
    FCNPC_Destroy(myFirstNPC);
    myFirstNPC = INVALID_PLAYER_ID;
    return 1;
}
#endif

This Example Code is too Crashing... Very Sad 😔

SERVER LOG FOR FURTHER INFO

`
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R3, (C)2005-2019 SA-MP Team

[13:46:34] 
[13:46:34] Server Plugins
[13:46:34] --------------
[13:46:34]  Loading plugin: sscanf.so
[13:46:34] 
[13:46:34]  ===============================
[13:46:34] 
[13:46:34]       sscanf plugin loaded.     
[13:46:34] 
[13:46:34]          Version: 2.13.8
[13:46:34] 
[13:46:34]    (c) 2022 Alex "Y_Less" Cole  
[13:46:34] 
[13:46:34]  ===============================
[13:46:34] 
[13:46:34]   Loaded.
[13:46:34]  Loading plugin: crashdetect.so
[13:46:34]   CrashDetect plugin 4.21
[13:46:34]   Loaded.
[13:46:34]  Loading plugin: streamer.so
[13:46:34] 

*** Streamer Plugin v2.9.6 by Incognito loaded ***

[13:46:34]   Loaded.
[13:46:34]  Loading plugin: timerfix.so
[13:46:34]   >> TimerFix v1.5 successfully loaded.
[13:46:34]   Loaded.
[13:46:34]  Loading plugin: pawncmd.so
[13:46:34] [Pawn.CMD] plugin v3.4.0 loading...
[13:46:34] [Pawn.CMD] 

    | Pawn.CMD 3.4.0 | 2016 - 2023
    |--------------------------------
    | Author and maintainer: katursis

    | Compiled: Feb 12 2023 at 18:11:36
    |--------------------------------------------------------------
    | Repository: https://github.com/katursis/Pawn.CMD

[13:46:34]   Loaded.
[13:46:34]  Loading plugin: SKY.so
[13:46:34] 
[13:46:34]  ===============================
[13:46:34]    
[13:46:34]    < SKY - 2.3.0 >
[13:46:34]    
[13:46:34]    (c) 2008 - Present | YSF Maintainers
[13:46:34]    (c) 2015 | Oscar "Slice" Broman
[13:46:34]    
[13:46:34]    Server Version: 0.3.7 R2
[13:46:34]    Operating System: Linux
[13:46:34]    Built on: Sep 27 2021 at 23:13:58
[13:46:34]    
[13:46:34]  ===============================
[13:46:34] 
[13:46:34]   Loaded.
[13:46:34]  Loading plugin: bcrypt-samp.so
[13:46:34]   plugin.bcrypt v2.2.3 was loaded.
[13:46:34]   plugin.bcrypt: 32 cores detected, 31 threads will be used.
[13:46:34]   Loaded.
[13:46:34]  Loading plugin: mysql_static.so
[13:46:34]  >> plugin.mysql: R39-6 successfully loaded.
[13:46:34]   Loaded.
[13:46:34]  Loading plugin: discord-connector.so
[13:46:36]  >> plugin.dc-connector: v0.3.5 successfully loaded.
[13:46:36]   Loaded.
[13:46:36]  Loading plugin: sampvoice_lemehost.so
[13:46:36] [sv:dbg:network:init] : module initializing...
[13:46:36] [dbg:raknet:init] : module initializing...
[13:46:36] [dbg:raknet:init] : module initialized
[13:46:36] [sv:dbg:network:init] : module initialized
[13:46:36] [sv:dbg:main:Load] : creating 8 work threads...
[13:46:36]  -------------------------------------------    
[13:46:36]    ___                __   __    _              
[13:46:36]   / __| __ _ _ __  _ _\ \ / /__ (_) __ ___    
[13:46:36]   \__ \/ _` | '  \| '_ \   / _ \| |/ _/ -_)
[13:46:36]   |___/\__,_|_|_|_| .__/\_/\___/|_|\__\___|
[13:46:36]                   |_|                           
[13:46:36]  -------------------------------------------    
[13:46:36]            SampVoice by MOR loaded              
[13:46:36]  -------------------------------------------    
[13:46:36]   Loaded.
[13:46:36]  Loading plugin: FCNPC.so
[13:46:36] 
[13:46:36] -------------------------------------------------
[13:46:36]      FCNPC - Fully Controllable NPC v2.0.5
[13:46:36]             GNU/Linux SA-MP 0.3.7 R2
[13:46:36]            Jul 22 2023 at 13:01:08
[13:46:36] 
[13:46:36]   Author:       OrMisicL (2013 - 2015)
[13:46:36]   Continued by: ziggi    (2016 - present)
[13:46:36] 
[13:46:36]   See full credits in the README.md file
[13:46:36] -------------------------------------------------
[13:46:36] 
[13:46:36] Loading...
[13:46:36] 
[13:46:36] -------------------------------------------------
[13:46:36]    ColAndreasv1.4.0
[13:46:36] 
[13:46:36]    Created By:
[13:46:36]      [uL]Chris42O
[13:46:36]      [uL]Slice
[13:46:36]      [uL]Pottus
[13:46:36] -------------------------------------------------
[13:46:36] 
[13:46:36] Loading...
[13:46:36] ColAndreas v1.4.0 Loaded.
[13:46:36]   Loaded.
[13:46:36]  Loading plugin: nativechecker.so
[13:46:36]   Loaded.
[13:46:36]  Loaded 12 plugins.

[13:46:37] 
[13:46:37] Ban list
[13:46:37] --------
[13:46:37]  Loaded: samp.ban
[13:46:37] 
[13:46:37] 
[13:46:37] Filterscripts
[13:46:37] ---------------
[13:46:37]   Loading filterscript 'android-check.amx'...
[13:46:37] [sv:dbg:main:AmxLoad] : net game pointer (value:0x9eb66a8) received
[13:46:37] [sv:dbg:network:bind] : voice server running on port 9864
[13:47:14] Loaded collision data.
[13:47:14] Android check has been successfully loaded.
[13:47:14]   Loading filterscript 'acrp_map.amx'...
[13:47:14]   Loading filterscript 'acrp_main.amx'...
[13:47:14]   Loading filterscript 'acrp_store.amx'...
[13:47:14]   Loading filterscript 'acrp_dealership.amx'...
[13:47:14]   Loading filterscript 'traindrivers_pilots.amx'...
`
ziggi commented 10 months ago

Try to disable some plugins. I'm not sure that FCNPC are compatible with the SKY.

AtlanticCityRoleplay commented 10 months ago

Try to disable some plugins. I'm not sure that FCNPC are compatible with the SKY.

Still the Same, I am Going Back to SAMP Default Natives

AtlanticCityRoleplay commented 10 months ago

@ziggi

Plugin is working Good in Windows Version... It seems Linux have Compatibility Issue

ziggi commented 10 months ago

As I said it works fine on my side. Have you tried using an empty gamemode without any plugins?

AtlanticCityRoleplay commented 10 months ago

As I said it works fine on my side. Have you tried using an empty gamemode without any plugins?

Let me Try

AtlanticCityRoleplay commented 10 months ago

@ziggi

Still the Same

No Plugin Except FCNPC and No any other Filterscript other than Example which you have given

Game Mode is Just Empty Gamemode and I have used default SAMP Gamemode too

SERVER LOG FOR REFERENCE

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R3, (C)2005-2019 SA-MP Team

[17:23:53] 
[17:23:53] Server Plugins
[17:23:53] --------------
[17:23:53]  Loading plugin: FCNPC.so
[17:23:53] 
[17:23:53] -------------------------------------------------
[17:23:53]      FCNPC - Fully Controllable NPC v2.0.5
[17:23:53]             GNU/Linux SA-MP 0.3.7 R2
[17:23:53]            Jul 22 2023 at 13:01:08
[17:23:53] 
[17:23:53]   Author:       OrMisicL (2013 - 2015)
[17:23:53]   Continued by: ziggi    (2016 - present)
[17:23:53] 
[17:23:53]   See full credits in the README.md file
[17:23:53] -------------------------------------------------
[17:23:53] 
[17:23:53] Loading...
[17:23:53] 
[17:23:53] -------------------------------------------------
[17:23:53]    ColAndreasv1.4.0
[17:23:53] 
[17:23:53]    Created By:
[17:23:53]      [uL]Chris42O
[17:23:53]      [uL]Slice
[17:23:53]      [uL]Pottus
[17:23:53] -------------------------------------------------
[17:23:53] 
[17:23:53] Loading...
[17:23:53] ColAndreas v1.4.0 Loaded.
[17:23:53]   Loaded.
[17:23:53]  Loaded 1 plugins.

[17:23:53] 
[17:23:53] Ban list
[17:23:53] --------
[17:23:53]  Loaded: samp.ban
[17:23:53] 
[17:23:53] 
[17:23:53] Filterscripts
[17:23:53] ---------------
[17:23:53]   Loading filterscript 'traindrivers_pilots.amx'...

FCNPC CRASH REPORT

=========================== FCNPC Exception Handler ============================
Signal 11 (Segmentation fault), address is 5dc30815 from 80b0036

Backtrace:
  #0 in plugins/FCNPC.so(_ZN17CExceptionHandler24ExceptionHandlerCallbackEiP9siginfo_tPv+0x126) [0xf7a3a6e6]
  #1 in [0xf7fa6b70]
  #2 in ./samp03svr() [0x80b0036]

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

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

Pointers:
  VAR_ServerAuthentication: 0x81ab9ac
  VAR_NetVersion: 0xfd9

Offsets:
  OFFSET_RemoteSystemManager: 0x334
  OFFSET_RemoteSystemSize: 0xc69
  OFFSET_RemoteSystem__ConnectMode: 0xc62
  OFFSET_RemoteSystem__Unknown: 0xc67
=========================== FCNPC Exception Handler ============================
ziggi commented 10 months ago

Try with 0.3.7 R2 SA-MP server

AtlanticCityRoleplay commented 10 months ago

Try with 0.3.7 R2 SA-MP server

Ok Let me Try

AtlanticCityRoleplay commented 10 months ago

Try with 0.3.7 R2 SA-MP server

WORKED !!!, Thanks for Helping...

I hope there is some problem with 0.3.7 R3 version

I thought i could use because you mentioned in the release

Anyways Thanks for the Support Given Till Now

ziggi commented 10 months ago

Can you try this one with the R3 version? FCNPC.zip

AtlanticCityRoleplay commented 10 months ago

Can you try this one with the R3 version? FCNPC.zip

Sure let me try

ziggi commented 10 months ago

Should be fixed in v2.0.6