Can not Launch Unity Due to "Failed to load window layout"

Hi, When I try to change editor font Unity crashed (bug report case : 1162537) And now I can not launch Unity what ever I do. here a screenshot that dialog window I get.

Imgur

What can I do about this? other than re-installing Unity?

PS: It was a fresh project. with no scripts in it. Only one sprite.

PS 2: Opening a new project or other existing did not solve the problem.

EDIT: apparently re-installing Unity did not solve the problem.

1 Like

Heya! :slight_smile:

Can you try deleting the Library/CurrentLayout.dwlt in your project?
Just as a warning you’ll lose your window layouts, but hopefully it will unblock you.

Alternatively you can try deleting ~/Library/Preferences/Unity/Editor-5.x/Layouts/LastLayout.dwlt (macOS) or %APPDATA%\Unity\Editor-5.x\Layouts\LastLayout.dwlt (Windows).

16 Likes

Looking at the editor log, it seems you used a preview build with a different set of fonts. Unfortunately the workaround is to delete the following preference key: <strong>HKEY_CURRENT_USER\Software\Unity Technologies\Unity Editor 5.x\user_editor_font_*</strong> or start unity with the switch **-cleanTestPrefs**

To edit preferences key you need to open “regedit.exe”.

We’ll work on a proper fix for upcoming releases of 2019.3.

Thanks,

2 Likes

Hi, this one solved the problem. Thanks a lot.

2 Likes

There is no such setting.

1 Like

Did you try what harryr said too?

I’ve tried. It doesn’t work at all.

4985678--486362--unity_hata.png

(Case 1186313)
https://fogbugz.unity3d.com/default.asp?1186313_h695ie4sqofqj279

Change your operating system “Region & Language” settings to United Kingdom.

6 Likes

Thanks, the problem is solved.

2 Likes

Hi @harryr & @jonathans42 . It seems this bug is tagged as “Won’t Fix” in the issue tracker (https://issuetracker.unity3d.com/issues/failed-to-load-window-layout-error-window-is-shown-when-trying-to-open-projects-and-specific-regional-format-is-chosen). Why is that? You can’t change the language of the OS in some Windows licenses/versions (I believe except Pro, you can’t change it). This problem wasn’t exist in the first betas (I believe started to happen in 2019.3.0b5).

Can you confirm if you’re issue is fixed after reverting your layouts via this menu item?
5149274--510038--upload_2019-11-7_13-9-49.png

1 Like

We can’t open the Unity (fresh install, new project) =/ Is there any other way to reset it (like the removing LastLayout.dwlt as you said above)?

2 Likes

I tried the above solutions, but the bug hasn’t improved. (I’ve tried all beta versions)

1 Like

I’ve re-opened the case and started discussions with the relevant devs, will get back to you when I have a further updates :slight_smile:

2 Likes

Thank you so much! If you need further report/log or something, just let me know. :slight_smile:

1 Like

@TeorikDeli_1 Happy to confirm this issue has been fixed in 2019.3.0f3 :slight_smile:

1 Like

@harryr Thank you and your team!

I have the same problem, I cant load unity anymore, I was using 2020.1.0.a12 just fine, rebooted and now I cant get it to load. Selecting load default layout or revert factory settings does not work.

deleting dwlt files did not help!..

edit: deleting these worked (thank god)…

“C:\Users%USERNAME%\AppData\Roaming\Unity”
“C:\Users%USERNAME%\AppData\LocalLow\Unity”
“C:\Users%USERNAME%\AppData\Local\Unity”

Not sure if its related but I have a chinese username on my pc (bought in taiwan and couldnt fix) ie C:\Users\ㄈ

4 Likes

Tried every single thing people said here and had no luck.
Every new project I create since I downloaded Unity 2020.1.0a gives me this message. I can at least open and build my projects normally, but it is still down there in the Console.