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.InvalidOperationException: Sequence contains more than one element #183

Open
Alexejhero opened this issue Oct 5, 2024 · 3 comments

Comments

@Alexejhero
Copy link

Uno (by Ubisoft)
Unity 2022.2.21f1 (4907324dc95b)
BepInEx 6.0.0-be.725

[Error  :   BepInEx] System.InvalidOperationException: Sequence contains more than one element
at System.Linq.ThrowHelper.ThrowMoreThanOneElementException()
at System.Linq.Enumerable.TryGetSingle[TSource] (IEnumerable`1 source, Boolean& found)
at System.Linq.Enumerable.Single[TSource] (IEnumerable`1 source)
at Il2CppInterop.Runtime.Injection.Hooks.GenericMethod_GetMethod_Hook.FindTargetMethod() in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Injection/Hooks/GenericMethod_GetMethod_Hook.cs:line 67
at Il2CppInterop.Runtime.Injection.Hook`1.ApplyHook() in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Injection/Hook.cs:line 30
at Il2CppInterop.Runtime.Injection.InjectorHelpers.Setup() in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Injection/InjectorHelpers.cs:line 75
at Il2CppInterop.Runtime.Injection.ClassInjector.RegisterTypeInIl2Cpp(Type type, RegisterTypeOptions options) in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Injection/ClassInjector.cs:line 196
at Il2CppInterop.Runtime.DelegateSupport.ConvertDelegate[TIl2Cpp] (Delegate delegate) in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/DelegateSupport.cs:line 244
at UnityEngine.Application.LogCallback.op_Implicit(Action`3 )
at BepInEx.Unity.IL2CPP.Logging.IL2CPPUnityLogSource..ctor() in /home/runner/work/BepInEx/BepInEx/Runtimes/Unity/BepInEx.Unity.IL2CPP/Logging/IL2CPPUnityLogSource.cs:line 11
at BepInEx.Unity.IL2CPP.IL2CPPChainloader.OnInvokeMethod(IntPtr method, IntPtr obj, IntPtr parameters, IntPtr exc) in /home/runner/work/BepInEx/BepInEx/Runtimes/Unity/BepInEx.Unity.IL2CPP/IL2CPPChainloader.cs:line 88

Possibly related to #111 and #119

@Alexejhero
Copy link
Author

Alexejhero commented Oct 14, 2024

I forgot to mention. There are two function pointers in the sequence. Trying to use either of them causes the game to hard crash.

@Alexejhero
Copy link
Author

image

Ubisoft drm

@ds5678
Copy link
Collaborator

ds5678 commented Nov 7, 2024

So this can be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants