Search Issue Tracker

Not Reproducible

Votes

12

Found in

2019.3.0b2

2019.3.0b3

2020.1.0a1

Issue ID

1184079

Regression

Yes

Assertion failed on expression: 'gForceReimports->empty()' is thrown when adding scripts to inspector

Asset - Database

-

How to reproduce:
1. Create and open a new Universal RP template project
2. Observe the console window

Expected result: no errors are thrown
Actual result: Assertion failed on expression: 'gForceReimports->empty()' is thrown

Reproducible with: 2019.3.0b2, 2019.3.0b4, 2020.1.0a5 (7.0.1)
Not reproducible with: 2018.4.9f1 (4.1.0), 2019.2.7f1 (6.9.0), 2019.3.0b1 (7.0.1)
Could not test with: 2017.4.32f1 (Template not available)

  1. Resolution Note:

    Looks like it is fixed in newer versions of Unity, at least we were not able to reproduce on latest 2019.3.x builds

Comments (44)

  1. oivoodoo

    Apr 05, 2020 08:29

    Assertion failed on expression: 'gForceReimports->empty()'
    UnityEditor.EditorApplication:Internal_CallGlobalEventHandler()

    2019.3.7f1

    Changed the color of text in TextMeshProGui and then my gameobject is invisible, can't switch enable/disable on it.

    in play mode it is always in disabled state and see the error above.

  2. cuzner

    Apr 04, 2020 05:54

    Getting this issue with 2019.3.2f1

    This is a new 3d Unity project.
    Then imported Photon2 - free

    Get this error after import.
    Assertion failed on expression: 'gForceReimports->empty()'

  3. j00hi

    Apr 01, 2020 10:43

    Here is a possible solution: https://answers.unity.com/questions/1632274/how-to-avoid-the-onvalidate-method-from-being-call.html

    The issue is that when the Prefab contains a script that uses OnValidate, OnValidate is being invoked and that can lead to this error.

  4. Kaymax

    Mar 31, 2020 20:59

    same Issue on Unity 2019.3.7f1, will try to catch the point when it happens....

  5. GiuSca

    Mar 24, 2020 14:24

    Hi, I'm a total beginner, so I can only explain the context when I had the same exception:
    Assertion failed on expression: 'gForceReimports->empty()'

    I tried to add an empty script to a prefab and it showed this error.
    When I remove the rigidbody of the prefab, it works. Infact the exceptions seems to be related to the rigidbody (gravity).

    Is there any limitation for the combo Rigidbody+script+prefab?

  6. hamza_abouamal_Organization

    Mar 22, 2020 23:01

    Same issue on Unity 2019.3.6f1 on windows
    note: i just updated my graphic card drivers, at the end of the installation my pc run into problem with blue screen. after the windows restart , i got the error

  7. Guillaume846

    Mar 21, 2020 23:28

    Same issue on Unity 2019.3.6f1 on Ubuntu 19.10.
    The errors appeared after creating a 2d project.

  8. edisonlee55

    Feb 06, 2020 15:45

    Same issue on 2019.3.0f6 Personal URP

  9. hk1ll3r

    Feb 05, 2020 19:28

    happends on 2019.3.0f6

  10. h0neyfr0g

    Feb 01, 2020 14:54

    I just got this as well.

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.