-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG - Was mutated while being enumerated exception while adding a child. #908
Comments
I hope someone can look at this. This particular bug is making sure LevelHelper is stuck in 3.0 modus and cannot move on to 3.1 or higher. |
Its not just LevelHelper that needs this fix. Its every game out there. Im surprised nobody catch it until now. At least acknowledge or dismiss the bug. |
Oh my... This has to be an absolutely ancient bug if I'm correct. I remember bringing it up a few years ago actually. The default Mac/threading configuration is still Try using CC_MAC_USE_MAIN_THREAD instead. I was wondering how this bug hasn't come up in SpriteBuilder, but I checked and it uses the main thread and not the default. Should probably figure out what to do about this immediately. |
If you execute the following code
Eventually you will get this exception
I've uploaded a test project on dropbox here
https://dl.dropboxusercontent.com/u/27229440/Temporary/Cocos2d31ExceptionTest.zip
To test it successfully just run the project and then click really fast in the scene.
The text was updated successfully, but these errors were encountered: