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

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