Search Issue Tracker
Fixed
Votes
0
Found in
4.6.1f1
Issue ID
655653
Regression
Yes
"Coroutine continue failure" error when using StopCoroutine
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)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on JobQueue::HasJobGroupIDCompleted when closing the Editor while in Play mode on a specific project
- In "Preferences" section the “SpriteShape” menu item, the details page title “SpriteShape”, and “ControlPoint” entries are displayed as code strings rather than formatted UI strings
- Errors thrown constantly when Virtual Offset Debug is enabled and lighting was baked on AMD machine
- Persistent Memory Leak when reloading domain and using Distance-based Ghost Importance
- HDRP project doesn't render in standalone player when using High stripping
NorhanSayed
Aug 31, 2022 11:32
I have this error in 2021.1.17f1
helloxman
Jan 27, 2021 09:58
I have this error with a simple stop coroutine in 2020.2.0f1
Ardito92ITA
Sep 29, 2020 05:19
Same problem in Unity 2019.4.11f1
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.
UtopiaGameStudio
Dec 03, 2019 22:02
Happening here in 2019.1.14f1
AdityaMGametion
Jul 18, 2019 12:07
Seeing it again in Unity 2019.1.9f1! damn irritating :(
Develoop
Jul 16, 2019 08:32
Error still persist in Unity 2019.1.9f1 :D :D :D This is not serious...
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");
}
}
wangliang9527
Feb 08, 2018 07:48
Error still persist in Unity 5.4.3
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;
}