Search Issue Tracker

Fixed in 2021.1.X

Fixed in 2019.4.X, 2020.1.X, 2020.2.X

Votes

58

Found in

2020.1

2020.2

Issue ID

1275270

Regression

Yes

[window layout] cannot load editor layout, stuck in infinite loop of "failed to load window layout"

Window management

-

steps to repro:
1a. copy the attached "corrupted" LastLayout.dwlt into ~/Library/Preferences/Unity/Editor-5.x/Layouts/default/ (or win/linux equivalent directory)
1b. create a new project via Unity hub

Expected: project is created and opens (and... revert factory settings / load default layout buttons fix the issue and Unity opens)
Actual: project is created but then a dialog appears and user is stuck in infinite loop that can only be stopped by selecting "quit"

repro: 2020.2.0a21, 2020.1.5f1
no repro: 2019.4.6f1

Note:
- found on MacOS
- "Failed to load window layout" window causes user to be caught in an infinite loop since nothing fixes the issue so the window will stay
- 2019.4.6f1 can successfully open with the "corrupted" LastLayout.dwlt but does show console errors

Workaround:
- try moving or deleting the files at
- ~/Library/Preferences/Unity/Editor-5.x/Layouts/default/LastLayout.dwlt (or equivalent path)
- <PROJECT>/Library/CurrentLayout-default.dwlt

  1. Response avatar

    Resolution Note (fix version 2021.1):

    You can resolve this issue by upgrading to the appropriate fixed version:
    - 2021.1.0a5
    - 2020.2.0b12
    - 2020.1.14f1

    What has changed?
    - “Failed to load window layout” popup dialog now displays the error that occurred when loading the layout.
    - Choosing “quit” will remove the broken layout from the cache.
    - Choosing “Load default layout” or “revert factory settings” no longer results in an infinite loop with “Failed to load window layout”
- A console error will indicate why Unity failed to load the window layout - this can be cleared.

  2. Response avatar

    Resolution Note (fix version 2020.2):

    Tested fixed in 2020.2.0b12

    Unity no longer creates an infinite loop of popup dialogs when attempting to load an invalid or corrupted layout.

  3. Response avatar

    Resolution Note (fix version 2020.1):

    Tested fixed in 2020.1.14f1

    Unity no longer creates an infinite loop of popup dialogs when attempting to load an invalid or corrupted layout.

Comments (43)

  1. F3d7ae271e46eb178e7dd4f2ef760e6f?d=mm

    wyckster

    Sep 19, 2020 19:06

    IMAKHIIL's solution works for me. Restore factory defaults makes the right change to CurrentLayout-default.dwlt, but clicking Quit reverts the change back to the broken version(weird!). So you have to edit the file after clicking factory default but before clicking quit and copy the contents somewhere (clipboard is fine). Then Quit, then paste the factory default content back into the file and save it.

  2. 62bc80bcc70badd9c93fa7f114dfa820?d=mm

    Imakhiil

    Sep 19, 2020 13:48

    2020.2.0b1.2959 -- Same problem.

    Xezrunner's workaround helped me tho:

    "I managed to solve the window layout issue this way:
    - I clicked on 'Load default layout' - the contents of CurrentLayout-default.dwlt reverted to the correct form that would work.
    - I opened the file in Notepad++.
    - It then returned to an empty (corrupt) layout file when clicking 'Quit'.
    - Notepad++ now offered me to refresh the file, which I declined.
    - I now saved the previous, correct file.

    The project now opens."

  3. 589054f09fc23f99d8c298331ba36058?d=mm

    SeekerBear

    Sep 17, 2020 19:49

    Also occurs on 2020.1.6f1

  4. 5d3a000b4c736ad5ed91933d31118138?d=mm

    xezrunner

    Sep 17, 2020 13:17

    I managed to solve the window layout issue this way:
    - I clicked on 'Load default layout' - the contents of CurrentLayout-default.dwlt reverted to the correct form that would work.
    - I opened the file in Notepad++.
    - It then returned to an empty (corrupt) layout file when clicking 'Quit'.
    - Notepad++ now offered me to refresh the file, which I declined.
    - I now saved the previous, correct file.

    The project now opens.

  5. 3d58bab92b2165d78b9d325085a75702?d=mm

    RWOverdijk

    Sep 17, 2020 11:16

    Same here.

    Windows, Unity 2020.1.5f1.

    Clean install of unity (first time on this machine). Clean new project.

  6. 2cce3d94fd860b6a1d23f336f6303852?d=mm

    shiloh09630

    Sep 16, 2020 19:23

    I am currently having this same issue... I have tried all suggestions on this page and still nothing. I am unable to load a previous working version of any project nor am I able to create a new project. Any help with this would be greatly appreciated

  7. 7ae2f3f7727b8f99cb66a84710cf69ad?d=mm

    banksysan_unity

    Sep 16, 2020 17:23

    Another workaround:

    Copy one of the layouts from the default list in the editor directory into the Library folder overwriting CurrentLayout-default.dwlt.

    i.e.

    C:\Program Files\Unity\Hub\Editor\<Version>\Editor\Data\Resources\Layouts\2 by 3.wlt => …\Library\CurrentLayout-default.dwlt.

  8. 9e4cbefc93feb1ac417db6a09b407a7d?d=mm

    chiblue3D

    Sep 14, 2020 20:03

    I found a work around, kind of sucks but I removed all installs of the HUB and Unity, cleaned the registry of any "unity" entries and then removed all Unity folders from the Users/.../AppData.

    But now I can open a new project without issue..

  9. 9e4cbefc93feb1ac417db6a09b407a7d?d=mm

    chiblue3D

    Sep 14, 2020 19:54

    I just starting getting this today, I was using my projects in Unity 2020.1.5f1 without issue, this just today 9/14/2020 after 12PM Est. suddenly I started getting this issue. On all existing projects and creating new projects. I UN-installed all unity versions, including the HUB, did a clean install but I still get same error on a new project.. No matter what I try, from different solutions online, I cannot open a project. This is a serious issue as I am in the middle of my project development.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.