Search Issue Tracker

Fixed

Votes

0

Found in

4.6.1f1

Issue ID

655653

Regression

Yes

"Coroutine continue failure" error when using StopCoroutine

Scripting

-

Steps to reproduce :

- import the project attached
- add any of the scripts to the Main Camera
- press play and notice the error

*Note:
This was fixed in 4.6.1p4 but reappeared in 4.6.2.

Comments (20)

  1. Df65591380c4cf77cbdf60af33a216f3?d=mm

    Ardito92ITA

    Sep 29, 2020 05:19

    Same problem in Unity 2019.4.11f1

  2. 36c65e3934745df83910152c6a077e4a?d=mm

    shubhamswaraj2021

    Aug 18, 2020 06:00

    good one <a href="https://www.lyricsauto.com">lyricsauto</a>

  3. 02d44e8a5ff93deb5e5622843b51a006?d=mm

    unity_U7gXwAiP9koF7A

    Aug 06, 2020 15:23

    still coming in unity 2019.2.18f1 but solved by this->

    private IEnumerator TimerEnumerator;

    public void StartCoroutineTimer(int time)
    {
    TimerEnumerator = Timer(time); // Timer is coroutine
    StartCoroutine(TimerEnumerator);
    }

    public void StopCoroutineTimer()
    {
    StopCoroutine(TimerEnumerator);
    }

    call StartCoroutineTimer to start and StopCoroutineTimer to stop.

  4. 5314225fa247b1f8739ab114e47b9f0e?d=mm

    UtopiaGameStudio

    Dec 03, 2019 22:02

    Happening here in 2019.1.14f1

  5. 4da00fa55a8fa26d0ea064a83515a732?d=mm

    AdityaMGametion

    Jul 18, 2019 12:07

    Seeing it again in Unity 2019.1.9f1! damn irritating :(

  6. 1edc2e07ecccfebae358901301562648?d=mm

    Develoop

    Jul 16, 2019 08:32

    Error still persist in Unity 2019.1.9f1 :D :D :D This is not serious...

  7. 513ba20a8c8516c7546eb5b50ebd5203?d=mm

    Atheos-ws

    Jul 23, 2018 02:31

    Still error in Unity 5.6.4f1-64bit
    But you can use like that:

    public class Test : MonoBehaviour {

    Coroutine coroutine;
    // Use this for initialization
    void Start () {
    coroutine = StartCoroutine(Coroutine_1());
    }

    private IEnumerator Coroutine_1()
    {
    yield return new WaitForEndOfFrame();
    StopCoroutine(coroutine);
    yield return new WaitForEndOfFrame();
    Debug.Log("Test");
    }
    }

  8. Bc8c2e77eb0c2019530129420436648e?d=mm

    wangliang9527

    Feb 08, 2018 07:48

    Error still persist in Unity 5.4.3

  9. 2576fb47e901a5e279f8c24f30b6afd9?d=mm

    VPintoM

    Jul 20, 2016 19:27

    Error in Unity 5.3.4f1
    public void StartInstantiate(){
    StopInstantiate ();
    coroutine = IEInstantiate ();
    StartCoroutine (coroutine);
    }

    private void StopInstantiate(){
    if (coroutine != null)
    StopCoroutine (coroutine);
    coroutine = null;
    }

  10. 3a3e6c17c4ad5992f12d50ecc9782dc3?d=mm

    castor76

    Jun 23, 2016 17:47

    How is this bug back now... It needs to be fixed again! How to reopen it? My project is just too big to submit a bug report.

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.