You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to get NativeClassPtr of a class like Il2cppSystem.Collection.Generic.Dictionary<Collider2D, IUsable[]>(in AmongUs), I get the following error.
error log
[Error :Il2CppInterop] Exception in IL2CPP-to-Managed trampoline, not passing it to il2cpp: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.TypeInitializationException: The type initializer for 'Il2CppInterop.Runtime.Il2CppClassPointerStore`1' threw an exception.
---> System.TypeInitializationException: The type initializer for 'Il2CppSystem.Collections.Generic.Dictionary`2' threw an exception.
---> System.NullReferenceException: Object reference not set to an instance of an object.
at Il2CppInterop.Runtime.Injection.Hooks.Class_FromIl2CppType_Hook.Hook(Il2CppType* type, Boolean throwOnError) in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Injection/Hooks/Class_FromIl2CppType_Hook.cs:line 33
at Il2CppInterop.Runtime.IL2CPP.il2cpp_runtime_invoke(IntPtr method, IntPtr obj, Void** param, IntPtr& exc)
at Il2CppSystem.Type.internal_from_handle(IntPtr handle)
at Il2CppSystem.Collections.Generic.Dictionary`2..cctor()
--- End of inner exception stack trace ---
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(QCallTypeHandle type)
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(RuntimeTypeHandle type)
at Il2CppInterop.Runtime.Il2CppClassPointerStore`1..cctor() in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Il2CppClassPointerStore.cs:line 42
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.RuntimeFieldHandle.GetValue(RtFieldInfo field, Object instance, RuntimeType fieldType, RuntimeType declaringType, Boolean& domainInitialized)
at System.Reflection.RtFieldInfo.GetValue(Object obj)
at UniverseLib.Il2CppReflection.Il2CppTypeNotNull(Type type, IntPtr& il2cppPtr)
at UniverseLib.Il2CppReflection.Internal_TryCast(Object obj, Type toType)
at UniverseLib.ReflectionExtensions.TryCast(Object obj)
at UnityExplorer.CacheObject.CacheObjectBase.SetValueFromSource(Object value)
at UnityExplorer.CacheObject.CacheMember.Evaluate()
at UnityExplorer.CacheObject.CacheMember.TryAutoEvaluateIfUnitialized(CacheObjectCell objectcell)
at UnityExplorer.CacheObject.CacheObjectBase.SetDataToCell(CacheObjectCell cell)
at UnityExplorer.CacheObject.CacheObjectControllerHelper.SetCell(CacheObjectCell cell, Int32 index, IList cachedEntries, Action`1 onDataSetToCell)
at UnityExplorer.Inspectors.ReflectionInspector.SetCell(CacheMemberCell cell, Int32 index)
at UniverseLib.UI.Widgets.ScrollView.ScrollPool`1.SetCell(T cachedCell, Int32 dataIndex)
at UniverseLib.UI.Widgets.ScrollView.ScrollPool`1.InitCoroutine(Action onHeightChangedListener)+MoveNext()
at UniverseLib.Runtime.Il2Cpp.Il2CppManagedEnumerator.MoveNext()
at Trampoline_ByteThisUniverseLib.Runtime.Il2Cpp.Il2CppManagedEnumeratorMoveNext(IntPtr , Il2CppMethodInfo* )
This error is caused by the original method of retrieving NativeClassPtr with a function, but the same error occurs when using Il2CppClassPointerStore.GetNativeClassPointer
The text was updated successfully, but these errors were encountered:
When I try to get
NativeClassPtr
of a class likeIl2cppSystem.Collection.Generic.Dictionary<Collider2D, IUsable[]>
(in AmongUs), I get the following error.This error is caused by the original method of retrieving
NativeClassPtr
with a function, but the same error occurs when usingIl2CppClassPointerStore.GetNativeClassPointer
The text was updated successfully, but these errors were encountered: