2017.1.0f1: (Case 925890) "Maximize On Play" causes "Invalid editor window" error

Creating a new project, activating “Maximize On Play” in the Game window and pressing Play causes Unity to display the following error:
Invalid editor window UnityEditor.FallbackEditorWindow
UnityEditor.EditorApplicationLayout:SetPlaymodeLayout()

Please see video that I attached to the bug-report.

I believe the error is caused by having had a different project opened before that uses custom editor windows. Using “Windows/Layout/Default” often fixes the error, but it comes back once a project with custom editor windows was open.

Reproduce

  • Open any project that uses custom editor windows in its layout
  • Open attached project from this bug-report
  • Focus Game window and activate “Maximize On Play”
  • Press Play

Observe the editor outputs an error message.

Expected
No error when maximizing the Game window.

Reply from QA:

Although, in my case, I never had the Animation window open how it’s described in the linked issue.