Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Unity Project Opening Issue: Editor.log Shows StackOverflowException Error

Discussion in 'Entity Component System' started by Dog_Like, Jul 26, 2023.

  1. Dog_Like

    Dog_Like

    Joined:
    Nov 24, 2017
    Posts:
    25
    I've encountered a problem where I can't open my Unity project properly. During the opening process, the editor automatically crashes. Upon checking the editor log (Editor.log), I found the following error message:

    StackOverflowException: The requested operation caused a stack overflow.
    at (wrapper managed-to-native) System.MonoCustomAttrs.GetCustomAttributesInternal(System.Reflection.ICustomAttributeProvider,System.Type,bool)
    at System.MonoCustomAttrs.GetCustomAttributesBase (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inheritedOnly) [0x00013] in <eef08f56e2e042f1b3027eca477293d9>:0
    at System.MonoCustomAttrs.GetCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inherit) [0x002bb] in <eef08f56e2e042f1b3027eca477293d9>:0
    at System.RuntimeType.GetCustomAttributes (System.Type attributeType, System.Boolean inherit) [0x00038] in <eef08f56e2e042f1b3027eca477293d9>:0
    at System.Attribute.GetCustomAttributes (System.Reflection.MemberInfo element, System.Type type, System.Boolean inherit) [0x00088] in <eef08f56e2e042f1b3027eca477293d9>:0
    at System.Reflection.CustomAttributeExtensions.GetCustomAttributes (System.Reflection.MemberInfo element, System.Type attributeType, System.Boolean inherit) [0x00000] in <eef08f56e2e042f1b3027eca477293d9>:0
    at System.Reflection.CustomAttributeExtensions.GetCustomAttributes[T] (System.Reflection.MemberInfo element, System.Boolean inherit) [0x00000] in <eef08f56e2e042f1b3027eca477293d9>:0
    at Unity.Entities.TypeManager.GetParentGroupDefaultFilterFlags (System.Type type) [0x00019] in .\Library\PackageCache\com.unity.entities@1.0.11\Unity.Entities\Types\TypeManagerSystems.cs:1331
     
  2. Dog_Like

    Dog_Like

    Joined:
    Nov 24, 2017
    Posts:
    25
    The problem has been resolved.