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

Unable to execute IL2CPP Chainloader - BepInEx 6 Preview #809

Open
bakersrule2020 opened this issue Mar 25, 2024 · 1 comment
Open

Unable to execute IL2CPP Chainloader - BepInEx 6 Preview #809

bakersrule2020 opened this issue Mar 25, 2024 · 1 comment
Labels
error Error message or log that may need investigation needs-replication Issue needs to be replicated by BepInEx dev

Comments

@bakersrule2020
Copy link

What happened?

On Unity 2021.3.34f1, (Particularly the game GoreBox), BepInEx 6 Refuses to start and crashes the game with the error provided at the log outputs section.

BepInEx Distribution

Stable from GitHub

Log outputs

[Message:   BepInEx] Chainloader initialized
[Warning:Unhollower] Class::Init signatures have been exhausted, using il2cpp_class_has_references as a substitute!
[Fatal  :   BepInEx] Unable to execute IL2CPP chainloader
[Error  :   BepInEx] System.Exception: Not supported yet - Call
  at BepInEx.IL2CPP.DetourGenerator.CreateTrampolineFromFunction (System.Byte[] instructionBuffer, System.IntPtr functionPtr, System.IntPtr trampolinePtr, System.Int32 minimumTrampolineLength, System.Runtime.InteropServices.Architecture arch, System.Int32& trampolineLength, System.Int32& jmpLength) [0x0010f] in <e9997477cd8143c9a348224def0a337e>:0 
  at BepInEx.IL2CPP.Hook.FastNativeDetour.GenerateTrampolineInner (System.Int32& trampolineLength, System.Int32& jmpLength) [0x0012c] in <e9997477cd8143c9a348224def0a337e>:0 
  at BepInEx.IL2CPP.Hook.FastNativeDetour.GenerateTrampoline (System.Reflection.MethodBase signature) [0x0000e] in <e9997477cd8143c9a348224def0a337e>:0 
  at BepInEx.IL2CPP.Hook.FastNativeDetour.GenerateTrampoline[T] () [0x0004a] in <e9997477cd8143c9a348224def0a337e>:0 
  at BepInEx.IL2CPP.Hook.FastNativeDetour.CreateAndApply[T] (System.IntPtr from, T to, T& original, System.Nullable`1[T] callingConvention) [0x0002c] in <e9997477cd8143c9a348224def0a337e>:0 
  at BepInEx.IL2CPP.Hook.UnhollowerDetourHandler.Detour[T] (System.IntPtr from, T to) [0x00000] in <e9997477cd8143c9a348224def0a337e>:0 
  at UnhollowerRuntimeLib.ClassInjector.HookGenericMethodGetMethod () [0x00094] in <e00b54b0593445e4abdce314024df595>:0 
  at UnhollowerRuntimeLib.ClassInjector.RegisterTypeInIl2Cpp (System.Type type, UnhollowerRuntimeLib.RegisterTypeOptions options) [0x00202] in <e00b54b0593445e4abdce314024df595>:0 
  at UnhollowerRuntimeLib.ClassInjector.RegisterTypeInIl2Cpp (System.Type type) [0x00000] in <e00b54b0593445e4abdce314024df595>:0 
  at UnhollowerRuntimeLib.ClassInjector.RegisterTypeInIl2Cpp[T] () [0x00000] in <e00b54b0593445e4abdce314024df595>:0 
  at UnhollowerRuntimeLib.DelegateSupport.ConvertDelegate[TIl2Cpp] (System.Delegate delegate) [0x00100] in <e00b54b0593445e4abdce314024df595>:0 
  at UnityEngine.Application+LogCallback.op_Implicit (System.Action`3[T1,T2,T3] ) [0x00000] in <8dafb6ae63544901832b98f763c1ac67>:0 
  at BepInEx.IL2CPP.Logging.IL2CPPUnityLogSource..ctor () [0x00011] in <e9997477cd8143c9a348224def0a337e>:0 
  at BepInEx.IL2CPP.IL2CPPChainloader.OnInvokeMethod (System.IntPtr method, System.IntPtr obj, System.IntPtr parameters, System.IntPtr exc) [0x0002a] in <e9997477cd8143c9a348224def0a337e>:0

Environment

- OS: Windows 11
- BepInEx: 6.0.0-pre.1
- Game: GoreBox
@bakersrule2020 bakersrule2020 added error Error message or log that may need investigation needs-replication Issue needs to be replicated by BepInEx dev labels Mar 25, 2024
@bakersrule2020
Copy link
Author

By the way, here are the steps to replicate:
Install Gorebox
Install BepInEx 6
Run GoreBox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error Error message or log that may need investigation needs-replication Issue needs to be replicated by BepInEx dev
Projects
None yet
Development

No branches or pull requests

1 participant