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

5.5p1, Editor GUI Extension does not properly function and breaks other .dll files.

Discussion in 'Editor & General Support' started by hoesterey, Dec 10, 2016.

  1. hoesterey

    hoesterey

    Joined:
    Mar 19, 2010
    Posts:
    659
    Hi,

    I've been trying to debug why any changes to the GUISystem editor extension do not work.

    Simply copying the unmodified GUISystem folder out of the unity directory and then back in creates these errors forever until a reinstall. This is without any modifications to the content in that folder..

    InitializeUnityExtensions: Must have a valid path for the plugin [18]
    Extension was not registered, that means it relies on default UnityExtensions settings, please register extension and apply necessary settings for it in the callback.
    InitializeUnityExtensions: Must have a valid path for the plugin [21]


    Cloning your GIT repository and building with unmodified code (using .net 3.5) and then copying the output into the GUISystem directory in unity causes other .dll files to stop working

    I get these errors in my other .dll files once updating the GUISystem with unmodified code:
    ReflectionTypeLoadException: The classes in the module cannot be loaded.
    System.Reflection.Assembly.GetTypes () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/Assembly.cs:371)
    BehaviorDesigner.Editor.TaskList.Init ()
    BehaviorDesigner.Editor.BehaviorDesignerWindow.Init ()
    BehaviorDesigner.Editor.BehaviorDesignerWindow.OnEnable ()
    UnityEditor.EditorWindow:GetWindow(Boolean, String)
    BehaviorDesigner.Editor.BehaviorDesignerWindow:ShowWindow()

    ReflectionTypeLoadException:The classes in the module cannot be loaded.
    UnityEditor.EditorWindow:GetWindow(Boolean, String)
    BehaviorDesigner.Editor.BehaviorDesignerWindow:ShowWindow()

    ReflectionTypeLoadException: The classes in the module cannot be loaded.
    System.Reflection.Assembly.GetTypes () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/Assembly.cs:371)
    BehaviorDesigner.Editor.TaskList.Init ()
    BehaviorDesigner.Editor.BehaviorDesignerWindow.Init ()
    BehaviorDesigner.Editor.BehaviorDesignerWindow.OnFocus ()
    System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
    Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
    System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
    System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
    UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:249)
    UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:242)
    UnityEditor.HostView.OnFocus () (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:90)
    UnityEditor.EditorWindow:GetWindow(Boolean, String)
    BehaviorDesigner.Editor.BehaviorDesignerWindow:ShowWindow()

    ReflectionTypeLoadException: The classes in the module cannot be loaded.
    System.Reflection.Assembly.GetTypes () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/Assembly.cs:371)
    BehaviorDesigner.Editor.TaskList.Init ()
    BehaviorDesigner.Editor.BehaviorDesignerWindow.Init ()
    BehaviorDesigner.Editor.BehaviorDesignerWindow.ShowWindow ()

    Our project needs the GUI extension and other .dll files so we are 100% dead in the water. Any help would be appreciated.

    Thanks.
     
  2. hoesterey

    hoesterey

    Joined:
    Mar 19, 2010
    Posts:
    659
    We just discovered that many plugins that DO NOT use .dll files but use custom inspectors are effected as well.

    Note:
    The GUI that ships with 5.5 does not have issues. The GUI for 5.5. that is downloaded from your GIT does. Portions of my team are blocked due to bugs in almost every version of Unity now. We really need to get 5.5. up and running as it fixes some 5.4 bugs. Any help is really appreciated.

    Thanks.
     
  3. hoesterey

    hoesterey

    Joined:
    Mar 19, 2010
    Posts:
    659
    With a fresh install of unity. Deleting our librarys and reimporting the GUISystem it again seams to work but we still get these errors on startup with a blank project: This is without modifying the GUI Code
    InitializeUnityExtensions: Must have a valid path for the plugin [18]
    Extension was not registered, that means it relies on default UnityExtensions settings, please register extension and apply necessary settings for it in the callback.
    InitializeUnityExtensions: Must have a valid path for the plugin [21]

    Recursive Serialization is not supported. You can't dereference a PPtr while loading. (Constructors of C# classes may not load objects either. See stacktrace.)
    UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget(String)
    UnityEditor.WindowLayout:LoadWindowLayout(String, Boolean)

    Removed empty DockArea while reading window layout: window #4, instanceID=9430
    UnityEditor.WindowLayout:LoadWindowLayout(String, Boolean)

    Removed unparented EditorWindow while reading window layout: window #20, type=UnityEditor.FallbackEditorWindow, instanceID=9462
    UnityEditor.WindowLayout:LoadWindowLayout(String, Boolean)

    Error while reading window layout: window #0 is null
    UnityEditor.WindowLayout:LoadWindowLayout(String, Boolean)
     
  4. jammingames

    jammingames

    Joined:
    Nov 17, 2013
    Posts:
    8
    I am getting the exact same errors on a fresh install