openmultiplayer / open.mp

Open Multiplayer, a multiplayer mod fully backwards compatible with SA-MP
https://open.mp
Mozilla Public License 2.0
451 stars 90 forks source link

open.mp server crashes if newer Pawn libs installed in the system #632

Closed NexiusTailer closed 1 year ago

NexiusTailer commented 1 year ago

Seems like open.mp server uses some of the Pawn 4 .dll's installed in the system from here. Crashes started occuring right after I installed Pawn 4 on my Windows 10 somewhere in Program Files (so that the path of its installation is obviously different and I don't have any of those .dll's in my omp server folder, it's just installed but omp server finds it somehow, probably).

This is when I try to start my test omp server:

Starting open.mp server (1.0.1.2409) from commit dcd0190a91e67c99217e8ed3254baeb86733a0e4
Loading component Actors.dll
    Successfully loaded component Actors (1.0.1.2409) with UID c81ca021eae2ad5c
Loading component Checkpoints.dll
    Successfully loaded component Checkpoints (1.0.1.2409) with UID 44a937350d611dde
Loading component Classes.dll
    Successfully loaded component Classes (1.0.1.2409) with UID 8cfb3183976da208
Loading component Console.dll
    Successfully loaded component Console (1.0.1.2409) with UID bfa24e49d0c95ee4
Loading component CustomModels.dll
    Successfully loaded component CustomModels (1.0.1.2409) with UID 15e3cb1e7c77ffff
Loading component Databases.dll
    Successfully loaded component Databases (1.0.1.2409) with UID 80092e7eb5821a96
Loading component Dialogs.dll
    Successfully loaded component Dialogs (1.0.1.2409) with UID 44a111350d611dde
Loading component Fixes.dll
    Successfully loaded component Fixes (1.0.1.2409) with UID b5c615eff0329ff7
Loading component GangZones.dll
    Successfully loaded component GangZones (1.0.1.2409) with UID b3351d11ee8d8056
Loading component LegacyConfig.dll
    Successfully loaded component LegacyConfig (1.0.1.2409) with UID 24ef6216838f9ffc
Loading component LegacyNetwork.dll
    Successfully loaded component RakNetLegacyNetwork (1.0.1.2409) with UID ea9799fd79cf8442
Loading component Menus.dll
    Successfully loaded component Menus (1.0.1.2409) with UID 621e219eb97ee0b2
Loading component Objects.dll
    Successfully loaded component Objects (1.0.1.2409) with UID 59f8415f72da6160
Loading component Pawn.dll
    Successfully loaded component Pawn (1.0.1.2409) with UID 78906cd9f19c36a6
Loading component Pickups.dll
    Successfully loaded component Pickups (1.0.1.2409) with UID cf304faa363dd971
Loading component TextDraws.dll
    Successfully loaded component TextDraws (1.0.1.2409) with UID 9b5dc2b1d15c992a
Loading component TextLabels.dll
    Successfully loaded component TextLabels (1.0.1.2409) with UID a0c57ea80a009742
Loading component Timers.dll
    Successfully loaded component Timers (1.0.1.2409) with UID 2ad8124c5ea257a3
Loading component Unicode.dll
    Successfully loaded component Unicode (1.0.1.2409) with UID 8ffb446f8353922b
Loading component Variables.dll
    Successfully loaded component Variables (1.0.1.2409) with UID 75e121848bc01fa2
Loading component Vehicles.dll
    Successfully loaded component Vehicles (1.0.1.2409) with UID 3f1f62ee9e22ab19
Loading component pawnraknet.dll
    Successfully loaded component Pawn.RakNet (0.1.6.0) with UID 4a8b15c16d23e42f
Loaded 22 component(s) from F:\Моя флешка\НЕ ТРОГАТЬ\components
Executing Server Config...
[19:10:28] [Info] [Pawn.RakNet] plugin v1.6.0 loading...
[19:10:28] [Info] [Pawn.RakNet] 

    | Pawn.RakNet 1.6.0 | open.mp | 2016 - 2023
    |--------------------------------------------
    | Author and maintainer: katursis

    | Compiled: Feb 12 2023 at 16:51:14
    |--------------------------------------------------------------
    | Repository: https://github.com/katursis/Pawn.RakNet/tree/omp
    |--------------------------------------------------------------
    | Wiki: https://github.com/katursis/Pawn.RakNet/wiki

[19:10:28] [Info] Loading plugin: crashdetect
[19:10:28] [Info]   CrashDetect plugin 4.21
[19:10:28] [Info] Loading plugin: streamer
[19:10:28] [Info] 

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

[19:10:28] [Warning] Tried to register native which is already registered: strdel
[19:10:28] [Warning] Tried to register native which is already registered: strfind
[19:10:28] [Warning] Tried to register native which is already registered: strcmp
[19:10:28] [Warning] Tried to register native which is already registered: strlen
[19:10:28] [Warning] Tried to register native which is already registered: strval
[19:10:28] [Warning] Tried to register native which is already registered: float
[19:10:28] [Warning] Tried to register native which is already registered: floatmul
[19:10:28] [Warning] Tried to register native which is already registered: floatdiv
[19:10:28] [Warning] Tried to register native which is already registered: floatadd
[19:10:28] [Warning] Tried to register native which is already registered: floatcmp
[19:10:28] [Warning] Tried to register native which is already registered: floatround
[19:10:28] [Warning] Tried to register native which is already registered: floatsub
[19:10:28] [Warning] Tried to register native which is already registered: floatdiv
[19:10:28] [Warning] Tried to register native which is already registered: floatmul
[19:10:28] [Warning] Tried to register native which is already registered: floatabs
[19:10:28] [Warning] Tried to register native which is already registered: floatadd
[19:10:28] [Warning] Tried to register native which is already registered: float
[19:10:28] [Info] [debug] Server crashed while executing nex-test.amx
[19:10:28] [Info] [debug] AMX backtrace:
[19:10:28] [Info] [debug] #0 native strfind () in amxString.dll
[19:10:28] [Info] [debug] #1 0000cdd8 in public PawnRakNet_OnGameModeInit () in nex-test.amx
[19:10:28] [Info] [debug] #2 00003114 in public OnGameModeInit () in nex-test.amx
[19:10:28] [Info] [debug] Native backtrace:
[19:10:28] [Info] [debug] #0 06452299 in ?? () in C:\Program Files (x86)\Pawn\bin\amxString.dll
[19:10:28] [Info] [debug] #1 06451570 in ?? () in C:\Program Files (x86)\Pawn\bin\amxString.dll
[19:10:28] [Info] [debug] #2 7168a12c in ?? () in components\Pawn.dll
[19:10:28] [Info] [debug] #3 6f850e9e in ?? () in plugins\crashdetect.DLL
[19:10:28] [Info] [debug] #4 6f857d02 in ?? () in plugins\crashdetect.DLL
[19:10:28] [Info] [debug] #5 6f8489f5 in ?? () in plugins\crashdetect.DLL
[19:10:28] [Info] [debug] #6 6f850f0c in ?? () in plugins\crashdetect.DLL
[19:10:28] [Info] [debug] #7 6f68f428 in ?? () in plugins\streamer.DLL
[19:10:28] [Info] [debug] #8 7162aaf1 in ?? () in components\Pawn.dll
[19:10:28] [Info] [debug] #9 71619fcf in ?? () in components\Pawn.dll
[19:10:28] [Info] [debug] #10 71622813 in ?? () in components\Pawn.dll
[19:10:28] [Info] [debug] #11 71617378 in ?? () in components\Pawn.dll
[19:10:28] [Info] [debug] #12 71619b7f in ?? () in components\Pawn.dll
[19:10:28] [Info] [debug] #13 7163f5f3 in ?? () in components\Pawn.dll
[19:10:28] [Info] [debug] #14 0082e22b in ?? () in omp-server.exe
[19:10:28] [Info] [debug] #15 00828ca1 in ?? () in omp-server.exe
[19:10:28] [Info] [debug] #16 00a4aa70 in ?? () in omp-server.exe
[19:10:28] [Info] [debug] #17 778000f9 in ?? () in C:\WINDOWS\System32\KERNEL32.DLL
[19:10:28] [Info] [debug] #18 77af7bbe in ?? () in C:\WINDOWS\SYSTEM32\ntdll.dll
[19:10:28] [Info] [debug] #19 77af7b8e in ?? () in C:\WINDOWS\SYSTEM32\ntdll.dll
[19:10:28] [Info] [debug] Registers:
[19:10:29] [Info] [debug] EAX: 012ff278 EBX: 0011684c ECX: 0645154f EDX: 062ca600
[19:10:29] [Info] [debug] ESI: 012ff278 EDI: 00116894 EBP: 012ff268 ESP: 012ff260
[19:10:29] [Info] [debug] EIP: 06452299 EFLAGS: 00210202
[19:10:29] [Info] [debug] Stack:
[19:10:29] [Info] [debug] ESP+00000000: 012ff44c 06433cf4 012ff294 06451570
[19:10:29] [Info] [debug] ESP+00000020: 6f84a0e9 0011684c 0347f210 012ff44c
[19:10:29] [Info] [debug] ESP+00000040: 06433cf4 0347f210 0000000c 6f848721
[19:10:29] [Info] [debug] ESP+00000060: c7d6eec2 062d9358 0347f210 00124d44
[19:10:29] [Info] [debug] ESP+00000080: 0000cdd8 0000000c 01430000 00000020
[19:10:29] [Info] [debug] ESP+000000a0: 77ad634f 0000004d 00000020 00000020
[19:10:29] [Info] [debug] ESP+000000c0: 77ad634f 00000067 00000020 00000000
[19:10:29] [Info] [debug] ESP+000000e0: 013a01d4 03c61850 04577200 00000020
[19:10:29] [Info] [debug] ESP+00000100: 00000005 045abcb0 03482808 00000000
[19:10:29] [Info] [debug] ESP+00000120: 00000004 013a0000 013a01c8 00000000
[19:10:29] [Info] [debug] ESP+00000140: 0446bd98 012ff44c 00000000 77ad5eae
[19:10:29] [Info] [debug] ESP+00000160: 0000004a c7d6eec2 012ff5fc 6f886539
[19:10:29] [Info] [debug] ESP+00000180: 012ff44c 06433cf4 012ff458 6f857d02
[19:10:29] [Info] [debug] ESP+000001a0: 0446bd98 00000002 0347f210 6f832130
[19:10:29] [Info] [debug] ESP+000001c0: 6f8332d8 012ff430 00000000 6f832cca
[19:10:29] [Info] [debug] ESP+000001e0: 00124d5c 00124d48 062d9358 00000012
[19:10:29] [Info] [debug] ESP+00000200: 0347f210 012ff538 00000002 00000002
[19:10:29] [Info] [debug] ESP+00000220: 012ff4bc 012ff504 0347b798 0347b728
[19:10:29] [Info] [debug] ESP+00000240: 00000000 00000002 6f696391 00000000
[19:10:29] [Info] [debug] ESP+00000260: 6f850f0c 012ff538 00000002 0347f210
[19:10:29] [Info] [debug] ESP+00000280: 00000002 01446e70 00000002 0314a2d0
[19:10:29] [Info] [debug] ESP+000002a0: 00000002 71619fcf 012ff538 00000002
[19:10:29] [Info] [debug] ESP+000002c0: 0347f2d8 0314a37c 0314a37c 00000000
[19:10:29] [Info] [debug] ESP+000002e0: 0314a210 0347f208 00000004 012ff614
[19:10:29] [Info] [debug] ESP+00000300: 012ff540 01431d00 00000000 013a0000
[19:10:29] [Info] [debug] ESP+00000320: 013a0100 00000028 00000018 00000004
[19:10:29] [Info] [debug] ESP+00000340: 0000000f 0347f210 0347f208 01430000
[19:10:29] [Info] [debug] ESP+00000360: 00000002 01430000 013a0e40 00000000
[19:10:29] [Info] [debug] ESP+00000380: 0000000f 786d612e 7162b101 0314a210
[19:10:29] [Info] [debug] ESP+000003a0: 71623510 00000000 04584908 00000008
[19:10:29] [Info] [debug] ESP+000003c0: 00000001 0314a34c 00000008 00000001
[19:10:29] [Info] [debug] ESP+000003e0: 74736574 00000000 0087545a 00000012
[19:10:29] [Info] [debug] Loaded modules:
[19:10:29] [Info] [debug] 00820000 - 00afb000 omp-server.exe
[19:10:29] [Info] [debug] 77a90000 - 77c34000 ntdll.dll
[19:10:29] [Info] [debug] 777e0000 - 778d0000 KERNEL32.DLL
[19:10:29] [Info] [debug] 772e0000 - 774fc000 KERNELBASE.dll
[19:10:29] [Info] [debug] 75a00000 - 75a63000 WS2_32.dll
[19:10:29] [Info] [debug] 75d80000 - 75e3e000 RPCRT4.dll
[19:10:29] [Info] [debug] 75e40000 - 763f7000 SHELL32.dll
[19:10:29] [Info] [debug] 766c0000 - 7673b000 msvcp_win.dll
[19:10:29] [Info] [debug] 75b10000 - 75c30000 ucrtbase.dll
[19:10:29] [Info] [debug] 76930000 - 76acd000 USER32.dll
[19:10:29] [Info] [debug] 76ad0000 - 76ae8000 win32u.dll
[19:10:29] [Info] [debug] 77140000 - 77163000 GDI32.dll
[19:10:29] [Info] [debug] 77200000 - 772e0000 gdi32full.dll
[19:10:29] [Info] [debug] 76b00000 - 76bfa000 CRYPT32.dll
[19:10:29] [Info] [debug] 75cf0000 - 75d6b000 ADVAPI32.dll
[19:10:29] [Info] [debug] 778d0000 - 7798f000 msvcrt.dll
[19:10:29] [Info] [debug] 75980000 - 759f6000 sechost.dll
[19:10:29] [Info] [debug] 76c00000 - 76c19000 bcrypt.dll
[19:10:29] [Info] [debug] 74ba0000 - 74bc8000 WINMM.dll
[19:10:29] [Info] [debug] 74c00000 - 74c6d000 MSVCP140.dll
[19:10:29] [Info] [debug] 74be0000 - 74bf5000 VCRUNTIME140.dll
[19:10:29] [Info] [debug] 75950000 - 75976000 IMM32.DLL
[19:10:29] [Info] [debug] 74b70000 - 74b92000 Actors.dll
[19:10:29] [Info] [debug] 74b50000 - 74b6c000 Checkpoints.dll
[19:10:29] [Info] [debug] 74ab0000 - 74acf000 Classes.dll
[19:10:29] [Info] [debug] 747b0000 - 747eb000 Console.dll
[19:10:29] [Info] [debug] 74740000 - 747ac000 CustomModels.dll
[19:10:29] [Info] [debug] 74670000 - 74737000 Databases.dll
[19:10:29] [Info] [debug] 74650000 - 7466d000 Dialogs.dll
[19:10:29] [Info] [debug] 74630000 - 7464f000 Fixes.dll
[19:10:29] [Info] [debug] 74600000 - 74621000 GangZones.dll
[19:10:29] [Info] [debug] 745d0000 - 745f5000 LegacyConfig.dll
[19:10:29] [Info] [debug] 74520000 - 745cd000 LegacyNetwork.dll
[19:10:29] [Info] [debug] 744f0000 - 74511000 Menus.dll
[19:10:29] [Info] [debug] 744b0000 - 744e2000 Objects.dll
[19:10:29] [Info] [debug] 71610000 - 71798000 Pawn.dll
[19:10:29] [Info] [debug] 77790000 - 777d5000 SHLWAPI.dll
[19:10:29] [Info] [debug] 74490000 - 744b0000 Pickups.dll
[19:10:29] [Info] [debug] 74460000 - 74485000 TextDraws.dll
[19:10:29] [Info] [debug] 74430000 - 74454000 TextLabels.dll
[19:10:29] [Info] [debug] 74410000 - 74429000 Timers.dll
[19:10:29] [Info] [debug] 6f960000 - 7160c000 Unicode.dll
[19:10:29] [Info] [debug] 743f0000 - 7440d000 Variables.dll
[19:10:29] [Info] [debug] 743c0000 - 743ef000 Vehicles.dll
[19:10:29] [Info] [debug] 6f8c0000 - 6f957000 pawnraknet.dll
[19:10:29] [Info] [debug] 752f0000 - 752ff000 kernel.appcore.dll
[19:10:29] [Info] [debug] 6f830000 - 6f8b9000 crashdetect.DLL
[19:10:29] [Info] [debug] 6f7b0000 - 6f821000 MSVCP120.dll
[19:10:29] [Info] [debug] 6f6c0000 - 6f7ae000 MSVCR120.dll
[19:10:29] [Info] [debug] 6f650000 - 6f6b6000 streamer.DLL
[19:10:29] [Info] [debug] 00400000 - 00411000 amxFloat.dll
[19:10:29] [Info] [debug] 06450000 - 06460000 amxString.dll
[19:10:29] [Info] [debug] 76820000 - 7687f000 bcryptPrimitives.dll

omp_minidump.zip

Worth noticing there's no anything like that with samp server tho.

When testing with a bare script, crash doesn't occur, but still these warnings appear in the console: image

ksenonadv commented 1 year ago

It's not a bug, it's a feature. (#pragma library) Because you have those DLLs in PATH the server will load them.

NexiusTailer commented 1 year ago

Pretty weird feature just because it's not the case where it gives more opportunities than possible troubles like this, considering open.mp doesn't use the latest pawn as a whole working component, for me it is questionable. Anyway, this is obviously not a common problem so I think a possible issue not so critical, but still an issue for a regular user who didn't make it in PATH manually but just installed from the official installer and then cannot use omp server without additional steps to bypass it.