Search Issue Tracker

Fixed in 5.12.0

Votes

5

Found in [Package]

5.8.2

Issue ID

1141507

Regression

Yes

GUILayout error after saving a shader in shader graph

Package: Shader Graph

-

After making and saving a simple shader, i get this error in the console:

ArgumentException: GUILayout: Mismatched LayoutGroup.repaint
UnityEngine.GUILayoutUtility.BeginLayoutGroup (UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options, System.Type layoutType) (at C:/buildslave/unity/build/Modules/IMGUI/GUILayoutUtility.cs:311)
UnityEngine.GUILayout.BeginScrollView (UnityEngine.Vector2 scrollPosition, System.Boolean alwaysShowHorizontal, System.Boolean alwaysShowVertical, UnityEngine.GUIStyle horizontalScrollbar, UnityEngine.GUIStyle verticalScrollbar, UnityEngine.GUIStyle background, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Modules/IMGUI/GUILayout.cs:360)
UnityEngine.GUILayout.BeginScrollView (UnityEngine.Vector2 scrollPosition, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Modules/IMGUI/GUILayout.cs:349)
UnityEditor.ShaderInspector.ShaderErrorListUI (UnityEngine.Object shader, UnityEditor.ShaderMessage[] messages, UnityEngine.Vector2& scrollPosition) (at C:/buildslave/unity/build/Editor/Mono/Inspector/ShaderInspector.cs:181)
UnityEditor.ShaderInspector.ShowShaderErrors (UnityEngine.Shader s) (at C:/buildslave/unity/build/Editor/Mono/Inspector/ShaderInspector.cs:301)
UnityEditor.ShaderInspector.ShowShaderCodeArea (UnityEngine.Shader s) (at C:/buildslave/unity/build/Editor/Mono/Inspector/ShaderInspector.cs:156)
UnityEditor.ShaderInspector.OnInspectorGUI () (at C:/buildslave/unity/build/Editor/Mono/Inspector/ShaderInspector.cs:85)
UnityEditor.UIElements.InspectorElement+<CreateIMGUIInspectorFromEditor>c__AnonStorey1.<>m__0 () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorElement.cs:441)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

To repro this:
- download this simple project
- open the Gradient shader graph shader
- add a Time node and connect time - sine time to the time input in the sample gradient node
- save asset afterwards
- you should get that error in the console

Reproducible in Unity Editor 2019.1.0b9, 19.1.0b6
Cannot reproduce in 2019.2.0a10
Affected packages not available in 19.1.0b5 or earlier versions
Reproduciblwe with SahderGraph 5.8.2, 5.10.0
Not reproducible with shadergraph 5.7.2 or earlier versions

Comments (2)

  1. UBayir

    Jan 04, 2020 16:04

    Shader Graph version 6.9.2

  2. UBayir

    Jan 04, 2020 16:04

    I deleted some nodes and saved the shader and this error pops out. And never get lost in the whole project. Does not matter I create a new shader or old when I save a shader this error pops out. Triplanar node does not work properly after I got this

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.