Search Issue Tracker

Fixed in 2019.2.X

Votes

0

Found in

2018.2.4f1

Issue ID

1094391

Regression

No

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

Scripting

-

To reproduce:

1. Download the attached project "CoroutineAssertions.zip" 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

Notes:
- 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

    http://www.supplyyeezy.us.com/ Yeezy Supply
    http://www.pandorabijouxfr.fr/ Pandora
    http://www.yeezyadidas.fr/ Yeezy
    http://www.airforce1.de/ Air Force 1
    http://www.nikeairforce1.de/ Nike Air Force 1
    http://www.nikeairmax270.de/ Nike Air Max 270
    http://www.kobebryant-jersey.us/ Kobe Bryant Jersey
    http://www.kobebryantjerseysforsale.us/ Kobe Bryant Jerseys For Sale
    http://www.kobebryantjersey24.us/ Kobe Bryant Jersey 24
    http://www.kobebryantwebsiteofficial.us/ Kobe Bryant Website Official
    http://www.pandorasoldes2020.fr/ Pandora Bijoux
    http://www.yeezy-shoe.us.com/ Yeezy
    http://www.yeezymafia.us.com/ Yeezy
    http://www.supplyyeezy.us.com/ Yeezy Shoes
    http://www.nikeshoes.us.org/ Nike Shoes
    http://www.nfl-jerseys.us.org/ NFL Jerseys
    http://www.yeezyboost350.us.com/ Yeezy Boost 350
    http://www.yeezy350.us.com/ Yeezy
    http://www.yeezy-shoes.in.net/ Yeezy Shoes
    http://www.yeezys.me.uk/ Yeezy
    http://www.yeezy-350.org.uk/ Yeezy
    http://www.yeezy350.org.uk/ Yeezy 350
    http://www.yeezys.us.com/ Yeezy
    http://www.yeezy.com.co/ Yeezy Shoes
    http://www.adidasyeezy.us.com/ Adidas Yeezy
    http://www.yeezy700.org.uk/ Yeezy 700
    http://www.yeezyboost350v2.de/ Yeezy Boost 350 V2
    http://www.nikeoutletstoreonlineshopping.us/ Nike Outlet
    http://www.yeezy-shoes.in.net/ Yeezy Shoes
    http://www.mlbshop.us.com/ MLB Shop
    http://www.adidasyeezy.de/ Adidas Yeezy
    http://www.mlbjerseys.us.com/ MLB Jerseys
    http://www.yeezy380.us/ Yeezy 380
    http://www.yeezy380.us.com/ Yeezy 380
    http://www.nikefactory.us.com/ Nike Outlet
    http://www.humanraces.us.com/ Human Races
    http://www.humanracesshoes.us/ Human Race Shoes
    http://www.uggs-officialsite.org/ Uggs Official Site
    http://www.pandoraonline-shop.de/ Pandora
    http://www.basketball-jerseys.us.com/ Basketball Jerseys
    http://www.jerseysbasketball.us/ Basketball Jerseys
    http://www.jerseys-nba.us/ Cheap NBA Jerseys
    http://www.nikes-shoes.us.com/ Nike Outlet
    http://www.pandoraoutletcanada.ca/ Pandora Canada
    http://www.pandora-charms.org/ Pandora Charms
    http://www.jewelrypandora.org/ Pandora Jewelry
    http://www.pandora-outlet.us.org/ Pandora Outlet
    http://www.pandorajewelryofficialwebsite.us.com/ Pandora Jewelry Official Site
    http://www.mlbjerseysofficial.us.com/ MLB Jerseys
    http://www.pandoras.fr/ Pandora
    http://www.pandorabijouxfr.fr/ Pandora Bijoux
    http://www.yeezyadidas.fr/ Adidas Yeezy
    http://www.pandorasoldes2020.fr/ Pandora Soldes 2020
    http://www.yeezy-shoe.us.com/ Yeezy Shoes
    http://www.yeezymafia.us.com/ 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 CoroutineAssertions.zip?

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.