I’ve recently been experiencing repeat exceptions thrown in the Unity Editor whenever I click on something in the scene hierarchy or even attempt to use the Animator tool. There are several exceptions thrown by the editor repeatedly:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.TooltipView.Setup (System.String tooltip, Rect rect) (at C:/buildslave/unity/build/Editor/Mono/TooltipView/TooltipView.cs:63)
UnityEditor.TooltipView.Show (System.String tooltip, Rect rect) (at C:/buildslave/unity/build/Editor/Mono/TooltipView/TooltipView.cs:91)
I’m pretty sure it’s not related to me, but can’t seem to find any other threads where other devs have been experiencing this issue, it actually stops me from continuing with work :(.
I’ve raised several bug reports but want to understand if this is a broader issue or it really is just something I’m inadvertently doing wrong.
NotImplementedException: Visual tree is read-only during repaint
UnityEngine.Experimental.UIElements.Panel.PaintSubTreeChildren (UnityEngine.Event e, UnityEngine.Experimental.UIElements.VisualElement root, Matrix4x4 offset, Rect textureClip) (at C:/buildslave/unity/build/Runtime/UIElements/Managed/Panel.cs:551)
UnityEngine.Experimental.UIElements.Panel.PaintSubTree (UnityEngine.Event e, UnityEngine.Experimental.UIElements.VisualElement root, Matrix4x4 offset, Rect currentGlobalClip) (at C:/buildslave/unity/build/Runtime/UIElements/Managed/Panel.cs:536)
That’s interesting. I just created a blank project and the result is: this is good, means it’s not me. My project was created in a couple of versions prior and I’ve always ensured that I’ve updated assets and scripts etc as I went to ensure there were no issues. This means it’s not me It’s a VR project for HTC Vive as well, and I haven’t even imported the steam VR plugin into this new project ( screen shot below ).
On closer observation, it happens whenever you hold the mouse pointer over anything that generates a tooltip. It seems the tooltip system is broken. If I hold the mouse pointer over the “rotate object” icon, it throws the exception as well… OMG what have I done to my editor
THANKS! I was having exactly the same issue - I’d bugged it but Unity hadn’t replied.
fyi, I was running two versions of Unity on my PC so this might have caused it in my case at least. The same errors were appearing in blank scenes in both versions.