Unity 2017.3.1f1 Editor Keeps throwing Exceptions

Hey there community and Unity folk :slight_smile:

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:

First one thrown is:

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.

Cheers

Leeroy

Now I am getting this on scene start up:

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)

Is this happening on a new empty project even? Or are you possibly loading a project that you had worked on in other versions of unity?

That’s interesting. I just created a blank project and the result is: :frowning: 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 :slight_smile: 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 :slight_smile:

I just upgraded to beta 2018… .same problem:

I think I may have found a work around:

If I reset the editor back to factory settings:

3456512--274013--upload_2018-4-10_16-49-5.png

The tooltips start appearing again and I don’t get this error. :slight_smile:

2 Likes

Ahh cool. Well thats good you found a workaround, in case others run into this.

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.