NullReferenceException: UnityEditor.DockArea.OnGUI

Hey all,

I finally had the time to check on the game I made at the Trainingsday of Unite Amsterdam last Tuesday. I’ve simply copied the phase 0 folder to my computer (since that was the one that has the finished game from the end of the day) and did a run of the game.

Although the game works as it should, I get the following message which I didn’t get on my laptop during testing the game on the trainingsday:

I’ve got 10 of these messages.

I kinda understand why there’s this error message, since I don’t have this folder “buildslave” on my harddrive, but I didn’t have it on my laptop either.

Why am I getting this message and how can I solve this?

Thanks for the help!

Which version of Unity do you have installed?

I’ve got Unity 5.1.1f1, the same I used on Trainingsday.

The problem seems to have solved itself aftger restarting unity and opening the game again.

Sorry for grave digging an older post, but we’re experiencing this problem on multiple work stations with Unity 5.3.4p1. Furthermore the editor crash or freeze when pressing play in anything but a new empty scene after making a build. Pressing play in a new empty scene produces these 10 messages, but in turn allows us to play our other scenes until we make another build. While it hasn’t crippled production as such, it is extremely annoying and costs us some hours of work every week, with bug reporting and all.

I’ve filed multiple bug reports related to these issues (as they’ve revealed themselves), but no actions have been taking so far and they are all marked as “Open”. The tickets are: 779010, 781499, 781500 and 781503.

I wish Unity didn’t have so many bugs as we’re otherwise extremely happy with the product.

I’m having the same error in Unity 5.4.1.

I’m seeing this after opening + running a scene from the Blacksmith project by Unity from the Asset Store. running 5.4.1f1

FWIW fortunately we were able to fix this woe, by simply “totally reinstalling” Unity a few times. Hope it helps someone.

(be sure to get the latest, 5.4.1p2 at the moment)

Still getting this with 5.4.1.f1

Same issue.

NullReferenceException: referencia de objeto no establecida en una instancia de un objeto
UnityEditor.DockArea.OnGUI () (en C: /buildslave/unity/build/Editor/Mono/GUI/DockArea.cs: 272)

Lo mismo , espero Poder: entregar mi Tesis si ningun problema

Hey I have gotten this error also and after closing my Asset Store tab in the editor then pressing play, it was perfectly fine. Don’t know why, it just worked, maybe try messing around with some of the in editor windows and try removing and adding tabs till the problem is resolved :confused:

3 Likes

Same issue in 2021.1.21f1. try reset layer to default, it’s work for me.

Same here, but it fixed when I set the layout to Default, guys please try.