- Home /
Error "m_CoroutineEnumeratorGCHandle == 0"?
Sometimes get this error "m_CoroutineEnumeratorGCHandle == 0" in runtime. It gives no description except for its name. It does not happen at any specific event or time, it seems completely random. It usually doesn't even show up. It has no effect on the game other than adding a new error to the console, though I think it might be linked to occasional crashing. It doesn't seem to be coming from any of my scripts, or the console would tell me where.
Does anyone have any information on this error? It would be extremely helpful if I could find out anything to get rid of it.
Thanks
I have seen this between scene loads and sometimes when exiting the app. I don't know what it is for sure, but if I had to guess I would say that it has something to do with a running coroutine on a $$anonymous$$onoBehaviour that just got wacked.
Somewhere along the line I lost the bug. I think you were right
$$anonymous$$ore information, I have not experienced any crashing since the bug has disappeared. They must have been linked. I still have not found out why it happened but I glad it's gone. Cleaning up my scripts seemed to cure it.
Answer by r618 · May 13, 2012 at 07:08 PM
it seems that this was caused by not returning a value by all code paths in an IEnumerator
this is typically the last statement in IEnumerator e.g. for example
IEnumerator E() { ...; yield return null; }
seem to have fixed it for now for me; YMMV
Your answer
Follow this Question
Related Questions
Execute editor window scripts when project errors are present 0 Answers
No Monobehaviour scripts in files 1 Answer
Do runtime errors slow down your game? 2 Answers
unity script error 1 Answer
Unknown Error. 3 Answers