• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Meater6 · Aug 21, 2011 at 06:10 PM · errorruntimemonobehaviour

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

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ray-Pendergraph · Aug 31, 2011 at 11:54 AM 0
Share

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.

avatar image Meater6 · Sep 03, 2011 at 04:56 PM 0
Share

Thanks for the info, I will try to test that.

avatar image Meater6 · Sep 10, 2011 at 02:39 AM 0
Share

@Ray Pendergraph

Somewhere along the line I lost the bug. I think you were right

avatar image Meater6 · Nov 19, 2011 at 05:31 AM 1
Share

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

1 Reply

· Add your reply
  • Sort: 
avatar image
4
Best Answer

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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

OutOfMemoryException: Out of memory 3 Answers

How to use GetMaterials function with skinned mesh renderer 1 Answer

Help with changing spririterenderer's sprite 2 Answers

error CS0713 UnityEngine.MonoBehaviour'. Static classes must derive from object 0 Answers

Resources.LoadAll not working 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges