-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Vulkan: Using a lot of different materials spams error message #59912
Comments
How old is this build? This seems related to #58491 - My guess would be that the textures allocated are never freed and the engine runs to exhaustion. But that's just my 2 second analysis. |
5 days ago, you can simply check by going into |
Ah my bad, I missed it and I didn't even realize that was a clickable version link 😮 |
Just updated the post, I found another bug which was |
Not too sure if it's the same issue (didn't see the output panel) but I had the engine completely freeze and then crash on me. I only had two scenes opened (main, which does use more materials but not in editor, they're preload()'ed for in-game use, and the prefab I was working on, which only used one material. Before it froze completely, it exhibited symptoms similar to a memleak... |
@Zireael07 you can open godot with terminal and use a |
I get the material error too in 35596e6
It is easy to reproduce by adding a MeshInstance3D to the scene, add a new material override, and close the scene. It's not really freezing for me, but when there are lots of materials it can take a very long time to endure the spamming. In my case it completely overwhelms VSCode when debugging (thousands of log entries, which is above console capacity), which prevents me from seeing any other errors that could have happened before the spam. |
thanks for showing a way to reproduce, for me the engine is almost unusable, I have to close and open again every 5 min :/ |
FWIW, I'm hitting this using voxel_tools. I only have 1 material, and it doesn't freeze the engine, but I get about 4000 of these errors each time I regenerate the terrain. |
So I started getting this Errors while manipulating a Material of an Object through the "Surface Material Override" and was freeing them with "queue_free()" My Workaround is to set the Override-Material to null before queueing it free:
Edit: Maybe it has something to do, when something needs to be rendered but is queued free? |
this error is already fixed, I didnt had this issue anymore, also not related to queue_free! edit: It doesnt freeze the engine anymore, but still spam the error message! |
I'm seeing the same errors in Notes (may not be relevant):
|
Still present in v4.0.beta.custom_build [2ec0da1]: |
get the same error messages in 4.0rc2 |
I'm getting a bunch of these errors every time I call queue_free() (deferred or not) on characters in my game: PS: Doing what @Lippanon suggested, and moving the materials from surfate_material_override to material_override, solves the issue. |
Godot version
v4.0.alpha.mono.custom_build [a647fb3]
System information
manjaro KDE
Issue description
I'm testing the game a lot, this needs to constantly and frequently open and close the game, but suddenly the engine freezes with the following message:
Steps to reproduce
New way:
Old way:
No Idea how to reproduce, but since its related to materials, I'm using particles, so maybe a possibility could be:
Minimal reproduction project
N/a
The text was updated successfully, but these errors were encountered: