Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges