ArgumentOutOfRangeException: Argument is out of range. Parameter name: index

I am getting this error every time I create a new project. Even if I import nothing with the project. I have previously used Playmaker and Procore. I have created no code. I have added nothing to any scenes and this error will not go away.

ArgumentOutOfRangeException: Argument is out of range. Parameter name: index System.Collections.Generic.List`1[UnityEditor.EditorWindow].get_Item (Int32 index) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:633) UnityEditor.DockArea.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:328)

EDIT: I was able to fix it by resetting the layout. But having to reset the layout every time I start a new project is annoying because I am going through a lot of tutorials right now.

Getting this issue with current latest versions 5.4.1p4 and 5.5 beta 6

For anybody reading this. It was a Unity bug that has since been fixed. I haven’t encountered it again since I updated.

This error is resolved forme using the localhost URL for me,This issue is still in Unity version 2017.3.1f1 .

Facing same issue dont know to resolve it?

buskamuza: I had the same issue with version 5.5.0f3
Your solution worked for me as well, thanks a lot!