Il2CppInterop
Il2CppInterop copied to clipboard
Fallback method loader is malfunctioning and crashes chainloader
With some 32 bit game builds the class injector works but sometimes it doesn't. Not just me but I found a lot of people opened similar issues in the main repo but I couldn't find any answer.
Fatal error. 0xC0000005
at Il2CppInterop.Runtime.Injection.ClassInjector.RegisterTypeInIl2Cpp(System.Type, Il2CppInterop.Runtime.Injection.RegisterTypeOptions)
at Il2CppInterop.Runtime.DelegateSupport.ConvertDelegate[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Delegate)
at UnityEngine.Application+LogCallback.op_Implicit(System.Action`3<System.String,System.String,UnityEngine.LogType>)
at BepInEx.Unity.IL2CPP.Logging.IL2CPPUnityLogSource..ctor()
at BepInEx.Unity.IL2CPP.IL2CPPChainloader.OnInvokeMethod(IntPtr, IntPtr, IntPtr, IntPtr)
[Message: Preloader] BepInEx 6.0.0-be.704 - Seafight
[Message: Preloader] Built from commit 6b38cee1277f4e3da5f2f685aee8b503a14d4054
[Info : BepInEx] System platform: Windows 10 64-bit
[Info : BepInEx] Process bitness: 32-bit (x86)
[Info : BepInEx] Running under Unity 2022.3.42f1
[Info : BepInEx] Runtime version: 6.0.7
[Info : BepInEx] Runtime information: .NET 6.0.7
[Info : Preloader] 0 patcher plugins loaded
[Info : Preloader] 0 assemblies discovered
[Message:AssemblyPatcher] Executing 0 patch(es)
[Message: BepInEx] Chainloader initialized
BepInEx version: BepInEx-Unity.IL2CPP-win-x86-6.0.0-be.704+6b38cee