Search Issue Tracker




Found in [Package]


Issue ID




Assertion failed on expression: 'didInsert' when opening gradient editor

Package: UI Toolkit


How to reproduce:
1. Create a new VFX Graph in URP/HDRP project
2. Select gradient in 'Set Color over Lifetime' block to open color editor and observe the console

Actual result: Error 'Assertion failed on expression: 'didInsert'' is thrown to the Console

Reproducible with: 2019.4.29f1, 2021.1.14f1, 2021.1.15f1, 2021.2.0b1, 2021.2.0b4, 2022.1.0a1(master)
Not reproducible with: 2019.4.28f1, 2021.1.13f1, 2021.2.0a21

Notes: Happens with any gradient editor (Shader Graph, VFX Graph, etc.)

  1. Response avatar

    Resolution Note:

    Fixed in 2022.1.0a3

  2. Response avatar

    Resolution Note:

    Fixed in 2021.1.18f1

  3. Response avatar

    Resolution Note:

    Fixed 2021.2.0b6

  4. Response avatar

    Resolution Note:

    Fixed in 2020.3.16f1

  5. Response avatar

    Resolution Note:

    Fixed in 2019.4.29f1

Comments (6)

  1. Fc189cfa01cdc13095b836b57fae039c?d=mm


    Jan 12, 2022 13:40

    Still seeing this in 2021.1.16f1 (in Visual Effect Graph, both in graph editor and exposed property inspector window)

  2. A2f2b2e4a15fae620150d83ac81cf304?d=mm


    Aug 22, 2021 09:27

    PWCommon5.EditorUtils:Panel (UnityEngine.GUIContent,string,System.Action`1<bool>,bool,bool,bool,UnityEngine.GUILayoutOption[])
    PWCommon5.EditorUtils:Panel (string,System.Action`1<bool>,bool,UnityEngine.GUILayoutOption[])
    Gaia.GaiaUnderwaterEffectsEditor:OnInspectorGUI () (at Assets/Procedural Worlds/Gaia/Scripts/Water System/Editor/GaiaUnderwaterEffectsEditor.cs:48)
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

  3. 53027c7164b9f50961de4ac9787d9d36?d=mm


    Aug 16, 2021 19:53

    Definitely still happening in 2021.1.16f1.

  4. Ad8cbdd4a334917e16b9e834e05ba0ab?d=mm


    Aug 03, 2021 15:56

    Occurs in Both 2021.2.b5 as well as 2021.1.16f1.

    Assertion failed on expression: 'didInsert'
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

  5. 23a866368e38d8b385d42991611c8efb?d=mm


    Jul 27, 2021 19:16

    Error still occurs in Unity 2021.1.15f1

  6. Bc75b90edcac1ec26cfd78a350b44d9f?d=mm


    Jul 02, 2021 20:13

    Also happens in 2021.2.0b1 with ShaderGraph and with custom material inspectors that use EditorGUILayout.GradientField.

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.