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

[Bug]: [UniverseLib] Can't cache type named __c Error #17

Open
1 task done
Dastano opened this issue May 25, 2024 · 4 comments
Open
1 task done

[Bug]: [UniverseLib] Can't cache type named __c Error #17

Dastano opened this issue May 25, 2024 · 4 comments
Labels
not bug this issue is not bug

Comments

@Dastano
Copy link

Dastano commented May 25, 2024

Are you on the latest version of UnityExplorer?

  • Yes, I'm on the latest version of UnityExplorer.

Which release are you using?

MelonLoader IL2CPP CoreCLR

Which game did this occur on?

Corepunk

Describe the issue.

Not throwing a Error I guess? :)

Relevant log output

[23:08:04.260] [UnityExplorer] [UniverseLib] Can't cache type named __c Error: System.TypeLoadException: GenericArguments[2], 'Il2Cpp.LightShadowCalculatorForFrustum', on 'Il2Cpp.ProviderMonobeh`3[TP,TI,TC]' violates the constraint of type parameter 'TC'.
   at System.RuntimeTypeHandle.GetDeclaringType(RuntimeType type)
   at System.RuntimeType.RuntimeTypeCache.GetEnclosingType()
   at System.RuntimeType.RuntimeTypeCache.GetNameSpace()
   at System.RuntimeType.get_Namespace()
   at UniverseLib.ReflectionUtility.CacheTypes(Assembly asm) in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Reflection\ReflectionUtility.cs:line 121
[23:08:04.260] [UnityExplorer] [UniverseLib] Can't cache type named __c Error: System.TypeLoadException: GenericArguments[2], 'Il2Cpp.ObjectEffectManager', on 'Il2Cpp.ProviderMonobeh`3[TP,TI,TC]' violates the constraint of type parameter 'TC'.
   at System.RuntimeTypeHandle.GetDeclaringType(RuntimeType type)
   at System.RuntimeType.RuntimeTypeCache.GetEnclosingType()
   at System.RuntimeType.RuntimeTypeCache.GetNameSpace()
   at System.RuntimeType.get_Namespace()
   at UniverseLib.ReflectionUtility.CacheTypes(Assembly asm) in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Reflection\ReflectionUtility.cs:line 121
[23:08:04.264] [UnityExplorer] [UniverseLib] Can't cache type named __c Error: System.TypeLoadException: GenericArguments[2], 'Il2Cpp.PuddleDetector', on 'Il2Cpp.ProviderMonobeh`3[TP,TI,TC]' violates the constraint of type parameter 'TC'.
   at System.RuntimeTypeHandle.GetDeclaringType(RuntimeType type)
   at System.RuntimeType.RuntimeTypeCache.GetEnclosingType()
   at System.RuntimeType.RuntimeTypeCache.GetNameSpace()
   at System.RuntimeType.get_Namespace()
   at UniverseLib.ReflectionUtility.CacheTypes(Assembly asm) in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Reflection\ReflectionUtility.cs:line 121
[23:08:04.271] [UnityExplorer] [UniverseLib] Can't cache type named __c Error: System.TypeLoadException: GenericArguments[2], 'Il2CppView.Extensions.AnimatedFace.UnitAnimatedFaceManager', on 'Il2Cpp.ProviderMonobeh`3[TP,TI,TC]' violates the constraint of type parameter 'TC'.
   at System.RuntimeTypeHandle.GetDeclaringType(RuntimeType type)
   at System.RuntimeType.RuntimeTypeCache.GetEnclosingType()
   at System.RuntimeType.RuntimeTypeCache.GetNameSpace()
   at System.RuntimeType.get_Namespace()
   at UniverseLib.ReflectionUtility.CacheTypes(Assembly asm) in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Reflection\ReflectionUtility.cs:line 121

[23:08:05.204] [UnityExplorer] [UniverseLib] Can't cache type named __c Error: System.TypeLoadException: GenericArguments[2], 'Il2Cpp.AsyncUtilsUpdateMeter', on 'Il2Cpp.ProviderMonobeh`3[TP,TI,TC]' violates the constraint of type parameter 'TC'.
   at System.RuntimeTypeHandle.GetDeclaringType(RuntimeType type)
   at System.RuntimeType.RuntimeTypeCache.GetEnclosingType()
   at System.RuntimeType.RuntimeTypeCache.GetNameSpace()
   at System.RuntimeType.get_Namespace()
   at UniverseLib.ReflectionUtility.CacheTypes(Assembly asm) in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Reflection\ReflectionUtility.cs:line 121

Exception in IL2CPP-to-Managed trampoline, not passing it to il2cpp: System.TypeLoadException: GenericArguments[2], 'Il2Cpp.AsyncUtilsUpdateMeter', on 'Il2Cpp.ProviderMonobeh`3[TP,TI,TC]' violates the constraint of type parameter 'TC'.
   at System.RuntimeTypeHandle.GetDeclaringType(RuntimeType type)
   at System.RuntimeType.RuntimeTypeCache.GetEnclosingType()
   at System.RuntimeType.RuntimeTypeCache.GetNameSpace()
   at System.RuntimeType.get_Namespace()
   at UniverseLib.Utility.SignatureHighlighter.TryGetNamespace(Type type, String& ns) in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Utility\SignatureHighlighter.cs:line 189
   at UniverseLib.Utility.SignatureHighlighter.Parse(Type type, Boolean includeNamespace, MemberInfo memberInfo) in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Utility\SignatureHighlighter.cs:line 106
   at UnityExplorer.UI.Widgets.AutoComplete.TypeCompleter.AddSuggestion(Type type)
   at UnityExplorer.UI.Widgets.AutoComplete.TypeCompleter.GetSuggestionsAsync(String input)+MoveNext()
   at UniverseLib.Runtime.Il2Cpp.Il2CppManagedEnumerator.MoveNext() in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Runtime\Il2Cpp\Il2CppManagedEnumerator.cs:line 80
   at Trampoline_ByteThisUniverseLib.Runtime.Il2Cpp.Il2CppManagedEnumeratorMoveNext(IntPtr , Il2CppMethodInfo* )
[23:08:32.301] Exception in IL2CPP-to-Managed trampoline, not passing it to il2cpp: System.TypeLoadException: GenericArguments[2], 'Il2Cpp.LightShadowCalculatorForFrustum', on 'Il2Cpp.ProviderMonobeh`3[TP,TI,TC]' violates the constraint of type parameter 'TC'.
   at System.RuntimeTypeHandle.GetDeclaringType(RuntimeType type)
   at System.RuntimeType.RuntimeTypeCache.GetEnclosingType()
   at System.RuntimeType.RuntimeTypeCache.GetNameSpace()
   at System.RuntimeType.get_Namespace()
   at UniverseLib.Utility.SignatureHighlighter.TryGetNamespace(Type type, String& ns) in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Utility\SignatureHighlighter.cs:line 189
   at UniverseLib.Utility.SignatureHighlighter.Parse(Type type, Boolean includeNamespace, MemberInfo memberInfo) in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Utility\SignatureHighlighter.cs:line 106
   at UnityExplorer.UI.Widgets.AutoComplete.TypeCompleter.AddSuggestion(Type type)
   at UnityExplorer.UI.Widgets.AutoComplete.TypeCompleter.GetSuggestionsAsync(String input)+MoveNext()
   at UniverseLib.Runtime.Il2Cpp.Il2CppManagedEnumerator.MoveNext() in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Runtime\Il2Cpp\Il2CppManagedEnumerator.cs:line 80
   at Trampoline_ByteThisUniverseLib.Runtime.Il2Cpp.Il2CppManagedEnumeratorMoveNext(IntPtr , Il2CppMethodInfo* )
[23:08:32.552] Exception in IL2CPP-to-Managed trampoline, not passing it to il2cpp: System.TypeLoadException: GenericArguments[2], 'Il2Cpp.ObjectEffectManager', on 'Il2Cpp.ProviderMonobeh`3[TP,TI,TC]' violates the constraint of type parameter 'TC'.
   at System.RuntimeTypeHandle.GetDeclaringType(RuntimeType type)
   at System.RuntimeType.RuntimeTypeCache.GetEnclosingType()
   at System.RuntimeType.RuntimeTypeCache.GetNameSpace()
   at System.RuntimeType.get_Namespace()
   at UniverseLib.Utility.SignatureHighlighter.TryGetNamespace(Type type, String& ns) in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Utility\SignatureHighlighter.cs:line 189
   at UniverseLib.Utility.SignatureHighlighter.Parse(Type type, Boolean includeNamespace, MemberInfo memberInfo) in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Utility\SignatureHighlighter.cs:line 106
   at UnityExplorer.UI.Widgets.AutoComplete.TypeCompleter.AddSuggestion(Type type)
   at UnityExplorer.UI.Widgets.AutoComplete.TypeCompleter.GetSuggestionsAsync(String input)+MoveNext()
   at UniverseLib.Runtime.Il2Cpp.Il2CppManagedEnumerator.MoveNext() in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Runtime\Il2Cpp\Il2CppManagedEnumerator.cs:line 80
   at Trampoline_ByteThisUniverseLib.Runtime.Il2Cpp.Il2CppManagedEnumeratorMoveNext(IntPtr , Il2CppMethodInfo* )
[23:08:33.743] Exception in IL2CPP-to-Managed trampoline, not passing it to il2cpp: System.TypeLoadException: GenericArguments[2], 'Il2Cpp.AsyncUtilsUpdateMeter', on 'Il2Cpp.ProviderMonobeh`3[TP,TI,TC]' violates the constraint of type parameter 'TC'.
   at System.RuntimeTypeHandle.GetDeclaringType(RuntimeType type)
   at System.RuntimeType.RuntimeTypeCache.GetEnclosingType()
   at System.RuntimeType.RuntimeTypeCache.GetNameSpace()
   at System.RuntimeType.get_Namespace()
   at UniverseLib.Utility.SignatureHighlighter.TryGetNamespace(Type type, String& ns) in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Utility\SignatureHighlighter.cs:line 189
   at UniverseLib.Utility.SignatureHighlighter.Parse(Type type, Boolean includeNamespace, MemberInfo memberInfo) in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Utility\SignatureHighlighter.cs:line 106
   at UnityExplorer.UI.Widgets.AutoComplete.TypeCompleter.AddSuggestion(Type type)
   at UnityExplorer.UI.Widgets.AutoComplete.TypeCompleter.GetSuggestionsAsync(String input)+MoveNext()
   at UniverseLib.Runtime.Il2Cpp.Il2CppManagedEnumerator.MoveNext() in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Runtime\Il2Cpp\Il2CppManagedEnumerator.cs:line 80
   at Trampoline_ByteThisUniverseLib.Runtime.Il2Cpp.Il2CppManagedEnumeratorMoveNext(IntPtr , Il2CppMethodInfo* )
@Dastano Dastano added the bug Something isn't working label May 25, 2024
@Dastano
Copy link
Author

Dastano commented May 25, 2024

If you need any example FIles, I am happy to upload them.

PS: Same happen on BeepInEx:

Message:UnityExplorer] [UniverseLib] Can't cache type named __c Error: System.TypeLoadException: GenericArguments[2], 'Assets.Scripts.Controllers.Shared.ConfigLoader', on 'ProviderMonobeh3[TP,TI,TC]' violates the constraint of type parameter 'TC'. at System.RuntimeTypeHandle.GetDeclaringType(RuntimeType type) at System.RuntimeType.RuntimeTypeCache.GetEnclosingType() at System.RuntimeType.RuntimeTypeCache.GetNameSpace() at System.RuntimeType.get_Namespace() at UniverseLib.ReflectionUtility.CacheTypes(Assembly asm) in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Reflection\ReflectionUtility.cs:line 121 [Message:UnityExplorer] [UniverseLib] Can't cache type named __c Error: System.TypeLoadException: GenericArguments[2], 'LightShadowCalculatorForFrustum', on 'ProviderMonobeh3[TP,TI,TC]' violates the constraint of type parameter 'TC'.
at System.RuntimeTypeHandle.GetDeclaringType(RuntimeType type)
at System.RuntimeType.RuntimeTypeCache.GetEnclosingType()
at System.RuntimeType.RuntimeTypeCache.GetNameSpace()
at System.RuntimeType.get_Namespace()
at UniverseLib.ReflectionUtility.CacheTypes(Assembly asm) in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Reflection\ReflectionUtility.cs:line 121
[Message:UnityExplorer] [UniverseLib] Can't cache type named __c Error: System.TypeLoadException: GenericArguments[2], 'ObjectEffectManager', on 'ProviderMonobeh3[TP,TI,TC]' violates the constraint of type parameter 'TC'. at System.RuntimeTypeHandle.GetDeclaringType(RuntimeType type) at System.RuntimeType.RuntimeTypeCache.GetEnclosingType() at System.RuntimeType.RuntimeTypeCache.GetNameSpace() at System.RuntimeType.get_Namespace() at UniverseLib.ReflectionUtility.CacheTypes(Assembly asm) in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Reflection\ReflectionUtility.cs:line 121 [Message:UnityExplorer] [UniverseLib] Can't cache type named __c Error: System.TypeLoadException: GenericArguments[2], 'PuddleDetector', on 'ProviderMonobeh3[TP,TI,TC]' violates the constraint of type parameter 'TC'.
at System.RuntimeTypeHandle.GetDeclaringType(RuntimeType type)
at System.RuntimeType.RuntimeTypeCache.GetEnclosingType()
at System.RuntimeType.RuntimeTypeCache.GetNameSpace()
at System.RuntimeType.get_Namespace()
at UniverseLib.ReflectionUtility.CacheTypes(Assembly asm) in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Reflection\ReflectionUtility.cs:line 121
[Message:UnityExplorer] [UniverseLib] Can't cache type named __c Error: System.TypeLoadException: GenericArguments[2], 'View.Extensions.AnimatedFace.UnitAnimatedFaceManager', on 'ProviderMonobeh`3[TP,TI,TC]' violates the constraint of type parameter 'TC'.
at System.RuntimeTypeHandle.GetDeclaringType(RuntimeType type)
at System.RuntimeType.RuntimeTypeCache.GetEnclosingType()
at System.RuntimeType.RuntimeTypeCache.GetNameSpace()
at System.RuntimeType.get_Namespace()
at UniverseLib.ReflectionUtility.CacheTypes(Assembly asm) in F:\Documents\VisualStudioProject\AmongUs\UnityExplorer\UniverseLib\src\Reflection\ReflectionUtility.cs:line 121

@yukieiji
Copy link
Owner

Do these errors cause any behavior problems?
When do these errors occur?

@Dastano
Copy link
Author

Dastano commented May 26, 2024

I haven't found any breaking bugs yet. But I am not very deep into UE yet.

The errors happen when the game launches.

@yukieiji
Copy link
Owner

yukieiji commented May 26, 2024

If this error isn't causing you any problems, then you are fine.

@yukieiji yukieiji added not bug this issue is not bug and removed bug Something isn't working labels May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not bug this issue is not bug
Projects
None yet
Development

No branches or pull requests

2 participants