-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Editor freezes when reimporting glb if mesh has a shader material that contains an #include #94586
Comments
I can reproduce the freeze in the latest
|
The regression seems to have been introduced in 4.3.beta1, I can't reproduce it in 4.3.dev6 or earlier, but it's present from 4.3.beta1 onwards. Note that to reproduce the bug, the I bisected the regression to 846bafd / #92279, CC @SaracenOne. Note that in commits older than the merge of #92279, I see this error when reimporting the
|
The ai assistant said the program is freezing due to a deadlock while trying to acquire a mutex lock. The issue seems to be related to the ResourceLoader and its interaction with the ShaderPreprocessor. @RandomShaper Maybe you have some ideas. |
Tested versions
System information
Godot v4.3.beta3 - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 Ti (NVIDIA; 31.0.15.5244) - AMD Ryzen 7 5800X3D 8-Core Processor (16 Threads)
Issue description
Noticed than when switching from v4.2 to v4.3 that my editor would freeze when trying to re-import my mesh. It shows the "(Re)Importing Assets" dialog, but it's stuck on 0% and editor would freeze, requiring me to force close it.
When opening the project again the import does seem to have succeeded, though.
Not sure if it's truly the root cause, but managed to pin the issue down to a single thing: having an "#include" statement in one of my shaders. Doesn't seem to matter what the included file (or the shader for that matter) contains, even an empty file would freeze the editor. Removing the import "fixes" the issue. Didn't see any useful information in the logs/console.
Steps to reproduce
Or in the MRP:
Commenting out the
#include "util.gdshaderinc"
in line 3 innew_shader.gdshader
will stop the editor from freezing.Minimal reproduction project (MRP)
mrp.zip
The text was updated successfully, but these errors were encountered: