Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug Editor Breaks when attaching debugger

Discussion in 'Editor & General Support' started by robcarlan, Mar 1, 2024.

  1. robcarlan

    robcarlan

    Joined:
    Aug 29, 2017
    Posts:
    14
    I recently upgraded to 2022.3.20f1 and get the following stack trace when I play the game after attaching a debugger:
    Code (CSharp):
    1. FileNotFoundException: Could not load file or assembly 'UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
    2. System.MonoCustomAttrs.GetCustomAttributesBase (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inheritedOnly) (at <dc753a1061284f8e971ee88ee4826eee>:0)
    3. System.MonoCustomAttrs.GetCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inherit) (at <dc753a1061284f8e971ee88ee4826eee>:0)
    4. System.RuntimeType.GetCustomAttributes (System.Type attributeType, System.Boolean inherit) (at <dc753a1061284f8e971ee88ee4826eee>:0)
    5. UnityEditor.ObjectNames+InspectorTitles..cctor () (at <5d5ebefe97114215928ac1d9cd096522>:0)
    6. Rethrow as TypeInitializationException: The type initializer for 'InspectorTitles' threw an exception.
    7. UnityEditor.ObjectNames.GetInspectorTitle (UnityEngine.Object obj, System.Boolean multiObjectEditing) (at <5d5ebefe97114215928ac1d9cd096522>:0)
    8. UnityEditor.ObjectNames.GetInspectorTitle (UnityEngine.Object obj) (at <5d5ebefe97114215928ac1d9cd096522>:0)
    9. UnityEditor.UIElements.EditorElement.Init () (at <5d5ebefe97114215928ac1d9cd096522>:0)
    10. UnityEditor.UIElements.EditorElement..ctor (System.Int32 editorIndex, UnityEditor.IPropertyView iw, System.Boolean isCulled) (at <5d5ebefe97114215928ac1d9cd096522>:0)
    11. UnityEditor.PropertyEditor.DrawEditors (UnityEditor.Editor[] editors) (at <5d5ebefe97114215928ac1d9cd096522>:0)
    12. UnityEditor.PropertyEditor.RebuildContentsContainers () (at <5d5ebefe97114215928ac1d9cd096522>:0)
    13. UnityEditor.InspectorWindow.RedrawFromNative () (at <5d5ebefe97114215928ac1d9cd096522>:0)
    This is using Rider's Unity integration. Once this happens, everything else I do causes more of these errors. The inspector window stops working completely and I need to close the application in order to fix it. I've already reinstalled the Editor.
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    6,596
    Does this happen with a new, empty project and the latest Rider package and Rider version?

    I also use Rider and have never had this issue, and I was recently debugging in 2022.3.
     
  3. robcarlan

    robcarlan

    Joined:
    Aug 29, 2017
    Posts:
    14
    It doesn't occur when I try it on a new project. I tried regenerating all the project files in Unity preferences but it didn't help. The interesting thing is that it seems to only happen when I attach the debugger before entering play mode.

    Rider version is 2023.3.3
     
  4. robcarlan

    robcarlan

    Joined:
    Aug 29, 2017
    Posts:
    14
    bump this still happens every single time