BepInEx / BepInEx

Unity / XNA game patcher and plugin framework
GNU Lesser General Public License v2.1
4.55k stars 571 forks source link

il2cpp pre-1 and bleeding egde #577(unhollower) error on launch #860

Open Elmishhh opened 2 months ago

Elmishhh commented 2 months ago

What happened?

please dont tell me to use interop i know it works but it wont do what im trying to do

Steps to reproduce

game: rumble steps to reproduce: open the game with unhollower bepinex

BepInEx Distribution

Stable from GitHub

Log outputs

[Fatal  :Unhollower] Failed to generate unhollowed assemblies: Cpp2IL.Core.Exceptions.LibCpp2ILInitializationException: Fatal Exception initializing LibCpp2IL! ---> System.OverflowException: Provided address, 0x3F13, was less than image base, 0x180000000
  at LibCpp2IL.PE.PE.MapVirtualAddressToRaw (System.UInt64 uiAddr) [0x0002a] in <3931b12e61dc45d7b9f004b093bede05>:0
  at LibCpp2IL.Il2CppBinary.ReadClassArrayAtVirtualAddress[T] (System.UInt64 addr, System.Int64 count) [0x00000] in <3931b12e61dc45d7b9f004b093bede05>:0
  at LibCpp2IL.Il2CppBinary.Init (System.UInt64 pCodeRegistration, System.UInt64 pMetadataRegistration) [0x00094] in <3931b12e61dc45d7b9f004b093bede05>:0
  at LibCpp2IL.LibCpp2IlMain.Initialize (System.Byte[] binaryBytes, System.Byte[] metadataBytes, System.Int32[] unityVersion) [0x00315] in <3931b12e61dc45d7b9f004b093bede05>:0
  at LibCpp2IL.LibCpp2IlMain.LoadFromFile (System.String pePath, System.String metadataPath, System.Int32[] unityVersion) [0x0000d] in <3931b12e61dc45d7b9f004b093bede05>:0
  at Cpp2IL.Core.Cpp2IlApi.InitializeLibCpp2Il (System.String assemblyPath, System.String metadataPath, System.Int32[] unityVersion, System.Boolean allowUserToInputAddresses) [0x00012] in <1545415996a5462e9f767adfce5c879e>:0
   --- End of inner exception stack trace ---
  at Cpp2IL.Core.Cpp2IlApi.InitializeLibCpp2Il (System.String assemblyPath, System.String metadataPath, System.Int32[] unityVersion, System.Boolean allowUserToInputAddresses) [0x00068] in <1545415996a5462e9f767adfce5c879e>:0
  at BepInEx.IL2CPP.ProxyAssemblyGenerator+AppDomainRunner.GenerateAssembliesInternal (BepInEx.IL2CPP.ProxyAssemblyGenerator+AppDomainListener listener, System.String unityVersion, BepInEx.IL2CPP.ProxyAssemblyGenerator+IL2CPPDumperType dumperType) [0x00229] in <ecd649a439ab4c06bbaaa67dd0041ec4>:0
  at BepInEx.IL2CPP.ProxyAssemblyGenerator+AppDomainRunner.GenerateAssemblies (BepInEx.IL2CPP.ProxyAssemblyGenerator+AppDomainListener listener, System.String unityVersion, BepInEx.IL2CPP.ProxyAssemblyGenerator+IL2CPPDumperType dumperType) [0x00000] in <ecd649a439ab4c06bbaaa67dd0041ec4>:0
[Fatal  : Preloader] System.TypeInitializationException: The type initializer for 'UnhollowerBaseLib.Runtime.UnityVersionHandler' threw an exception. ---> System.TypeLoadException: Could not load type of field 'UnhollowerRuntimeLib.DelegateSupport+<>c:<>9__7_0' (2) due to: Could not load file or assembly 'Il2Cppmscorlib, Version=3.7.1.6, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
  at (wrapper managed-to-native) System.RuntimeTypeHandle.type_is_assignable_from(System.Type,System.Type)
  at System.RuntimeTypeHandle.CanCastTo (System.RuntimeType type, System.RuntimeType target) [0x00000] in <986ed57b9a8f4699a3c59a69eb05944a>:0
  at System.RuntimeType.IsAssignableFrom (System.Type c) [0x00020] in <986ed57b9a8f4699a3c59a69eb05944a>:0
  at UnhollowerBaseLib.Runtime.UnityVersionHandler+<>c__DisplayClass19_1.<.cctor>b__2 (System.Type i) [0x00000] in <e00b54b0593445e4abdce314024df595>:0
  at System.Linq.Enumerable.Any[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x0002c] in <c8122f496f05432baca55ffb7d139a58>:0
  at UnhollowerBaseLib.Runtime.UnityVersionHandler+<>c__DisplayClass19_0.<.cctor>b__1 (System.Type t) [0x0001a] in <e00b54b0593445e4abdce314024df595>:0
  at System.Linq.Enumerable+WhereArrayIterator`1[TSource].MoveNext () [0x0002c] in <c8122f496f05432baca55ffb7d139a58>:0
  at UnhollowerBaseLib.Runtime.UnityVersionHandler..cctor () [0x0014c] in <e00b54b0593445e4abdce314024df595>:0
   --- End of inner exception stack trace ---
  at BepInEx.IL2CPP.Preloader.Run () [0x0017e] in <ecd649a439ab4c06bbaaa67dd0041ec4>:0

Environment

- OS: windows 11
- BepInEx: il2cpp pre-1 or bleeding egde #577
- Game: RUMBLE vr
Elmishhh commented 2 months ago

anyone????