Search Issue Tracker

Fixed in 2019.2.X



Found in


Issue ID




Assertion failed on expression: '!m_CoroutineEnumeratorGCHandle.HasTarget()' is thrown when running Tests in Test Runner



To reproduce:

1. Download the attached project "" and open in Unity
2. Open Test Runner window
3. Select the PlayMode tab
4. Press "Run All" button
5. Observe that Assertions appear in the Console and some of the Tests start failing

- This issue appears on both Windows and macOS
- Errors are shared in the Comments section
- If Assertions didn't appear then run the Tests again
- On Unity 2018.2 these Assertions are causing Tests to fail

Reproduced on Unity 2017.4.0f1, 2017.4.13f1, 2018.1.9f2, 2018.2.14f1, 2018.3.0b7 and 2019.1.0a6

  1. Resolution Note (fix version 2019.2):

    After some investigation, we found a solution and will be included in the 2019.2 release. For stability this will not get backported to earlier versions.
    A way to make sure the Coroutine is kept alive is to keep a reference to it. `StartCoroutine` returns the object, and can be stored on the class.

Comments (3)

  1. jiuer7845

    Mar 27, 2020 13:02 Yeezy Supply Pandora Yeezy Air Force 1 Nike Air Force 1 Nike Air Max 270 Kobe Bryant Jersey Kobe Bryant Jerseys For Sale Kobe Bryant Jersey 24 Kobe Bryant Website Official Pandora Bijoux Yeezy Yeezy Yeezy Shoes Nike Shoes NFL Jerseys Yeezy Boost 350 Yeezy Yeezy Shoes Yeezy Yeezy Yeezy 350 Yeezy Yeezy Shoes Adidas Yeezy Yeezy 700 Yeezy Boost 350 V2 Nike Outlet Yeezy Shoes MLB Shop Adidas Yeezy MLB Jerseys Yeezy 380 Yeezy 380 Nike Outlet Human Races Human Race Shoes Uggs Official Site Pandora Basketball Jerseys Basketball Jerseys Cheap NBA Jerseys Nike Outlet Pandora Canada Pandora Charms Pandora Jewelry Pandora Outlet Pandora Jewelry Official Site MLB Jerseys Pandora Pandora Bijoux Adidas Yeezy Pandora Soldes 2020 Yeezy Shoes Yeezy Mafia

  2. Kennosuke

    Feb 04, 2020 00:42

    I'm getting this same issue in 2018.4.16f1 (LTS)

    Can you please include a fix for 2018 LTS?

  3. babyjk

    May 30, 2019 08:56

    Where is

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.