- Home /
(Unity:23929): Gtk-CRITICAL **: 14:06:35.951: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
Editor Version 2018.3.11,Can't load scene. Editor Version 2018.3.11 OS: Ubuntu 18.04
(Unity:23929): Gtk-CRITICAL **: 14:06:35.951: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
I got the same issue on 2019.4.3f1+ on Ubuntu 18.04 after some package upgrades I guess (but not sure which ones). I submitted a bug report but it's difficult for them to help me as it only happens on one of my machines... (the other runs $$anonymous$$int 19.2 with Cinnamon to be exact)
Answer by huulong · Jan 09, 2021 at 01:04 PM
Try this:
In your project, delete the Library folder. I found that CurrentLayout-default.dwlt in particular must be deleted, so you can try that first if your project is big and want to avoid long rebuilding times.
In ~/.config/unity3d/Preferences/Editor-5.x, delete the Layouts folder
In ~/.config/unity3d, delete the Browser folder
In ~/.config/unity3d, delete the Editor folder (there is one sub-folder per editor version but the serial number cannot be trivially matched with a human-readable version, so maybe just delete the whole folder)
Restart the project
I found 1, 2 & 3 to work in my case, and only 1+2 or 2+3 not to work. At least it should work when installing a new editor / re-installing an editor version. I also did 4 at some point so it may be needed for editor versions already installed. I did 2 at the beginning so not sure if required.