-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors after setting custom theme in project settings #54752
Comments
Hmm, I wonder if the problem is related to the usage of SVG for icons, instead of, say, PNG. |
I just tested that hypothesis by removing the SVG images from the custom theme and replacing one of them with a PNG. I get the same 7 errors in the same order, but of course this time they refer to the PNG where they used to refer to the SVG. |
EDIT: I was wrong. See my next comment for more details. |
I also encounter similar problem. In my case i use webp image, then when I run the the game, Theme is not working and the theme just reverted to default. |
AureaFUNSoft's comment got me to double check, because I thought the theme was working despite these errors. And I found something interesting. If I close the project, delete the But if I then delete the So the current workaround is to delete the |
I have the same issue on the same version, Windows 10, GLES3, NVIDIA GeForce GT 540M, graphics driver version 23.21.13.9135, Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz. The issue occurred when I added a texture to CheckButton by dragging an imported graphic from the editor - the theme stopped displaying, the same errors appeared. Adding a new StreamTexture to CheckButton and manually setting the resource to res://.import/button.png-76b80516a6ac8aaf48535d9d57e0549f.stex caused the theme to start displaying, but the CheckButton texture still does not appear, and the following errors appeared: |
Tested with 3.4 and 3.4.1rc1 (Linux)
|
This is not actually a regression. Under the same circumstances, this used to crash the editor on project open, see #51003. I've just tried again with 3.3-stable with the MRP from this report, and it does indeed just crash on open. My previous PR fixed the crash, but my research didn't actually lead me to an understanding of what is going on here, see #51014. I think that WebP module is not loaded (yet?) when we attempt to load the theme and its subresources — icons. It is indeed irrelevant what format the source images are in, the StreamTexture is trying to load its internal data which is in WebP. So the errors here are the same for SVGs and PNGs alike. |
I'm not sure that what you're describing fully explains this issue. The MRP project crashes for me in 3.3.4-stable as well. But I assumed that was because the files were imported using 3.4-stable, and that it wasn't backwards compatible. If I delete the I didn't start to see these errors in 3.4-stable until I deleted the So it seems to me that it has more to do with how 3.4 is trying to import the files than it has to do with waiting for things to be loaded. |
It is absolutely because of the load order. Your observations are explained by #47854 also being a part of 3.4. The way the textures are imported by default has changed and WebP module is now required. |
Understood. Thank you for explaining. |
Is this expected to be fixed for 3.4 release? Currently the only breaking bug we have before release later this month. So as I understand correctly, if i would open the project in 3.3.4 and generate a .import file for the Theme and related textures, it would work in 3.4 as long as you not re-import the assets? |
It's not been merged yet, but yes, #55484 can be cherry-picked for a 3.4.x patch.
I think you can also fix this in 3.4 temporarily by forcing it to import PNGs. See the
The 3.3 trick should work, as long as you run it on the same machine with pregenerated |
im having the same problems, and when i try to load my project in 3.3.4 it simply crashes. it definitely isn't backwards compatible. |
You need to delete the .import folder before opening your project in 3.3. That's because 3.3 is not forward compatible with some changes in 3.4. You should also be able to avoid the issue in 3.4 itself by forcing PNG imports (see discussion above). Or you can wait for 3.4.1 patch that fixes the issue with the default setting. |
Godot version
v3.4.stable.official [206ba70]
System information
Windows 10
Issue description
I'm using a custom theme in my project. Instead of having to remember to manually set the custom theme override for each Control node in various scenes to be able to get an accurate preview, I've set the custom theme in the Project Settings.
When I press F5 (or F6) to test the project/scene I get a bunch of errors related to loading the theme and custom images as the window launches.
If I unset the custom theme from Project Settings and just set my top-most Control node's Theme override to use the custom theme, these errors go away. Furthermore, when I have the custom theme configured as a project setting and launch a scene which doesn't have any Control nodes (i.e., no custom theme set or referenced in the scene), I still get these errors. This leads me to believe that my custom theme is okay, and all the related files are okay, but that the problem is somehow related to how the custom theme interacts with the Project Settings.
Steps to reproduce
Minimal reproduction project
CustomThemeBugReport.zip
The text was updated successfully, but these errors were encountered: