Condition "g->nodes.has(p_id)" is true

Godot Version

4.3

Question

I have no idea what I am doing, and this shader is causing major lag on older systems. Could a wizard please assist me and explain this error?

image


Shader

bump

Have you figured out the problem? I didn’t notice any lag, but I get the exact same error even though everything seems to work fine…


image

Unfortunately never found a solution.

This issue usually points to one of a few potential problems:

There might be duplicate node IDs in your visual shader graph.
You could be trying to add a node with an ID that’s already in use.
Alternatively, there might be a corrupted connection between nodes.
I’d recommend checking your shader graph for any duplicate IDs or invalid connections. If that doesn’t resolve it, you might need to rebuild the problematic part of the graph.

1 Like

This look like a bug, i recommend report on Godot github

2 Likes

I was getting the same error on a built-in visual shader. Saving it as an external visual shader to the FileSystem then dragging it back into the Shader property resolved the issue.

The error is related to a caching issue in Godot’s Visual Shaders. If possible, try to isolate which shader is causing the problem. Once you have a suspect, remove it from your project while Godot is closed. Then, reopen the project, save it, and try running the game. If the problem persists, it may be caused by another shader. If it goes away, the one you removed was likely the issue.

After identifying the problematic shader, add it back to your project, open it in Godot, edit some small detail (to force the file to reload), and save the project. Then run the game again — this should resolve the error.

I believe this issue is already being tracked and is likely to be fixed in future versions of Godot.