cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.21k stars 7.06k forks source link

recursive runAction bug or maybe cc.callFunc bug on ios platform? #18186

Open zmox opened 7 years ago

zmox commented 7 years ago

run below function _testAction() in scene :

 _testAction: function(cb){
     this._testNode.runAction(cc.sequence(
         cc.delayTime(0.1),
         cc.callFunc(function(){
             if(cb){
                 cb();
             }
         }, this),
         cc.callFunc(function(){
             this._testAction(cb);
         }, this)
     ));
 }

in IOS platform: this recursive function will random stop. but in Android or html5 platform work well.

what is the problem?

zmox commented 7 years ago

anyone?