Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.IndexOutOfRangeException: Index was outside the bounds of the array #305

Open
jokerart06 opened this issue Jun 26, 2024 · 0 comments
Labels
area:libcpp2il bug Something isn't working

Comments

@jokerart06
Copy link

Hi. My friend . im trying to use your tool with this xapk but it got me error. can you take a look what causing this ? thank you

===Cpp2IL by Samboy063===
A Tool to Reverse Unity's "il2cpp" Build Process.

[Info] [Program] Running on Win32NT
[Info] [XAPK] Attempting to extract required files from XAPK D:\update\com.pixelcubestudios.endlessidlecookietowerdefencetd\Cookies+TD+-+Idle+Tower+Defens_105_apkcombo.com.xapk
[Info] [XAPK] Identified APKs inside XAPK - config: config.arm64_v8a.apk, mainPackage: com.pixelcubestudios.endlessidlecookietowerdefencetd.apk
[Info] [XAPK] Extracting XAPK/config.arm64_v8a.apk/lib/arm64-v8a/libil2cpp.so to C:\Users\M\AppData\Local\Temp\tmp306C.tmp
[Info] [XAPK] Extracting XAPKcom.pixelcubestudios.endlessidlecookietowerdefencetd.apk/assets/bin/Data/Managed/Metadata/global-metadata.dat to C:\Users\MARC\AppData\Local\Temp\tmp306D.tmp
[Info] [XAPK] Reading data.unity3d to determine unity version...
[Info] [XAPK] Determined game's unity version to be 2020.3.48
[Info] [Library] Initializing Metadata...
[Info] [Library] Using actual IL2CPP Metadata version 27.1
[Info] [Library] Initialized Metadata in 396ms
[Info] [Library] Searching Binary for Required Data...
[Info] [Library] Got Binary codereg: 0x1A16240, metareg: 0x1A17428 in 1054ms.
[Info] [Library] Initializing Binary...
[Fail] [Program]

Cpp2IL.Core.Exceptions.LibCpp2ILInitializationException: Fatal Exception initializing LibCpp2IL! ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
at LibCpp2IL.LibCpp2ILUtils.GetTypeReflectionData(Il2CppType forWhat) in /home/runner/work/Cpp2IL/Cpp2IL/LibCpp2IL/LibCpp2IlUtils.cs:line 253
at LibCpp2IL.LibCpp2ILUtils.GetGenericTypeParams(Il2CppGenericInst genericInst) in /home/runner/work/Cpp2IL/Cpp2IL/LibCpp2IL/LibCpp2IlUtils.cs:line 106
at LibCpp2IL.Il2CppGenericMethodRef..ctor(Il2CppMethodSpec methodSpec) in /home/runner/work/Cpp2IL/Cpp2IL/LibCpp2IL/Il2CppGenericMethodRef.cs:line 22
at LibCpp2IL.Il2CppBinary.GetGenericMethodFromIndex(Int32 genericMethodIndex, Int32 genericMethodPointerIndex, Il2CppGenericMethodRef& genericMethodRef) in /home/runner/work/Cpp2IL/Cpp2IL/LibCpp2IL/Il2CppBinary.cs:line 216
at LibCpp2IL.Il2CppBinary.Init(UInt64 pCodeRegistration, UInt64 pMetadataRegistration) in /home/runner/work/Cpp2IL/Cpp2IL/LibCpp2IL/Il2CppBinary.cs:line 201
at LibCpp2IL.LibCpp2IlMain.Initialize(Byte[] binaryBytes, Byte[] metadataBytes, Int32[] unityVersion) in /home/runner/work/Cpp2IL/Cpp2IL/LibCpp2IL/LibCpp2IlMain.cs:line 204
at Cpp2IL.Core.Cpp2IlApi.InitializeLibCpp2Il(String assemblyPath, String metadataPath, Int32[] unityVersion, Boolean allowUserToInputAddresses) in /home/runner/work/Cpp2IL/Cpp2IL/Cpp2IL.Core/Cpp2IlApi.cs:line 176
--- End of inner exception stack trace ---
at Cpp2IL.Core.Cpp2IlApi.InitializeLibCpp2Il(String assemblyPath, String metadataPath, Int32[] unityVersion, Boolean allowUserToInputAddresses) in /home/runner/work/Cpp2IL/Cpp2IL/Cpp2IL.Core/Cpp2IlApi.cs:line 190
at Cpp2IL.Program.MainWithArgs(Cpp2IlRuntimeArgs runtimeArgs) in /home/runner/work/Cpp2IL/Cpp2IL/Cpp2IL/Program.cs:line 442
at Cpp2IL.Program.Main(String[] args) in /home/runner/work/Cpp2IL/Cpp2IL/Cpp2IL/Program.cs:line 386

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:libcpp2il bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants