Search Unity

[Shader Graph's bug] Assertion failed on expression: 'success'

Discussion in 'Shaders' started by Necronomicron, Mar 23, 2019.

  1. Necronomicron

    Necronomicron

    Joined:
    Mar 4, 2015
    Posts:
    108
    Will this old Shader Graph's bug with floats that I've discovered in November ever be fixed?

    Code (CSharp):
    1. Assertion failed on expression: 'success'
    2. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    3.  
    4. Assertion failed on expression: 'success'
    5. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    6.  
    7. ArgumentException: Getting control 1's position in a group with only 1 controls when doing repaint
    8. Aborting
    9. UnityEngine.GUILayoutGroup.GetNext () (at C:/buildslave/unity/build/Modules/IMGUI/LayoutGroup.cs:117)
    10. UnityEngine.GUILayoutUtility.DoGetRect (System.Single minWidth, System.Single maxWidth, System.Single minHeight, System.Single maxHeight, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Modules/IMGUI/GUILayoutUtility.cs:461)
    11. UnityEngine.GUILayoutUtility.GetRect (System.Single minWidth, System.Single maxWidth, System.Single minHeight, System.Single maxHeight, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Modules/IMGUI/GUILayoutUtility.cs:450)
    12. UnityEditor.EditorGUILayout.GetControlRect (System.Boolean hasLabel, System.Single height, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:9249)
    13. UnityEditor.EditorGUILayout.GetControlRect (System.Boolean hasLabel, System.Single height, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:9244)
    14. UnityEditor.ShaderInspector.ShaderErrorListUI (UnityEngine.Object shader, UnityEditor.ShaderError[] errors, UnityEngine.Vector2& scrollPosition) (at C:/buildslave/unity/build/Editor/Mono/Inspector/ShaderInspector.cs:161)
    15. UnityEditor.ShaderInspector.ShowShaderErrors (UnityEngine.Shader s) (at C:/buildslave/unity/build/Editor/Mono/Inspector/ShaderInspector.cs:272)
    16. UnityEditor.ShaderInspector.ShowShaderCodeArea (UnityEngine.Shader s) (at C:/buildslave/unity/build/Editor/Mono/Inspector/ShaderInspector.cs:127)
    17. UnityEditor.ShaderInspector.OnInspectorGUI () (at C:/buildslave/unity/build/Editor/Mono/Inspector/ShaderInspector.cs:78)
    18. UnityEditor.InspectorWindow.DoOnInspectorGUI (System.Boolean rebuildOptimizedGUIBlock, UnityEditor.Editor editor, System.Boolean wasVisible, UnityEngine.Rect& contentRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1625)
    19. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    20.  
    21. Unexpected top level layout group! Missing GUILayout.EndScrollView/EndVertical/EndHorizontal?
    22. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    23.  
    24. GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced.
    25. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    26.  
    27. Shader error in 'SeekSick6/level.000': incorrect number of arguments to numeric-type constructor at line 229 (on d3d11)
    28.  
    29. Compiling Vertex program with UNITY_PASS_META
    30. Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_RGBM_ENCODING
    31.  
    32. Shader error in 'SeekSick6/level.000': incorrect number of arguments to numeric-type constructor at line 2707 (on d3d11)
    33.  
    34. Compiling Vertex program with DECALS_3RT SHADOW_LOW USE_CLUSTERED_LIGHTLIST
    35. Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_RGBM_ENCODING
    If I change gradient to just white-to-black, it compiles without errors.

    Скриншот 2019-03-23 07.01.26.png
     

    Attached Files: