游戏里有段Action逻辑特别复杂
大致是Sequence里用到Spawn,spawn又包含了一个Sequence,这个Sequence又有多个cc.callFunc,callfunc执行的方法调用了Function.bind来绑定当前的this
1.4.0,游戏运行后会经常遇到Sequence内部的cc.callFunc excute崩溃,不必现但概率非常高,xcode截图如下,已知安卓上也是这个问题。本来怀疑是Sequence(恰好creator更新日志有提到), 但升级到1.4.1也有这个问题
这是新鲜的崩溃截图。
大胆猜测是callfunc包含的函数对象经过js<->c++层来回切换,再经过难以捕捉的gc机制之后,内部对象数据已经混乱导致。
麻烦官方看看能不能修掉这个bug。另外,cocos的Action机制在js时代是不是该换一换了?
既然打了这么多字,再附送几条异常吧
:0:({0:“res/raw-assets/resources/10001/spine/pumpkin.png”}) is not a function
:0:[{_name:"", _objFlags:49153, node:null, _id:"", __scriptAsset:false, _enabled:true, label:null, bgColor:null, bg:null, __instanceId:4059, __eventTargets:null}] is not a function
:0:({name:“farm_element_0442”, bone:“root”, attachment:“farm_element_044”}) is not a function
XXX-mobile.app/script/jsb_boot.js:741:TypeError: ‘prototype’ property of fNOP is not an object