NullReferenceException:

Why do I get the following when I add an Element or select one from the hierarchy or I press the message itself

“NullReferenceException: Object reference not set to an instance of an object
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.”

Any active editor scripts?

Yes, a lot of them
but not necessarily on object that make the error, the error comes out all the time with almost anything I do

The error doesn’t say the script name and line number?

Thats the problem , it doesn’t say anything , It happened even when I select items in the hierarchy

Anything in the logs?

Yes, what I first posted is all

No, I mean the more verbose version from Editor.log file. That can’t be everything.

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.IMGUI.Controls.TreeViewController.IsItemDragSelectedOrSelected (UnityEditor.IMGUI.Controls.TreeViewItem item) (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeViewController.cs:465)
UnityEditor.IMGUI.Controls.TreeViewController.DoItemGUI (UnityEditor.IMGUI.Controls.TreeViewItem item, Int32 row, Single rowWidth, Boolean hasFocus) (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeViewController.cs:479)
UnityEditor.IMGUI.Controls.TreeViewController.IterateVisibleItems (Int32 firstRow, Int32 numVisibleRows, Single rowWidth, Boolean hasFocus) (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeViewController.cs:670)
UnityEditor.IMGUI.Controls.TreeViewController.OnGUI (Rect rect, Int32 keyboardControlID) (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeViewController.cs:601)
UnityEditor.SceneHierarchyWindow.DoTreeView (Single searchPathHeight) (at /Users/builduser/buildslave/unity/build/Editor/Mono/SceneHierarchyWindow.cs:583)
UnityEditor.SceneHierarchyWindow.OnGUI () (at /Users/builduser/buildslave/unity/build/Editor/Mono/SceneHierarchyWindow.cs:409)
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 /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:295)
UnityEditor.HostView.Invoke (System.String methodName) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:288)
UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:255)

I get this log whatever I do, Literally basically anything , sometimes it stops for a few hours and then it comes back , it is very bazar.

Does it happen in an empty scene?

No , it happens when I select objects in the hierarchy , Im in playmode and when I select the message itself

Does it happen if you open a new scene, add 2 GameObjects and try selecting them?