ArgumentNullException after introducing Odin

Issue #573 resolved
inaho Oinary created an issue

1. What happened?

When you open the inspector, nothing is displayed and the console displays an ArgumentNullException. In addition, you cannot open the Tools> Odin Inspector> About tab.

"C: / Projects / Sirenix / Sirenix Solution / Sirenix.Utilities / Misc / EmitUtilities.cs" is displayed, but there is no such thing on the C drive and no solution can be found.

ArgumentNullException: Value cannot be null.
Parameter name: fieldInfo
Sirenix.Utilities.EmitUtilities.CreateStaticFieldSetter[FieldType] (System.Reflection.FieldInfo fieldInfo) (at C:/Projects/Sirenix/Sirenix Solution/Sirenix.Utilities/Misc/EmitUtilities.cs:179)
Sirenix.Utilities.Editor.GUIHelper..cctor () (at C:/Projects/Sirenix/Sirenix Solution/Sirenix.Utilities.Editor/GUI/GUIHelper.cs:87)
Rethrow as TypeInitializationException: The type initializer for 'Sirenix.Utilities.Editor.GUIHelper' threw an exception.
Sirenix.Utilities.Editor.EditorTimeHelper.Update () (at C:/Projects/Sirenix/Sirenix Solution/Sirenix.Utilities.Editor/Misc/EditorTime.cs:70)
Sirenix.OdinInspector.Editor.OdinMenuEditorWindow.OnGUI () (at C:/Projects/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/OdinEditorWindow/OdinMenuEditorWindow.cs:271)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <ad04dee02e7e4a85a1299c7ee81c79f6>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <ad04dee02e7e4a85a1299c7ee81c79f6>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <ad04dee02e7e4a85a1299c7ee81c79f6>:0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at <2c7108252b3f412abf2ec8c94fb7c234>:0)
UnityEditor.HostView.Invoke (System.String methodName) (at <2c7108252b3f412abf2ec8c94fb7c234>:0)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <2c7108252b3f412abf2ec8c94fb7c234>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <2c7108252b3f412abf2ec8c94fb7c234>:0)
UnityEditor.DockArea.OldOnGUI () (at <2c7108252b3f412abf2ec8c94fb7c234>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Boolean eventIsPropagatedFromNonFocusableVisualElement) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Boolean eventIsPropagatedFromNonFocusableVisualElement) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean eventIsPropagatedFromNonFocusableVisualElement) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.EventDispatchUtilities.PropagateEvent (UnityEngine.UIElements.EventBase evt) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.MouseEventDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <47533d5f70c041debc5c751474c7409d>:0)

2. How can we reproduce it?

Just install Odin in an empty project.

3. If screenshots would help explain or demonstrate your issue, please include these.

4. What version of Unity are you using?

Unity 2019.3.0a12

5. What version of Odin are you using? (See "Tools > Odin Inspector > About")

Probably ver2.1.3

6. Do you have Editor Only mode enabled?

The [Settings] tab cannot be opened.
I think it is the default setting.

7. What operating system are you on?

Windows10 Home 64bit

Comments (1)

  1. Tor Esa Vestergaard

    Hi, and thanks for reporting the issue! This issue was recently introduced in the 2019.3 alpha branches, and has already been resolved in our own internal development branch. A fix for this will be out with the next Odin patch.

  2. Log in to comment