openmultiplayer / server-beta-old

open.mp server beta releases
143 stars 14 forks source link

[BUG]: FCNPC Plugin crashes and omp-server has stopped working #15

Closed adib-yg closed 2 years ago

adib-yg commented 2 years ago

Description

I wanted to run the gamemode but the FCNPC plugin caused the omp-server to crash.

I Even tried to run FCNPC alone with a blank gamemode and crashdetect but still crashes and omp-server.exe has stopped working.

There is no problem in samp-server.

Note: FCNPC Version is 2.0.4

How to re-produce this bug

Tell us a how to re-produce this bug in steps for example:

  1. Add FCNPC to plugins list
  2. Run omp-server.exe
  3. [Info] Loading plugin: FCNPC
  4. [Info] [debug] Server crashed due to an unknown error
  5. omp-server.exe has stopped working

Relevant log output

[Info] Loaded 19 component(s)
[Info] Executing Server Config...
[06:25:20] [Info] Loading plugin: crashdetect
[06:25:20] [Info]   CrashDetect plugin 4.19.3
[06:25:20] [Info] Loading plugin: FCNPC
[06:25:20] [Info] [debug] Server crashed due to an unknown error
[06:25:20] [Info] [debug] Native backtrace:
[06:25:20] [Info] [debug] #0 73b918f8 in ?? () in plugins\FCNPC.DLL
[06:25:20] [Info] [debug] #1 73b813ef in ?? () in plugins\FCNPC.DLL
[06:25:20] [Info] [debug] #2 73ee0d68 in ?? () in components\Pawn.dll
[06:25:20] [Info] [debug] #3 73ee2062 in ?? () in components\Pawn.dll
[06:25:20] [Info] [debug] #4 73ee1bec in ?? () in components\Pawn.dll
[06:25:20] [Info] [debug] #5 73ef654f in ?? () in components\Pawn.dll
[06:25:20] [Info] [debug] #6 0013b5af in ?? () in omp-server.exe
[06:25:20] [Info] [debug] #7 00137771 in ?? () in omp-server.exe
[06:25:20] [Info] [debug] #8 00340cc0 in ?? () in omp-server.exe
[06:25:20] [Info] [debug] #9 75e67c04 in ?? () in C:\Windows\SYSTEM32\KERNEL32.D
LL
[06:25:20] [Info] [debug] #10 77edad8f in ?? () in C:\Windows\SYSTEM32\ntdll.dll

[06:25:20] [Info] [debug] #11 77edad5a in ?? () in C:\Windows\SYSTEM32\ntdll.dll

[06:25:20] [Info] [debug] Registers:
[06:25:20] [Info] [debug] EAX: 00000010 EBX: ff72b000 ECX: 73c1f3c1 EDX: 002a800
0
[06:25:21] [Info] [debug] ESI: 00340d52 EDI: 00340d52 EBP: 00acf930 ESP: 00acf92
8
[06:25:21] [Info] [debug] EIP: 77edad5a EFLAGS: 00210216
[06:25:21] [Info] [debug] Stack:
[06:25:21] [Info] [debug] ESP+00000000: ffffffff 77ec00a7 00000000 00000000
[06:25:21] [Info] [debug] ESP+00000020: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+00000040: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+00000060: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+00000080: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+000000a0: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+000000c0: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+000000e0: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+00000100: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+00000120: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+00000140: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+00000160: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+00000180: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+000001a0: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+000001c0: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+000001e0: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+00000200: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+00000220: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+00000240: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+00000260: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+00000280: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+000002a0: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+000002c0: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+000002e0: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+00000300: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+00000320: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+00000340: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+00000360: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+00000380: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+000003a0: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+000003c0: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] ESP+000003e0: 00000000 00000000 00000000 00000000
[06:25:21] [Info] [debug] Loaded modules:
[06:25:21] [Info] [debug] 00130000 - 003f0000 omp-server.exe
[06:25:21] [Info] [debug] 77e80000 - 77fef000 ntdll.dll
[06:25:21] [Info] [debug] 75e50000 - 75f90000 KERNEL32.DLL
[06:25:21] [Info] [debug] 77af0000 - 77bc7000 KERNELBASE.dll
[06:25:21] [Info] [debug] 77d60000 - 77daf000 WS2_32.dll
[06:25:21] [Info] [debug] 75f90000 - 7724b000 SHELL32.dll
[06:25:21] [Info] [debug] 74bb0000 - 74bd3000 WINMM.dll
[06:25:21] [Info] [debug] 778d0000 - 77a58000 CRYPT32.dll
[06:25:21] [Info] [debug] 74ac0000 - 74b30000 MSVCP140.dll
[06:25:21] [Info] [debug] 77250000 - 772cc000 ADVAPI32.dll
[06:25:21] [Info] [debug] 75c90000 - 75de3000 USER32.dll
[06:25:21] [Info] [debug] 74be0000 - 74bfe000 bcrypt.dll
[06:25:21] [Info] [debug] 74aa0000 - 74ab4000 VCRUNTIME140.dll
[06:25:21] [Info] [debug] 74a90000 - 74a94000 api-ms-win-crt-runtime-l1-1-0.dll
[06:25:21] [Info] [debug] 74a80000 - 74a84000 api-ms-win-crt-stdio-l1-1-0.dll
[06:25:21] [Info] [debug] 74a40000 - 74a45000 api-ms-win-crt-math-l1-1-0.dll
[06:25:21] [Info] [debug] 74a30000 - 74a33000 api-ms-win-crt-heap-l1-1-0.dll
[06:25:21] [Info] [debug] 74a20000 - 74a23000 api-ms-win-crt-locale-l1-1-0.dll
[06:25:21] [Info] [debug] 74a10000 - 74a13000 api-ms-win-crt-time-l1-1-0.dll
[06:25:21] [Info] [debug] 74a00000 - 74a03000 api-ms-win-crt-filesystem-l1-1-0.d
ll
[06:25:21] [Info] [debug] 749f0000 - 749f4000 api-ms-win-crt-string-l1-1-0.dll
[06:25:21] [Info] [debug] 749e0000 - 749e4000 api-ms-win-crt-convert-l1-1-0.dll
[06:25:21] [Info] [debug] 749d0000 - 749d3000 api-ms-win-crt-environment-l1-1-0.
dll
[06:25:21] [Info] [debug] 749c0000 - 749c3000 api-ms-win-crt-utility-l1-1-0.dll
[06:25:21] [Info] [debug] 75680000 - 75687000 NSI.dll
[06:25:21] [Info] [debug] 77ca0000 - 77d5a000 RPCRT4.dll
[06:25:21] [Info] [debug] 77bd0000 - 77c93000 msvcrt.dll
[06:25:21] [Info] [debug] 759a0000 - 75b1d000 combase.dll
[06:25:21] [Info] [debug] 75c40000 - 75c85000 SHLWAPI.dll
[06:25:21] [Info] [debug] 75b30000 - 75c3c000 GDI32.dll
[06:25:21] [Info] [debug] 74a50000 - 74a73000 WINMMBASE.dll
[06:25:21] [Info] [debug] 75860000 - 7586e000 MSASN1.dll
[06:25:21] [Info] [debug] 75950000 - 75991000 sechost.dll
[06:25:21] [Info] [debug] 75870000 - 7588e000 SspiCli.dll
[06:25:21] [Info] [debug] 773f0000 - 7742c000 cfgmgr32.dll
[06:25:21] [Info] [debug] 75520000 - 75541000 DEVOBJ.dll
[06:25:21] [Info] [debug] 74780000 - 74861000 ucrtbase.DLL
[06:25:21] [Info] [debug] 75660000 - 7566a000 CRYPTBASE.dll
[06:25:21] [Info] [debug] 75600000 - 75654000 bcryptPrimitives.dll
[06:25:21] [Info] [debug] 77760000 - 77787000 IMM32.DLL
[06:25:21] [Info] [debug] 772d0000 - 773e2000 MSCTF.dll
[06:25:21] [Info] [debug] 74990000 - 749b2000 Actors.dll
[06:25:22] [Info] [debug] 74970000 - 7498c000 Checkpoints.dll
[06:25:22] [Info] [debug] 74950000 - 7496f000 Classes.dll
[06:25:22] [Info] [debug] 74880000 - 748b4000 Console.dll
[06:25:22] [Info] [debug] 746b0000 - 74777000 Databases.dll
[06:25:22] [Info] [debug] 74930000 - 7494d000 Dialogs.dll
[06:25:22] [Info] [debug] 74690000 - 746b0000 GangZones.dll
[06:25:22] [Info] [debug] 74140000 - 74168000 LegacyConfig.dll
[06:25:22] [Info] [debug] 74090000 - 7413b000 LegacyNetwork.dll
[06:25:22] [Info] [debug] 74060000 - 74081000 Menus.dll
[06:25:22] [Info] [debug] 74030000 - 7405f000 Objects.dll
[06:25:22] [Info] [debug] 73ed0000 - 7402b000 Pawn.dll
[06:25:22] [Info] [debug] 74670000 - 74690000 Pickups.dll
[06:25:22] [Info] [debug] 73ea0000 - 73ec6000 TextDraws.dll
[06:25:22] [Info] [debug] 73e70000 - 73e94000 TextLabels.dll
[06:25:22] [Info] [debug] 73e50000 - 73e69000 Timers.dll
[06:25:22] [Info] [debug] 61e80000 - 63b2c000 Unicode.dll
[06:25:22] [Info] [debug] 73e30000 - 73e4d000 Variables.dll
[06:25:22] [Info] [debug] 73e00000 - 73e2e000 Vehicles.dll
[06:25:22] [Info] [debug] 73da0000 - 73df1000 crashdetect.DLL
[06:25:22] [Info] [debug] 73d30000 - 73d99000 MSVCP100.dll
[06:25:22] [Info] [debug] 73c70000 - 73d2f000 MSVCR100.dll
[06:25:22] [Info] [debug] 73b80000 - 73c6c000 FCNPC.DLL
[06:25:22] [Info] [debug] 74c20000 - 74c29000 kernel.appcore.dll

open.mp server version

Open MP server beta

Operating system or distribution

Windows

Contact information

Discord: Adib#5980 Telegram: @adib_yg

Additional information

Plugins that game mode uses: crashdetect mysql pawncmd sscanf streamer FCNPC pawn-memory libRegEx sampvoice pawnplus

AmyrAhmady commented 2 years ago

Please read the whole article before creating another issue about memory hacking plugins https://github.com/openmultiplayer/server-beta/blob/master/README.md#samp-way-of-running-your-server-legacy-support we have explained it here, for more information to know why exactly they can't work with open.mp, send us a message on discord

Just leaving an answer here for now: This is totally expected, using memory hacking methods requires direct memory address access which is very specific to target application, that means even if SA:MP had a new version released you were facing the same issue, that's why there are different versions of FCNPC for 0.3.7 and 0.3DL, because it ONLY works on ONE specific version, we can't support them, they have to support open.mp by making it compatible with our server, by changing and updating their code