Help with ysi 5.x
#1

Код:
[debug] Run time error 4: "Array index out of bounds"
[debug]  Attempted to read/write array element at index 32 in array of size 32
[debug] AMX backtrace:
[debug] #0 00017178 in ?? (-711788, 0, 0, 17743084, 32, -877096) in GM.amx
[debug] #1 000176c0 in ?? (17740928, 0, 0, 17743084, -877096) in GM.amx
[debug] #2 0001965c in ?? (17740928, 17743084, 17740916, 17740912) in GM.amx
[debug] #3 00019b1c in ?? (17743084) in GM.amx
[debug] #4 0001aeb8 in ?? () in GM.amx
[debug] #5 0001b4c4 in public AMX_OnCodeInit () in GM.amx
[debug] #6 0000d758 in public Debug_OnCodeInit () in GM.amx
[debug] #7 0000d194 in public ScriptInit_OnCodeInit () in GM.amx
[debug] #8 0000c728 in public FIXES_OnGameModeInit () in GM.amx
[debug] #9 00003810 in public OnGameModeInit () in GM.amx
[debug] Run time error 4: "Array index out of bounds"
[debug]  Attempted to read/write array element at index 86771 in array of size 1
[debug] AMX backtrace:
[debug] #0 00026968 in ?? () in GM.amx
[debug] #1 00026424 in main () in GM.amx
Script[gamemodes/OP-D1.amx]: Run time error 4: "Array index out of bounds"
Number of vehicle models: 0
What should I do?

Код:
Pawn compiler 3.10.8	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          16064 bytes
Code size:          1082152 bytes
Data size:           704468 bytes
Stack/heap size:   17039360 bytes; estimated max. usage=3157 cells (12628 bytes)
Total requirements:18842044 bytes
Код:
SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[22:23:43] 
[22:23:43] Server Plugins
[22:23:43] --------------
[22:23:43]  Loading plugin: crashdetect
[22:23:44]   CrashDetect plugin 4.19.4
[22:23:44]   Loaded.
[22:23:44]  Loading plugin: streamer
[22:23:44] 

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

[22:23:44]   Loaded.
[22:23:44]  Loading plugin: sscanf
[22:23:44] 

[22:23:44]  ===============================

[22:23:44]       sscanf plugin loaded.     

[22:23:44]          Version:  2.8.2        

[22:23:44]    © 2012 Alex "******" Cole  

[22:23:44]  ===============================

[22:23:44]   Loaded.
[22:23:44]  Loading plugin: YSF
[22:23:44] 
[22:23:44]  ===============================
[22:23:44]         YSF - kurta999's version R20-RC4 loaded
[22:23:44]    © 2008 Alex "******" Cole - © 2010 - 2016 kurta999
[22:23:44]     Server version: 0.3.7 R2-1
[22:23:44]     Operating System: Windows
[22:23:44]     Built on: Dec 20 2018 at 16:56:06
[22:23:44]  ===============================
[22:23:44] 
[22:23:44]   Loaded.
[22:23:44]  Loading plugin: pawncmd
[22:23:44] Pawn.CMD plugin v3.2.0 by urShadow has been loaded
[22:23:44]   Loaded.
[22:23:44]  Loading plugin: pawnraknet
[22:23:44] Pawn.RakNet plugin v1.2.0 by urShadow loaded
[22:23:44]   Loaded.
[22:23:44]  Loading plugin: pawn-memory
[22:23:44] ========================
[22:23:44] = Memory access plugin =
[22:23:44] =       Made by BigETI =
[22:23:44] = Loaded!              =
[22:23:44] ========================
[22:23:44]   Loaded.
[22:23:44]  Loaded 7 plugins.

[22:23:44] 
[22:23:44] Ban list
[22:23:44] --------
[22:23:44]  Loaded: samp.ban
[22:23:44] 
[22:23:44] 
[22:23:44] Filterscripts
[22:23:44] ---------------
[22:23:44]   Loading filterscript 'MAP.amx'...
[22:23:44]   Loaded 1 filterscripts.

[22:23:44]   Filterscript '../scriptfiles/callbackfix.amx' loaded.
[22:23:44] [debug] Run time error 4: "Array index out of bounds"
[22:23:44] [debug]  Attempted to read/write array element at index 32 in array of size 32
[22:23:44] [debug] AMX backtrace:
[22:23:44] [debug] #0 0001c068 in CodeScanAddJumpTarget (cip=-882060, stk=0, hea=0, jumpTargets[CodeScanner:164]=@010ebcec, next=32, sip=-1080224) at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Data\y_foreach\..\..\YSI_Coding\y_hooks\..\y_cgen\..\..\YSI_Core\y_core\..\..\amx\codescan.inc:262
[22:23:44] [debug] #1 0001c6cc in CodeScanAddSwitchTarget (dctx[DisasmContext:22]=@010eb480, stk=0, hea=0, jumpTargets[CodeScanner:164]=@010ebcec, next=-1080224) at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Data\y_foreach\..\..\YSI_Coding\y_hooks\..\y_cgen\..\..\YSI_Core\y_core\..\..\amx\codescan.inc:294
[22:23:44] [debug] #2 0001ebb8 in bool:CodeScanStepInternal (dctx[DisasmContext:22]=@010eb480, csState[CodeScanner:164]=@010ebcec, &parseState=@010eb474 0, &parseParam=@010eb470 0) at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Data\y_foreach\..\..\YSI_Coding\y_hooks\..\y_cgen\..\..\YSI_Core\y_core\..\..\amx\codescan.inc:747
[22:23:44] [debug] #3 0001f104 in bool:CodeScanRun (csState[CodeScanner:164]=@010ebcec) at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Data\y_foreach\..\..\YSI_Coding\y_hooks\..\y_cgen\..\..\YSI_Core\y_core\..\..\amx\codescan.inc:817
[22:23:44] [debug] #4 00020780 in AddressofResolve () at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Data\y_foreach\..\..\YSI_Coding\y_hooks\..\y_cgen\..\..\YSI_Core\y_core\..\..\amx\addressof_jit.inc:130
[22:23:44] [debug] #5 00020e14 in public AMX_OnCodeInit () at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Data\y_foreach\..\..\YSI_Coding\y_hooks\..\y_cgen\..\..\YSI_Core\y_core\y_thirdpartyinclude.inc:379
[22:23:44] [debug] #6 000109e8 in public Debug_OnCodeInit () at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Data\y_foreach\..\..\YSI_Core\y_core\y_amx_impl.inc:206
[22:23:44] [debug] #7 0001033c in public ScriptInit_OnCodeInit () at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Data\y_foreach\..\..\YSI_Core\y_core\y_debug_impl.inc:659
[22:23:44] [debug] #8 0000f754 in public FIXES_OnGameModeInit ()  at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Data\y_foreach\..\..\YSI_Core\y_core\y_scriptinit_impl.inc:319
[22:23:44] [debug] #9 00004218 in public OnGameModeInit () at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\TER\fixes.inc:6015
[22:23:44] [debug] Run time error 4: "Array index out of bounds"
[22:23:44] [debug]  Attempted to read/write array element at index 86771 in array of size 1
[22:23:44] [debug] AMX backtrace:
[22:23:44] [debug] #0 0002e31c in Malloc_TrySetup () at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Storage\y_ini\..\..\YSI_Coding\y_inline\..\y_malloc\y_malloc_heapalloc.inc:226
[22:23:44] [debug] #1 0002dd14 in main () at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Storage\y_ini\..\..\YSI_Coding\y_inline\..\y_malloc\y_malloc_heapalloc.inc:78
[22:23:44] Script[gamemodes/GM.amx]: Run time error 4: "Array index out of bounds"
[22:23:44] Number of vehicle models: 0
I found solution

https://sampforum.blast.hk/showthread.php?pid=4080063#pid4080063

it's a problem with amx_assembly apparently.
Reply
#2

[debug] Attempted to read/write array element at index 32 in array of size 32

Compile your script with debug level 3
Put -d3 in your pawno/pawn.cfg and recompile the script, try to run it and it'll give you more details where it actually crash (line/callback or function)
Reply
#3

Quote:
Originally Posted by ConnorW
Посмотреть сообщение
[debug] Attempted to read/write array element at index 32 in array of size 32

Compile your script with debug level 3
Put -d3 in your pawno/pawn.cfg and recompile the script, try to run it and it'll give you more details where it actually crash (line/callback or function)
Код:
Pawn compiler 3.10.8	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          16064 bytes
Code size:          1082152 bytes
Data size:           704468 bytes
Stack/heap size:   17039360 bytes; estimated max. usage=3157 cells (12628 bytes)
Total requirements:18842044 bytes
Reply
#4

Quote:
Originally Posted by Alteh
Посмотреть сообщение
Код:
Pawn compiler 3.10.8	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          16064 bytes
Code size:          1082152 bytes
Data size:           704468 bytes
Stack/heap size:   17039360 bytes; estimated max. usage=3157 cells (12628 bytes)
Total requirements:18842044 bytes
run the server and post server logs
Reply
#5

Quote:
Originally Posted by ConnorW
Посмотреть сообщение
run the server and post server logs
Код:
SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[22:23:43] 
[22:23:43] Server Plugins
[22:23:43] --------------
[22:23:43]  Loading plugin: crashdetect
[22:23:44]   CrashDetect plugin 4.19.4
[22:23:44]   Loaded.
[22:23:44]  Loading plugin: streamer
[22:23:44] 

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

[22:23:44]   Loaded.
[22:23:44]  Loading plugin: sscanf
[22:23:44] 

[22:23:44]  ===============================

[22:23:44]       sscanf plugin loaded.     

[22:23:44]          Version:  2.8.2        

[22:23:44]    © 2012 Alex "******" Cole  

[22:23:44]  ===============================

[22:23:44]   Loaded.
[22:23:44]  Loading plugin: YSF
[22:23:44] 
[22:23:44]  ===============================
[22:23:44]         YSF - kurta999's version R20-RC4 loaded
[22:23:44]    © 2008 Alex "******" Cole - © 2010 - 2016 kurta999
[22:23:44]     Server version: 0.3.7 R2-1
[22:23:44]     Operating System: Windows
[22:23:44]     Built on: Dec 20 2018 at 16:56:06
[22:23:44]  ===============================
[22:23:44] 
[22:23:44]   Loaded.
[22:23:44]  Loading plugin: pawncmd
[22:23:44] Pawn.CMD plugin v3.2.0 by urShadow has been loaded
[22:23:44]   Loaded.
[22:23:44]  Loading plugin: pawnraknet
[22:23:44] Pawn.RakNet plugin v1.2.0 by urShadow loaded
[22:23:44]   Loaded.
[22:23:44]  Loading plugin: pawn-memory
[22:23:44] ========================
[22:23:44] = Memory access plugin =
[22:23:44] =       Made by BigETI =
[22:23:44] = Loaded!              =
[22:23:44] ========================
[22:23:44]   Loaded.
[22:23:44]  Loaded 7 plugins.

[22:23:44] 
[22:23:44] Ban list
[22:23:44] --------
[22:23:44]  Loaded: samp.ban
[22:23:44] 
[22:23:44] 
[22:23:44] Filterscripts
[22:23:44] ---------------
[22:23:44]   Loading filterscript 'MAP.amx'...
[22:23:44]   Loaded 1 filterscripts.

[22:23:44]   Filterscript '../scriptfiles/callbackfix.amx' loaded.
[22:23:44] [debug] Run time error 4: "Array index out of bounds"
[22:23:44] [debug]  Attempted to read/write array element at index 32 in array of size 32
[22:23:44] [debug] AMX backtrace:
[22:23:44] [debug] #0 0001c068 in CodeScanAddJumpTarget (cip=-882060, stk=0, hea=0, jumpTargets[CodeScanner:164]=@010ebcec, next=32, sip=-1080224) at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Data\y_foreach\..\..\YSI_Coding\y_hooks\..\y_cgen\..\..\YSI_Core\y_core\..\..\amx\codescan.inc:262
[22:23:44] [debug] #1 0001c6cc in CodeScanAddSwitchTarget (dctx[DisasmContext:22]=@010eb480, stk=0, hea=0, jumpTargets[CodeScanner:164]=@010ebcec, next=-1080224) at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Data\y_foreach\..\..\YSI_Coding\y_hooks\..\y_cgen\..\..\YSI_Core\y_core\..\..\amx\codescan.inc:294
[22:23:44] [debug] #2 0001ebb8 in bool:CodeScanStepInternal (dctx[DisasmContext:22]=@010eb480, csState[CodeScanner:164]=@010ebcec, &parseState=@010eb474 0, &parseParam=@010eb470 0) at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Data\y_foreach\..\..\YSI_Coding\y_hooks\..\y_cgen\..\..\YSI_Core\y_core\..\..\amx\codescan.inc:747
[22:23:44] [debug] #3 0001f104 in bool:CodeScanRun (csState[CodeScanner:164]=@010ebcec) at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Data\y_foreach\..\..\YSI_Coding\y_hooks\..\y_cgen\..\..\YSI_Core\y_core\..\..\amx\codescan.inc:817
[22:23:44] [debug] #4 00020780 in AddressofResolve () at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Data\y_foreach\..\..\YSI_Coding\y_hooks\..\y_cgen\..\..\YSI_Core\y_core\..\..\amx\addressof_jit.inc:130
[22:23:44] [debug] #5 00020e14 in public AMX_OnCodeInit () at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Data\y_foreach\..\..\YSI_Coding\y_hooks\..\y_cgen\..\..\YSI_Core\y_core\y_thirdpartyinclude.inc:379
[22:23:44] [debug] #6 000109e8 in public Debug_OnCodeInit () at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Data\y_foreach\..\..\YSI_Core\y_core\y_amx_impl.inc:206
[22:23:44] [debug] #7 0001033c in public ScriptInit_OnCodeInit () at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Data\y_foreach\..\..\YSI_Core\y_core\y_debug_impl.inc:659
[22:23:44] [debug] #8 0000f754 in public FIXES_OnGameModeInit ()  at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Data\y_foreach\..\..\YSI_Core\y_core\y_scriptinit_impl.inc:319
[22:23:44] [debug] #9 00004218 in public OnGameModeInit () at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\TER\fixes.inc:6015
[22:23:44] [debug] Run time error 4: "Array index out of bounds"
[22:23:44] [debug]  Attempted to read/write array element at index 86771 in array of size 1
[22:23:44] [debug] AMX backtrace:
[22:23:44] [debug] #0 0002e31c in Malloc_TrySetup () at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Storage\y_ini\..\..\YSI_Coding\y_inline\..\y_malloc\y_malloc_heapalloc.inc:226
[22:23:44] [debug] #1 0002dd14 in main () at C:\Users\Usuario\Documents\GTA San Andreas User Files\GameMode\Local\pawno\include\YSI\YSI_Storage\y_ini\..\..\YSI_Coding\y_inline\..\y_malloc\y_malloc_heapalloc.inc:78
[22:23:44] Script[gamemodes/GM.amx]: Run time error 4: "Array index out of bounds"
[22:23:44] Number of vehicle models: 0
Reply
#6

I found solution

https://sampforum.blast.hk/showthread.php?pid=4080063#pid4080063

it's a problem with amx_assembly apparently.
Reply
#7

https://github.com/pawn-lang/YSI-Includes/issues/358
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)