-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Condition "f.is_null()" is true at shader_rd.cpp:454 #73583
Comments
I don't see any errors in 4.0 stable, but the modified trees are still black. Maybe it will work if you just recreate your shader. |
Did you move your project folder or anything? This error indicates that Godot can't read from the shader cache. |
I no longer have the black texture issue with the latest official release. Nevertheless, f.is_null() is still happening for some reason from time to time. |
I didn't. |
I'm encountering this issue in 4.0-stable, on Windows 11 -- except the error is at line 455 (not 454), and I only see the error 21 times. The only ShaderMaterial in the project is loaded from code, not directly referenced by any property of any scene. The material appears correctly in the scene when the project is run, and the error does not appear when running the project (only when opening the editor).
I'm not familiar with the Godot source, but line 455 in shader_rd.cpp seems to be in a function for writing to the shader cache. The |
I am starting to think that the folder does not have permissions. So godot tries to access the file and returns null. Not sure thought. |
In my case, this turned out to be a manifestation of #52799 - directory nesting combined with the SHA-based filenames ran me just over the 260-character path length limit on Windows. |
Godot version
v4.0.rc1.official [8843d9a]
System information
Intel(R) Core(TM) i7-6700HQ, RAM 8,00 GB, 64 bits, GPU geforce gtx 960m
Issue description
I imported a .glb model (a tree) and applied a wind shader to one of its surfaces. Everything went great until I restarted the engine. Now the surface which had the shader applied is looking black (I add a tree without the shader on the right to make you have an idea of how it looks).
Then I noticed that each time the engine is started, it outputs the following error 26 times each:
" servers/rendering/renderer_rd/shader_rd.cpp:454 - Condition "f.is_null()" is true. "
Steps to reproduce
Just have a look at the single tree scene and its materials.
Minimal reproduction project
godot_project.zip
The text was updated successfully, but these errors were encountered: