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 (24)

  1. NorhanSayed

    Aug 31, 2022 11:32

    I have this error in 2021.1.17f1

  2. helloxman

    Jan 27, 2021 09:58

    I have this error with a simple stop coroutine in 2020.2.0f1

  3. Ardito92ITA

    Sep 29, 2020 05:19

    Same problem in Unity 2019.4.11f1

  4. 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.

  5. UtopiaGameStudio

    Dec 03, 2019 22:02

    Happening here in 2019.1.14f1

  6. AdityaMGametion

    Jul 18, 2019 12:07

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

  7. Develoop

    Jul 16, 2019 08:32

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

  8. 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");
    }
    }

  9. wangliang9527

    Feb 08, 2018 07:48

    Error still persist in Unity 5.4.3

  10. 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;
    }

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.