Error (server crashing)
#1

Dont know whats prb pls can someone help me with this?
Код:
[12:04:20] [debug] AMX backtrace:
[12:04:20] [debug] #0 00316510 in public JT_OnPlayerStateChange (0, 1, 2) from CODGGW.amx
[12:04:20] [debug] #1 0011e9dc in public WC_OnPlayerStateChange (0, 1, 2) from CODGGW.amx
[12:04:20] [debug] #2 0000a178 in public OnPlayerStateChange (0, 1, 2) from CODGGW.amx
[12:05:58] [debug] Run time error 4: "Array index out of bounds"
[12:05:58] [debug] AMX backtrace:
[12:05:58] [debug] #0 00316510 in public JT_OnPlayerStateChange (1, 1, 2) from CODGGW.amx
[12:05:58] [debug] #1 0011e9dc in public WC_OnPlayerStateChange (1, 1, 2) from CODGGW.amx
[12:05:58] [debug] #2 0000a178 in public OnPlayerStateChange (1, 1, 2) from CODGGW.amx
[12:06:05] [debug] Server crashed while executing CODGGW.amx
[12:06:05] [debug] AMX backtrace:
[12:06:05] [debug] #0 native SendClientMessage () from sampsvr-port_2164
[12:06:05] [debug] #1 001f3d20 in public WC_OnPlayerDamage (33764236, 33764240, 33764244, 33764248, 33764252) from CODGGW.amx
[12:06:05] [debug] #2 0001a588 in public OnPlayerDamage (33764236, 33764240, 33764244, 33764248, 33764252) from CODGGW.amx
[12:06:05] [debug] #3 000142f4 in ?? (1, 1129119744, 0, 34, 9, 0) from CODGGW.amx
[12:06:05] [debug] #4 0000c728 in public OnPlayerGiveDamage (0, 1, 1109721088, 34, 9) from CODGGW.amx
[12:06:05] [debug] Native backtrace:
[12:06:05] [debug] #0 f0e83180 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[12:06:05] [debug] #1 f0e7b064 in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () from plugins/crashdetect.so
[12:06:05] [debug] #2 f0e7bd64 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () from plugins/crashdetect.so
[12:06:05] [debug] #3 f0e7dcdb in _ZN11CrashDetect7OnCrashERKN2os7ContextE () from plugins/crashdetect.so
[12:06:05] [debug] #4 f0e824d5 in ?? () from plugins/crashdetect.so
[12:06:05] [debug] #5 f126d410 in __kernel_rt_sigreturn () from linux-gate.so.1
[12:06:05] [debug] #6 f0ef1508 in _IO_vfprintf () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[12:06:05] [debug] #7 f0f11782 in vsprintf () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[12:06:05] [debug] #8 080ad731 in ?? () from ./sampsvr-port_2164
[12:06:05] [debug] #9 080d9ab9 in ?? () from ./sampsvr-port_2164
[12:06:05] [debug] #10 080950e4 in ?? () from ./sampsvr-port_2164
[12:06:05] [debug] #11 f0e7cad3 in _ZN11CrashDetect17HandleAMXCallbackEiPiS0_ () from plugins/crashdetect.so
[12:06:05] [debug] #12 0000009d in ?? () from (G#�\E#�I	��I	��I	��I	?�I	��I	��#�
[12:06:05] [debug] Registers:
[12:06:05] [debug] EAX: 00000000 EBX: f1055000 ECX: ffffffff EDX: 646f6f47
[12:06:05] [debug] ESI: fee7db00 EDI: 646f6f47 EBP: fee7dad8 ESP: fee7d5c0
[12:06:05] [debug] EIP: f0ef1508 EFLAGS: 00010246
[12:06:05] [debug] Stack:
[12:06:05] [debug] ESP+00000000: fee7db00 fee7e130 00000047 00000000
[12:06:05] [debug] ESP+00000020: 00000000 00000005 00000034 f0f1fafc
[12:06:05] [debug] ESP+00000040: 00000000 00000005 00000038 f0f1fafc
[12:06:05] [debug] ESP+00000060: 00000000 00000005 00000000 00000000
[12:06:05] [debug] ESP+00000080: 00000000 ffffffff 00000000 00000000
[12:06:05] [debug] ESP+000000a0: 00205420 08cc5c38 fee7e134 f0f21bb1
[12:06:05] [debug] ESP+000000c0: fee7e177 00000000 08cc5c38 00000047
[12:06:05] [debug] ESP+000000e0: 00000000 00000014 00000020 08cba8a4
[12:06:05] [debug] ESP+00000100: fee7dd44 00000001 00000014 08cba8a4
[12:06:05] [debug] ESP+00000120: 00000000 00000014 00000020 08cba8a4
[12:06:05] [debug] ESP+00000140: 00000000 00000014 00000020 08cba8a4
[12:06:05] [debug] ESP+00000160: 6e4f203a 6c627550 61436369 00326c6c
[12:06:05] [debug] ESP+00000180: 00000000 00000005 00000038 00000000
[12:06:05] [debug] ESP+000001a0: f1287e5f fee7d794 fee7d7a0 08cc5c38
[12:06:05] [debug] ESP+000001c0: 00000000 00000000 00000000 f128f000
[12:06:05] [debug] ESP+000001e0: f1055420 00000003 fee7d838 f0f21bb1
[12:06:05] [debug] ESP+00000200: f0f21b67 f1237000 00000032 f11327e7
[12:06:05] [debug] ESP+00000220: f11327cc f1237000 09130d20 f11328a8
[12:06:05] [debug] ESP+00000240: 09130d20 00000003 fee7d838 0806ea16
[12:06:05] [debug] ESP+00000260: 6e4f203a 08cd252d 00000000 fee7d920
[12:06:05] [debug] ESP+00000280: 08cd1d44 fee7d931 0000018b 00000001
[12:06:05] [debug] ESP+000002a0: 00000000 00000000 0300d898 00000000
[12:06:05] [debug] ESP+000002c0: 08cd1d44 fee7d920 00000001 00000008
[12:06:05] [debug] ESP+000002e0: fee7d920 00000001 fee7da58 08071a91
[12:06:05] [debug] ESP+00000300: 00000003 ad2c3527 0000f539 00000000
[12:06:05] [debug] ESP+00000320: 08ccc2e8 00000088 fee7db3c fee7d90c
[12:06:05] [debug] ESP+00000340: fee7d8d0 03000d04 08cd1d44 00000000
[12:06:05] [debug] ESP+00000360: 0000018b 00000800 00000000 fee7d931
[12:06:05] [debug] ESP+00000380: eeed0ca4 a6860484 cd0c0406 4e0c44ee
[12:06:05] [debug] ESP+000003a0: 002084ae 020332c8 01ff33e8 ec0e0b30
[12:06:05] [debug] ESP+000003c0: ffffffff f128f000 f125930d 00000001
[12:06:05] [debug] ESP+000003e0: f0ea7ff4 08ccc2e8 00000088 f0e7e3da
[12:06:05] [debug] Loaded modules:
[12:06:05] [debug] 00000000 - 00187f43 sampsvr-port_2164
[12:06:05] [debug] f126f000 - f126f50c linux-gate.so.1
[12:06:05] [debug] f1258000 - f125a81b /lib/i386-linux-gnu/i686/cmov/libdl.so.2
[12:06:05] [debug] f123c000 - f1256d2b /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
[12:06:05] [debug] f10bc000 - f12454e8 /usr/lib/i386-linux-gnu/libstdc++.so.6
[12:06:05] [debug] f1076000 - f10bab43 /lib/i386-linux-gnu/i686/cmov/libm.so.6
[12:06:05] [debug] f1059000 - f10753c4 /lib/i386-linux-gnu/libgcc_s.so.1
[12:06:05] [debug] f0eac000 - f106122f /lib/i386-linux-gnu/i686/cmov/libc.so.6
[12:06:05] [debug] f126e000 - f128ed6c /lib/ld-linux.so.2
[12:06:05] [debug] f0e65000 - f0ea7ac4 plugins/crashdetect.so
[12:06:05] [debug] f125f000 - f12689d0 plugins/Whirlpool.so
[12:06:05] [debug] f0e5d000 - f0e62892 plugins/filemanager.so
[12:06:05] [debug] f0d32000 - f0e614f8 plugins/pawnraknet.so
[12:06:05] [debug] f09a1000 - f0d36eb2 plugins/mysqlR41.so
[12:06:05] [debug] f096f000 - f0992d32 /usr/lib/log-core.so
[12:06:05] [debug] f0966000 - f096d09f /lib/i386-linux-gnu/i686/cmov/librt.so.1
[12:06:05] [debug] f0959000 - f09643ef /lib/i386-linux-gnu/i686/cmov/libnss_files.so.2
[12:06:05] [debug] f0998000 - f099f795 plugins/rwthread.so
[12:06:05] [debug] ef63b000 - ef6ffbcf plugins/streamer.so
[12:06:05] [debug] f0949000 - f09581d4 plugins/sscanf.so
[12:06:05] [debug] f0925000 - f094804f plugins/SKY.so
[12:06:05] [debug] f0993000 - f099608c plugins/MapAndreas.so
[12:06:05] [debug] f0921000 - f0922f70 plugins/nativechecker.so
Reply
#2

Try removing the most recent code you added in OnPlayerStateChange, if it prevents, show the code here..


Or, try removing the parts of code, when the server starts fine, show the code that was causing the server to crash..
Reply
#3

Код:
[12:06:05] [debug] Server crashed while executing CODGGW.amx
[12:06:05] [debug] AMX backtrace:
[12:06:05] [debug] #0 native SendClientMessage () from sampsvr-port_2164
https://sampwiki.blast.hk/wiki/SendClientMessage
Quote:
Originally Posted by Important Notes
Avoid using the percent sign (or format specifiers) in the actual message text without properly escaping it (like %%). It will result in crashes otherwise.
Look in OnPlayerDamage for a line that calls SendClientMessage without format and using % sign or compile with debug info (-d3) to get the exact line which will also help you fix the run time error 4.
Reply
#4

thx man i was also having doubt on it thats why i removed that line and it was fixed but thanks for your help too.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)