SG v12 are pretty broken

Hi,

When I have multiple material in a scene using the same shader graph shader, some of them keep turning purple, it happens when I save the scene, Ctrl + S to flush material changes to file, and Ctrl + D to duplicate the material.

I only have 1 boolean keyword in the shader graph, and Unity keep giving me “Incompatible keyword states” and “State comes from an incompatible keyword space” errors that I have no idea how to fix.

I even tried removing the keyword, yet the error persists.

Please advice on why?

Thx!

Workaround so far:

  1. If I select them in the hierarchy view, they recompile and become normal again.
  2. If I re-save the shader graph asset, they recompile and become normal again.