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

[Bug]: Android IL2Cpp Error #75

Closed
ds5678 opened this issue Sep 3, 2021 · 4 comments
Closed

[Bug]: Android IL2Cpp Error #75

ds5678 opened this issue Sep 3, 2021 · 4 comments
Labels
bug Something isn't working enhancement New feature or request import Related to the importing of asset files

Comments

@ds5678
Copy link
Collaborator

ds5678 commented Sep 3, 2021

Describe the issue

This issue is most common on IL2Cpp Android games, but can occur on other platforms too. It has a signature stack trace:

General [Error] : Cpp2IL.Core.Exceptions.LibCpp2ILInitializationException: Fatal Exception initializing LibCpp2IL!
 ---> System.Exception: Pre-24.2 support for non-ARM ELF lookup is not yet implemented.
   at LibCpp2IL.Elf.ElfFile.FindCodeAndMetadataRegDefaultBehavior() in LibCpp2IL.dll:token 0x600016b+0xee
   at LibCpp2IL.Elf.ElfFile.FindCodeAndMetadataReg() in LibCpp2IL.dll:token 0x6000169+0xaf
   at LibCpp2IL.LibCpp2IlMain.Initialize(Byte[] binaryBytes, Byte[] metadataBytes, Int32[] unityVersion) in LibCpp2IL.dll:token 0x600007d+0x11d
   at LibCpp2IL.LibCpp2IlMain.LoadFromFile(String pePath, String metadataPath, Int32[] unityVersion) in LibCpp2IL.dll:token 0x600007e+0x7
   at Cpp2IL.Core.Cpp2IlApi.InitializeLibCpp2Il(String assemblyPath, String metadataPath, Int32[] unityVersion, Boolean allowUserToInputAddresses) in Cpp2IL.Core.dll:token 0x600004d+0x12
   --- End of inner exception stack trace ---
   at Cpp2IL.Core.Cpp2IlApi.InitializeLibCpp2Il(String assemblyPath, String metadataPath, Int32[] unityVersion, Boolean allowUserToInputAddresses) in Cpp2IL.Core.dll:token 0x600004d+0x35
   at AssetRipper.Core.Structure.Assembly.Managers.Il2CppManager.Initialize(PlatformGameStructure gameStructure) in E:\repos\AssetRipper\AssetRipperCore\Structure\Assembly\Managers\Il2CppManager.cs:line 24
   at AssetRipper.Core.Structure.GameStructure.GameStructure.Load(List`1 paths, CoreConfiguration configuration, LayoutInfo layinfo) in E:\repos\AssetRipper\AssetRipperCore\Structure\GameStructure\GameStructure.cs:line 91
   at AssetRipper.Core.Structure.GameStructure.GameStructure.Load(IEnumerable`1 paths, CoreConfiguration configuration, LayoutInfo layinfo) in E:\repos\AssetRipper\AssetRipperCore\Structure\GameStructure\GameStructure.cs:line 46
   at AssetRipper.Core.Structure.GameStructure.GameStructure.Load(IEnumerable`1 paths, CoreConfiguration configuration) in E:\repos\AssetRipper\AssetRipperCore\Structure\GameStructure\GameStructure.cs:line 38
   at AssetRipper.Library.Ripper.Load(IReadOnlyList`1 paths) in E:\repos\AssetRipper\AssetRipperLibrary\Ripper.cs:line 31
   at UnitTester.Program.RunTests() in E:\repos\AssetRipper\UnitTester\Program.cs:line 70

This error occurs because support for analyzing that type of assembly has not yet been implemented in Cpp2IL.

There are plans to catch this error and switch to not exporting scripts, which would allow users to export these games that they previously could not. However, the catch has not yet been implemented into AssetRipper.

@ds5678 ds5678 added bug Something isn't working enhancement New feature or request labels Sep 3, 2021
@ds5678 ds5678 added the import Related to the importing of asset files label Sep 26, 2021
@ds5678
Copy link
Collaborator Author

ds5678 commented Nov 19, 2021

This was fixed in one of the previous releases.

@ds5678 ds5678 closed this as completed Nov 19, 2021
@mindphluxnet
Copy link

Still happens:

Unhandled exception. Cpp2IL.Core.Exceptions.LibCpp2ILInitializationException: Fatal Exception initializing LibCpp2IL!
 ---> System.Exception: Failed to find code registration or metadata registration!
   at LibCpp2IL.Il2CppBinary.Init(UInt64 pCodeRegistration, UInt64 pMetadataRegistration) in /home/runner/work/Cpp2IL/Cpp2IL/LibCpp2IL/Il2CppBinary.cs:line 80
   at LibCpp2IL.LibCpp2IlBinaryRegistry.CreateAndInit(Byte[] buffer, Il2CppMetadata metadata) in /home/runner/work/Cpp2IL/Cpp2IL/LibCpp2IL/LibCpp2IlBinaryRegistry.cs:line 72
   at LibCpp2IL.LibCpp2IlMain.Initialize(Byte[] binaryBytes, Byte[] metadataBytes, UnityVersion unityVersion) in /home/runner/work/Cpp2IL/Cpp2IL/LibCpp2IL/LibCpp2IlMain.cs:line 159
   at LibCpp2IL.LibCpp2IlMain.LoadFromFile(String pePath, String metadataPath, UnityVersion unityVersion) in /home/runner/work/Cpp2IL/Cpp2IL/LibCpp2IL/LibCpp2IlMain.cs:line 203
   at Cpp2IL.Core.Cpp2IlApi.InitializeLibCpp2Il(String assemblyPath, String metadataPath, UnityVersion unityVersion, Boolean allowUserToInputAddresses) in /_/Cpp2IL.Core/Cpp2IlApi.cs:line 61
   --- End of inner exception stack trace ---
   at Cpp2IL.Core.Cpp2IlApi.InitializeLibCpp2Il(String assemblyPath, String metadataPath, UnityVersion unityVersion, Boolean allowUserToInputAddresses) in /_/Cpp2IL.Core/Cpp2IlApi.cs:line 67

Game: https://store.steampowered.com/app/2445540/Monster_Rampage_VR/

@ds5678
Copy link
Collaborator Author

ds5678 commented Jul 6, 2023

@mindphluxnet your error is completely different from this issue.

@BB-VR
Copy link

BB-VR commented Jan 23, 2024

@mindphluxnet did you find a fix i have your EXACT error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request import Related to the importing of asset files
Projects
None yet
Development

No branches or pull requests

3 participants