server-beta icon indicating copy to clipboard operation
server-beta copied to clipboard

Server crash while executing FCNPC's adapted missions

Open NexiusTailer opened this issue 2 months ago • 1 comments

Describe the bug When I executed missions script (adapted FCNPC default sample, will be linked below) and tried to close the omp server window (i.e. tried to shut it down normally), it crashed before the exit.

To Reproduce Steps to reproduce the behavior:

  1. Download and compile this adapted missions.pwn script (.rec files here)
  2. Add any bare gamemode and crashdetect plugin, add missions filterscript into server config
  3. Launch the server and connect to it, spawn, then write in the chat /mission start
  4. You'll see an initial cutscene with some gametext title, now you can go to your server and turn it off
  5. It crashes with all logs and .dmp file provided

Screenshots and/or logs Server log file: log.txt .dmp file: omp_minidump.dmp

Release version Latest release build 1.5.8.3079

NexiusTailer avatar Dec 20 '25 12:12 NexiusTailer

Looks like it crashes even after you pass/leave the mission and try to turn down the server, another case is this: log.txt / omp_minidump.dmp

NexiusTailer avatar Dec 20 '25 13:12 NexiusTailer

I need you guys to test with latest nightly

AmyrAhmady avatar Jan 07 '26 19:01 AmyrAhmady

Still crashing on build from #1182

omp_minidump.dmp

[13:18:18] [Info] [debug] Server crashed due to an unknown error
[13:18:18] [Info] [debug] Native backtrace:
[13:18:18] [Info] [debug] #0 703c8a49 in ?? () in plugins\crashdetect.DLL
[13:18:18] [Info] [debug] #1 703d1210 in ?? () in plugins\crashdetect.DLL
[13:18:18] [Info] [debug] #2 70353484 in ?? () in plugins\streamer.DLL
[13:18:18] [Info] [debug] #3 7062c351 in ?? () in components\Pawn.dll
[13:18:18] [Info] [debug] #4 0005f7fa in ?? () in omp-server.exe
[13:18:18] [Info] [debug] #5 00049a26 in ?? () in omp-server.exe
[13:18:18] [Info] [debug] #6 70888f21 in ?? () in components\NPCs.dll
[13:18:18] [Info] [debug] #7 00044c62 in ?? () in omp-server.exe
[13:18:18] [Info] [debug] #8 70615edd in ?? () in components\Pawn.dll
[13:18:18] [Info] [debug] #9 7061782c in ?? () in components\Pawn.dll
[13:18:18] [Info] [debug] #10 70399c93 in ?? () in plugins\streamer.DLL
[13:18:18] [Info] [debug] #11 706454c4 in ?? () in components\Pawn.dll
[13:18:18] [Info] [debug] #12 0001eaea in ?? () in omp-server.exe
[13:18:18] [Info] [debug] #13 000196ca in ?? () in omp-server.exe
[13:18:18] [Info] [debug] #14 002e96a1 in ?? () in omp-server.exe
[13:18:18] [Info] [debug] #15 7628fcc9 in ?? () in C:\WINDOWS\System32\KERNEL32.DLL
[13:18:18] [Info] [debug] #16 774f82ae in ?? () in C:\WINDOWS\SYSTEM32\ntdll.dll
[13:18:18] [Info] [debug] #17 774f827e in ?? () in C:\WINDOWS\SYSTEM32\ntdll.dll
[13:18:18] [Info] [debug] Registers:
[13:18:18] [Info] [debug] EAX: 027b1410 EBX: 0012d1cc ECX: 00000000 EDX: 027b1410
[13:18:18] [Info] [debug] ESI: 00000000 EDI: 05610d2c EBP: 0075f0b0 ESP: 0075f090
[13:18:18] [Info] [debug] EIP: 703c8a49 EFLAGS: 00210212
[13:18:18] [Info] [debug] Stack:
[13:18:18] [Info] [debug] ESP+00000000: 039b2dc8 009a9cc0 00000008 00000041
[13:18:18] [Info] [debug] ESP+00000020: 0075f124 703d1210 039b2dc8 039b2dc8
[13:18:18] [Info] [debug] ESP+00000040: 0000000c 00000002 039b2dc8 039b2e38
[13:18:18] [Info] [debug] ESP+00000060: 05600020 703cd710 0000e6fc 001291e4
[13:18:18] [Info] [debug] ESP+00000080: 0012d1cc 703cd510 00000000 05602628
[13:18:18] [Info] [debug] ESP+000000a0: 0075f168 0000000c 00000041 039b2dc0
[13:18:18] [Info] [debug] ESP+000000c0: 0075f168 00000002 706333b5 0075f168
[13:18:18] [Info] [debug] ESP+000000e0: 001291e4 0075f164 0075f234 7063f200
[13:18:18] [Info] [debug] ESP+00000100: 0222c5d0 0005f7fa 0222c5d0 00000001
[13:18:18] [Info] [debug] ESP+00000120: 05f331ec 05f3320b 00000020 00000000
[13:18:18] [Info] [debug] ESP+00000140: 022180b8 0222c5d0 0313f518 0075f24c
[13:18:18] [Info] [debug] ESP+00000160: 7063f630 8d7fd1b5 030f1008 05c28034
[13:18:18] [Info] [debug] ESP+00000180: 00000125 0075f270 00b5c0d0 00000041
[13:18:18] [Info] [debug] ESP+000001a0: 0075f210 0075f2a8 7088c4f0 00000001
[13:18:18] [Info] [debug] ESP+000001c0: 70888f21 00000041 00000000 030f1010
[13:18:18] [Info] [debug] ESP+000001e0: 003e9000 70a4625c 1a85ec53 c4ceb9fe
[13:18:18] [Info] [debug] ESP+00000200: 00000019 00000020 00000000 0075f050
[13:18:18] [Info] [debug] ESP+00000220: 00000000 70a43525 02de6e24 0313f848
[13:18:18] [Info] [debug] ESP+00000240: 00000000 00000800 00000000 0075f2e1
[13:18:18] [Info] [debug] ESP+00000260: 76dc3c9b 00b00000 00000000 035dbe10
[13:18:18] [Info] [debug] ESP+00000280: 0075f31c 703f319d 035dbe10 0075f334
[13:18:18] [Info] [debug] ESP+000002a0: 027b2190 0075f344 703cdbcd 039b2dc8
[13:18:18] [Info] [debug] ESP+000002c0: 0075f368 035dd4d0 035dd408 0075f400
[13:18:18] [Info] [debug] ESP+000002e0: 039b2dc8 039b2f20 ffffd8bc 035dd408
[13:18:18] [Info] [debug] ESP+00000300: 00000000 00000002 0000004b 0222f7d0
[13:18:18] [Info] [debug] ESP+00000320: 1a85ec53 c4ceb9fe 05c27f50 05c28034
[13:18:18] [Info] [debug] ESP+00000340: 00000000 039aab20 0075f400 0075f368
[13:18:18] [Info] [debug] ESP+00000360: 0075f448 000c9140 ffffffff 035dd408
[13:18:18] [Info] [debug] ESP+00000380: 039aac38 00000000 00000000 00000000
[13:18:18] [Info] [debug] ESP+000003a0: 0075f3f4 039b2764 00000001 035dd470
[13:18:18] [Info] [debug] ESP+000003c0: 00000001 035dd408 035dd470 789548ac
[13:18:18] [Info] [debug] ESP+000003e0: 7986ada0 00000567 0075f4a0 70399c93
[13:18:18] [Info] [debug] Loaded modules:
[13:18:18] [Info] [debug] 00010000 - 003c9000 omp-server.exe
[13:18:18] [Info] [debug] 77490000 - 77634000 ntdll.dll
[13:18:18] [Info] [debug] 76270000 - 76360000 KERNEL32.DLL
[13:18:18] [Info] [debug] 77000000 - 77239000 KERNELBASE.dll
[13:18:18] [Info] [debug] 75550000 - 755b3000 WS2_32.dll
[13:18:18] [Info] [debug] 75490000 - 75549000 RPCRT4.dll
[13:18:18] [Info] [debug] 75a20000 - 75ffb000 SHELL32.dll
[13:18:18] [Info] [debug] 77340000 - 773bb000 msvcp_win.dll
[13:18:18] [Info] [debug] 76d90000 - 76eb0000 ucrtbase.dll
[13:18:18] [Info] [debug] 76490000 - 7662d000 USER32.dll
[13:18:18] [Info] [debug] 76ad0000 - 76ae8000 win32u.dll
[13:18:18] [Info] [debug] 76ec0000 - 76ee3000 GDI32.dll
[13:18:18] [Info] [debug] 753a0000 - 75487000 gdi32full.dll
[13:18:18] [Info] [debug] 77240000 - 7733f000 CRYPT32.dll
[13:18:18] [Info] [debug] 75920000 - 7599d000 ADVAPI32.dll
[13:18:18] [Info] [debug] 773c0000 - 7747f000 msvcrt.dll
[13:18:18] [Info] [debug] 76410000 - 76487000 sechost.dll
[13:18:18] [Info] [debug] 75380000 - 75399000 bcrypt.dll
[13:18:18] [Info] [debug] 70d20000 - 70d48000 WINMM.dll
[13:18:18] [Info] [debug] 71060000 - 710cd000 MSVCP140.dll
[13:18:18] [Info] [debug] 71330000 - 71345000 VCRUNTIME140.dll
[13:18:18] [Info] [debug] 759a0000 - 759c5000 IMM32.DLL
[13:18:18] [Info] [debug] 70c90000 - 70d14000 ebehmoni.dll
[13:18:18] [Info] [debug] 70c60000 - 70c83000 Actors.dll
[13:18:18] [Info] [debug] 70c40000 - 70c5c000 Checkpoints.dll
[13:18:18] [Info] [debug] 70c20000 - 70c3e000 Classes.dll
[13:18:18] [Info] [debug] 70bf0000 - 70c20000 Console.dll
[13:18:18] [Info] [debug] 70b60000 - 70bed000 CustomModels.dll
[13:18:18] [Info] [debug] 70a90000 - 70b58000 Databases.dll
[13:18:18] [Info] [debug] 70a70000 - 70a8d000 Dialogs.dll
[13:18:18] [Info] [debug] 70a40000 - 70a61000 GangZones.dll
[13:18:18] [Info] [debug] 709f0000 - 70a39000 LegacyConfig.dll
[13:18:18] [Info] [debug] 70940000 - 709ec000 LegacyNetwork.dll
[13:18:18] [Info] [debug] 70910000 - 70931000 Menus.dll
[13:18:18] [Info] [debug] 70840000 - 70902000 NPCs.dll
[13:18:18] [Info] [debug] 70800000 - 70832000 Objects.dll
[13:18:18] [Info] [debug] 70610000 - 707f1000 Pawn.dll
[13:18:18] [Info] [debug] 76360000 - 763a9000 SHLWAPI.dll
[13:18:18] [Info] [debug] 70570000 - 70607000 pawnraknet.dll
[13:18:18] [Info] [debug] 70550000 - 70570000 Pickups.dll
[13:18:18] [Info] [debug] 70500000 - 7054d000 Recordings.dll
[13:18:18] [Info] [debug] 704d0000 - 704f4000 TextDraws.dll
[13:18:18] [Info] [debug] 704a0000 - 704c3000 TextLabels.dll
[13:18:18] [Info] [debug] 70480000 - 70498000 Timers.dll
[13:18:18] [Info] [debug] 70460000 - 7047c000 Variables.dll
[13:18:18] [Info] [debug] 70420000 - 70451000 Vehicles.dll
[13:18:18] [Info] [debug] 74c90000 - 74c9f000 kernel.appcore.dll
[13:18:18] [Info] [debug] 703c0000 - 7041c000 crashdetect.DLL
[13:18:18] [Info] [debug] 70350000 - 703b7000 streamer.DLL
[13:18:18] [Info] [debug] 70340000 - 70346000 CRP.DLL
[13:18:18] [Info] [debug] 6da10000 - 6dab3000 MSVCR90.dll
[13:18:18] [Info] [debug] 71c00000 - 71c52000 mswsock.dll
[13:18:18] [Info] [debug] 70310000 - 70321000 napinsp.dll
[13:18:18] [Info] [debug] 702f0000 - 70306000 pnrpnsp.dll
[13:18:18] [Info] [debug] 702d0000 - 702e6000 wshbth.dll
[13:18:18] [Info] [debug] 702b0000 - 702c6000 NLAapi.dll
[13:18:18] [Info] [debug] 72350000 - 72382000 IPHLPAPI.DLL
[13:18:18] [Info] [debug] 6d6c0000 - 6d750000 DNSAPI.dll
[13:18:18] [Info] [debug] 75a10000 - 75a17000 NSI.dll
[13:18:18] [Info] [debug] 702a0000 - 702ae000 winrnr.dll
[13:18:18] [Info] [debug] 6bfe0000 - 6c038000 fwpuclnt.dll
[13:18:18] [Info] [debug] 6c040000 - 6c048000 rasadhlp.dll
[13:18:18] [Info] [debug] 71bf0000 - 71bfa000 CRYPTBASE.DLL
[13:18:18] [Info] [debug] 76d30000 - 76d8f000 bcryptPrimitives.dll

NexiusTailer avatar Jan 08 '26 10:01 NexiusTailer

I need a simple reproducible script instead of this so I can just run it without going in game

AmyrAhmady avatar Jan 08 '26 10:01 AmyrAhmady

I'm mainly asking this because your script does not compile properly for me, so many warnings even with SAMP_COMPAT, related to number of args not matching definition for our NPC functions, so I'm not sure whats going on

a simpler script that doesn't rely on so many other things would be better, rather than a fully featured game system

AmyrAhmady avatar Jan 08 '26 10:01 AmyrAhmady

Oh, I'm so sorry I forgot that my omp_npc.inc has been modified + had the changes from this PR applied.

Anyway, seems I found the current exact issue when I re-tested it again: the problem occurs exactly when your NPC script is loaded as a filterscript. When it's changed to be gamemode, everything is now ok when I type gmx

NexiusTailer avatar Jan 08 '26 11:01 NexiusTailer

Closing this issue in favor of #1167 and #1189 since this issue with exactly closing the server with connected NPC was fixed, but at the same time crashes when you type gmx and having any NPC connected are still happening even the fixes from #1190, the both #1167 and #1189 still not solved

NexiusTailer avatar Jan 18 '26 14:01 NexiusTailer