Search Unity

Assertion failed on expression: 'gForceReimports->empty()'

Discussion in 'Editor & General Support' started by gewl, Jan 27, 2021.

  1. gewl

    gewl

    Joined:
    May 19, 2016
    Posts:
    95
    For the past few days, I've been getting an
    Assertion failed on expression: 'gForceReimports->empty()'
    error any time an editor script attempts to call
    UnityEditor.AssetDatabase:SaveAssets()
    . It also seems to be tied to
    UnityEditor.EditorApplication:Internal_CallGlobalEventHandler()
    .

    I assume that there's a problem with some asset in my project, but I don't see any indication as to which it might be. I've tried rebuilding my library and reimporting all assets—neither helped. What else can I do to resolve this?
     
  2. aesoppt

    aesoppt

    Joined:
    Mar 17, 2021
    Posts:
    1
    I got the same problem
     
  3. GTC_

    GTC_

    Joined:
    Feb 16, 2021
    Posts:
    2
    After this error, I copied the contents of my script, removed my script component and deleted the script from the Assets folder. Then I created a new script and pasted the content there. The problem is gone.

    I hope this method works for you too.
     
  4. GTC_

    GTC_

    Joined:
    Feb 16, 2021
    Posts:
    2
    ---

    After this error, I copied the contents of my script, removed my script component and deleted the script from the Assets folder. Then I created a new script and pasted the content there. The problem is gone.

    I hope this method works for you too.