真机是 ios 和 android 都会有?
ios不知道,android会有
同问。
1.5.2正式版还不发?
也遇到了同样的问题
+1 也遇到一样问题,准备替换成HAaction\
CCActionManager update方法有个逻辑问题
for (locCurrTarget.actionIndex = 0; locCurrTarget.actionIndex < locCurrTarget.actions.length; locCurrTarget.actionIndex++) {
locCurrTarget.currentAction = locCurrTarget.actions[locCurrTarget.actionIndex];
if (!locCurrTarget.currentAction)
continue;
//use for speed
locCurrTarget.currentAction.step(dt * ( locCurrTarget.currentAction._speedMethod ? locCurrTarget.currentAction._speed : 1 ) );
if (locCurrTarget.currentAction.isDone()) {
locCurrTarget.currentAction.stop();
var action = locCurrTarget.currentAction;
// Make currentAction nil to prevent removeAction from salvaging it.
locCurrTarget.currentAction = null;
this.removeAction(action);
}
locCurrTarget.currentAction = null;
}
step方法内部会调用update,这个update有可能执行了某个回调函数,如果这个回调函数调用了removeAllActions() , 那 locCurrTarget.currentAction 很有可能就是 null
删除项目根目录下的 temp 文件夹
你可以试试构建,如果构建正常,就说明增量编译有问题,麻烦与我联系
刚测出来一个问题,scheduleOnce是个坑,会一直回调,1.4.x 没有这个问题。官方看看是不是动了这块代码
哪个的 scheduleOnce,能给个 demo 吗
cc.Component
能不能给一下 demo 我测试看看?我刚刚测试了范例的 follow 一下没有发现你这问题
我在官方的 example 里测试过,定时器只会执行一次,没问题啊,你能不能给个 demo?
试试Sequence里包含多个callfunc试试,我这里1.4.2一点问题都没有,把creator换成1.5.2beta必现崩溃,浏览器上是 isDone 错误
在Mac的模拟器上是另外一个 错误
2017-07-06T07:38:29.753Z - normal: Simulator: Error 1019, please go to https://github.com/cocos-creator/engine/blob/master/EngineErrorMap.md#1019 to see details.
2017-07-06T07:38:29.753Z - normal: Simulator: Sequence::startWithTarget error: _actions[0] or _actions[1] is nullptr!
2017-07-06T07:38:29.753Z - normal: Simulator: Error 1019, please go to https://github.com/cocos-creator/engine/blob/master/
1019错误刚好没有
我尝试不用Sequence,但是表现又不一样,由于这个功能历史上经过4、5个人改动过,也没心思去重构。
你用 debug 模式去看就会发现, 1019 报错指的是不能够用少于两个 action 去构造 sequence,所以你的 sequence 根本没有构造成功,自然会报错
EngineErrorMap 里面的信息我补充一下
那个修改图片(九宫格)就会卡死的问题解决了么?刚试了下b2版本,还是会卡死
我也在等这个问题…这问题困扰我们好久
什么样的图片会卡死?我这里重现不了啊
你图集里面是不是好几百张子图?