NexiusTailer / Nex-AC

Anticheat system
https://pawn.wiki/index.php?/topic/27641-nex-ac/
GNU Lesser General Public License v3.0
212 stars 156 forks source link

Server crashed: Attempted to read/write array element at negative index -1 on OnIncomingRPC #304

Closed alansyahdwi closed 7 months ago

alansyahdwi commented 7 months ago

Any idea what happened here? The server suddenly crashed because the OnIncomingRPC playerid is returning -1.

Nex-AC version: v1.9.62 Pawn.RakNet: v1.6.0 omp version: v1.1.0.2660


[2024-01-10T22:08:49+0700] [Info] [debug]  Attempted to read/write array element at negative index -1
[2024-01-10T22:08:49+0700] [Info] [debug] AMX backtrace:
[2024-01-10T22:08:49+0700] [Info] [debug] #0 00093eb0 in public OnIncomingRPC (playerid=-1, rpcid=155, BitStream:bs=20311824) at C:\Users\USER\Documents\GitHub\society-rp\qawno\include\nex-ac.inc:8578
[2024-01-10T22:08:49+0700] [Info] [Pawn.RakNet] Array index out of bounds in public OnIncomingRPC(-1, 155, 0135EF10) - please note that the AMX error is not related with the plugin, but your script
[2024-01-10T22:08:49+0700] [Info] [debug] Server crashed due to an unknown error
[2024-01-10T22:08:50+0700] [Info] [debug] Registers:
[2024-01-10T22:08:50+0700] [Info] [debug] EAX: 00f21a74 EBX: 0204c928 ECX: 0204c928 EDX: 02382e6c
[2024-01-10T22:08:50+0700] [Info] [debug] ESI: 0135eeec EDI: 0135ed90 EBP: 0135eec8 ESP: 0135ed8c
[2024-01-10T22:08:50+0700] [Info] [debug] EIP: 00000000 EFLAGS: 00210202
[2024-01-10T22:08:50+0700] [Info] [debug] Stack:
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+00000000: 00d21f01 000005f0 00000800 00000000
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+00000020: 00000b00 00002600 00000800 ff000000
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+00000040: ff000000 110000ff 00000c00 00002a00
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+00000060: 00008600 00000700 bc000000 0d000000
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+00000080: 09000000 00000300 00005f00 02001300
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+000000a0: 03000400 ff000000 12ffffff 00000a00
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+000000c0: 00000300 00003500 04000100 36000000
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+000000e0: 0135ef10 0204c928 70b3de31 0693aef5
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+00000100: 00000000 546c6148 7ffe5000 ffffffff
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+00000120: 0135ed90 0135f038 00da02e0 00000000
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+00000140: 00d21e5e 0135eeec 0204c928 3881699b
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+00000160: 0217ca10 0452c024 0135ef10 02253830
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+00000180: 0135ef10 00000000 00000800 00000000
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+000001a0: 703a9e4a 027e6a94 2501e330 050315a0
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+000001c0: 02d47568 00000000 00000002 02d47568
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+000001e0: 703a88e3 027e6a7c 2501ef2c 050315a0
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+00000200: 00000c04 00000007 0135f094 02b1b179
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+00000220: 01735708 6fcb0000 00000000 02b1b179
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+00000240: 6fcc34ff 00000009 0238a258 703a8bc9
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+00000260: 7ffe5000 0135f0a0 77265fb7 0135f054
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+00000280: 0135f084 00000000 00000001 00000004
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+000002a0: 016850e0 016850e8 0135ef10 0135f2e0
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+000002c0: 331f28b0 0135f304 70bc3ec1 0135f080
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+000002e0: 0227ece0 703ad6ed 00000000 01350000
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+00000300: 000099ce 01350015 0227e4cc 0135f1bc
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+00000320: 00000020 00000018 249646f0 05031500
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+00000340: 703f6000 25016020 703ad710 00000000
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+00000360: 00000001 00000000 02d47568 00000000
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+00000380: 0135f168 703a8bc9 703a8bd3 0000028b
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+000003a0: 38817620 02b1d908 0135f32c 70afd71a
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+000003c0: 00000000 0000028b 55515a18 55515a1c
[2024-01-10T22:08:50+0700] [Info] [debug] ESP+000003e0: 0135f17c 0135f198 70333491 70388620
NexiusTailer commented 7 months ago

Looks like an omp server related issue with Pawn.RakNet plugin. It doesn't call any such callback with playerid as -1 under samp server.