Using Unity6 and Shader Graph 17.0.3,
I created a new empty URP Lit Shader Graph and applied a material to a 2D Sprite Renderer.
That’s it.
Every time I save the Shader Graph, the following error pops up (this way doesn’t cause any issues in Unity 2022.3):
error1:
State comes from an incompatible keyword space
Expected: From shader: 'Hidden/InternalErrorShader' Keyword count: 7 Keywords: STEREO_INSTANCING_ON UNITY_SINGLE_PASS_STEREO STEREO_MULTIVIEW_ON STEREO_CUBEMAP_RENDER_ON FOG_LINEAR FOG_EXP FOG_EXP2
Actual: From shader: 'YY/New Shader Graph' Keyword count: 46 Keywords: STEREO_INSTANCING_ON UNITY_SINGLE_PASS_STEREO STEREO_MULTIVIEW_ON STEREO_CUBEMAP_RENDER_ON LIGHTMAP_ON DYNAMICLIGHTMAP_ON DIRLIGHTMAP_COMBINED USE_LEGACY_LIGHTMAPS _MAIN_LIGHT_SHADOWS _MAIN_LIGHT_SHADOWS_CASCADE _MAIN_LIGHT_SHADOWS_SCREEN _ADDITIONAL_LIGHTS_VERTEX _ADDITIONAL_LIGHTS LIGHTMAP_SHADOW_MIXING SHADOWS_SHADOWMASK _FORWARD_PLUS EVALUATE_SH_MIXED EVALUATE_SH_VERTEX DOTS_INSTANCING_ON PROBE_VOLUMES_L1 PROBE_VOLUMES_L2 _FOVEATED_RENDERING_NON_UNIFORM_RASTER INSTANCING_ON FOG_LINEAR FOG_EXP FOG_EXP2 _SCREEN_SPACE_OCCLUSION _ADDITIONAL_LIGHT_SHADOWS _REFLECTION_PROBE_BLENDING _REFLECTION_PROBE_BOX_PROJECTION _SHADOWS_SOFT _SHADOWS_SOFT_LOW _SHADOWS_SOFT_MEDIUM _SHADOWS_SOFT_HIGH _DBUFFER_MRT1 _DBUFFER_MRT2 _DBUFFER_MRT3 _LIGHT_LAYERS DEBUG_DISPLAY _LIGHT_COOKIES _WRITE_RENDERING_LAYERS _MIXED_LIGHTING_SUBTRACTIVE _GBUFFER_NORMALS_OCT _RENDER_PASS_ENABLED _CASTING_PUNCTUAL_LIGHT_SHADOW EDITOR_VISUALIZATION
0x00007ff92a882fbd (Unity) StackWalker::ShowCallstack
0x00007ff92a892f79 (Unity) PlatformStacktrace::GetStacktrace
0x00007ff92baf943e (Unity) Stacktrace::GetStacktrace
0x00007ff92c0a0fcf (Unity) DebugStringToFile
0x00007ff92c0a0b8a (Unity) AssertImplementation
0x00007ff92a546018 (Unity) keywords::LocalKeywordState::ValidateSpace
0x00007ff92a545149 (Unity) keywords::LocalKeywordState::Mask
0x00007ff92a57ac4e (Unity) ShaderLab::Pass::RemapKeywordsIfNeeded
0x00007ff92a577808 (Unity) ShaderLab::Pass::ComputePassValuesHash
0x00007ff92a4fcb36 (Unity) Material::UpdateHashes
0x00007ff92a4e5a95 (Unity) Material::AcquireSharedMaterialData
0x00007ff929fe50a3 (Unity) BaseShouldSRPBatch
0x00007ff92a30880c (Unity) SpriteRenderer::ShouldSRPBatch
0x00007ff92a308025 (Unity) SpriteRenderer::SetupProperties
0x00007ff92a304a7e (Unity) SpriteRenderer::AwakeFromLoad
0x00007ff92ad71b37 (Unity) SynchronizeMeshRenderersAndMaterials
0x00007ff92ad7197a (Unity) AssetHotreload
0x00007ff92bcb72f2 (Unity) AssetHotreload
0x00007ff92bce1f5b (Unity) HotreloadV2
0x00007ff92bce8be4 (Unity) ProcessPostProcessAllAssetNotificationsAndHotReload
0x00007ff92bcf561f (Unity) StopAssetImportingV2Internal
0x00007ff92bce2809 (Unity) ImportAtPathV2
0x00007ff92bca53a2 (Unity) AssetDatabase::ImportAtPath
0x00007ff929cf21da (Unity) AssetDatabase_CUSTOM_ImportAsset
0x0000020f59d4525d (Mono JIT Code) (wrapper managed-to-native) UnityEditor.AssetDatabase:ImportAsset_Injected (UnityEngine.Bindings.ManagedSpanWrapper&,UnityEditor.ImportAssetOptions)
0x0000020f59d45123 (Mono JIT Code) UnityEditor.AssetDatabase:ImportAsset (string,UnityEditor.ImportAssetOptions)
0x0000020f59d44edb (Mono JIT Code) UnityEditor.AssetDatabase:ImportAsset (string)
0x0000020f59d42593 (Mono JIT Code) UnityEditor.ShaderGraph.Drawing.MaterialGraphEditWindow:SaveAsset () (at ./Library/PackageCache/com.unity.shadergraph/Editor/Drawing/MaterialGraphEditWindow.cs:626)
0x0000020f59d4235b (Mono JIT Code) UnityEditor.ShaderGraph.Drawing.MaterialGraphEditWindow:<set_graphEditorView>b__25_0 () (at ./Library/PackageCache/com.unity.shadergraph/Editor/Drawing/MaterialGraphEditWindow.cs:89)
0x0000020f55b797eb (Mono JIT Code) UnityEditor.ShaderGraph.Drawing.GraphEditorView/<>c__DisplayClass57_0:<.ctor>b__0 () (at ./Library/PackageCache/com.unity.shadergraph/Editor/Drawing/Views/GraphEditorView.cs:184)
0x0000020f5591134f (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
0x0000020f55ad4f0b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
0x0000020f59ca015b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
0x0000020f59cb2fd3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
0x0000020f59cb2b1b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
0x0000020f59cb2a03 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
0x0000020ee3a1e103 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEventBubbleUp (UnityEngine.UIElements.EventBase)
0x0000020f59c9ddcc (Mono JIT Code) UnityEngine.UIElements.EventDispatchUtilities:HandleEventAcrossPropagationPathWithCompatibilityEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel,UnityEngine.UIElements.VisualElement,bool)
0x0000020f59c9ab9b (Mono JIT Code) UnityEngine.UIElements.EventDispatchUtilities:DispatchToCapturingElementOrElementUnderPointer (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel,int,UnityEngine.Vector2)
0x0000020f59c9a7ab (Mono JIT Code) UnityEngine.UIElements.PointerEventBase`1<T_REF>:Dispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x0000020f55ae9d9e (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel)
0x0000020f55ae9893 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel,UnityEngine.UIElements.DispatchMode)
0x0000020f55ae9713 (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
0x0000020f558344bb (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x0000020f55833ec3 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
0x0000020f55833cdf (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
0x0000020f55833bfb (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
0x0000020f55832b7a (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
0x0000020f55832d36 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
0x00007ff9410a697e (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ff940fe8444 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3068)
0x00007ff940fe8530 (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3115)
0x00007ff92a7a6fc4 (Unity) scripting_method_invoke
0x00007ff92a77ee53 (Unity) ScriptingInvocation::Invoke
0x00007ff92a77a115 (Unity) ScriptingInvocation::Invoke<void>
0x00007ff92a8be57d (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007ff92baaee74 (Unity) GUIView::ProcessRetainedMode
0x00007ff92bb3a38a (Unity) GUIView::OnInputEvent
0x00007ff92baaeda3 (Unity) GUIView::ProcessInputEventInternal
0x00007ff92baaec31 (Unity) GUIView::ProcessInputEvent
0x00007ff92bb3afd1 (Unity) GUIViewPlatform::ProcessEventMessages
0x00007ff92bb3757f (Unity) GUIViewPlatform::GUIViewWndProc
0x00007ffa19c983f1 (user32) DispatchMessageW
0x00007ffa19c97eb1 (user32) DispatchMessageW
0x00007ff92bafdfd3 (Unity) MainMessageLoop
0x00007ff92bb03e22 (Unity) UnityMain
0x00007ff6b8582fba (Unity) __scrt_common_main_seh
0x00007ffa18ec257d (KERNEL32) BaseThreadInitThunk
0x00007ffa1a0aaf08 (ntdll) RtlUserThreadStart
error2:
Incompatible keyword states
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
