2018-01-31T06:35:06.301Z - normal: Simulator: D/jswrapper (125): JS: LoadScene 257d996a-b44d-4a8d-b069-bcb401322f70: 47.493999999999915ms
2018-01-31T06:35:06.301Z - normal: Simulator: D/jswrapper (125): JS: InitScene: 15.205999999999904ms
2018-01-31T06:35:06.301Z - normal: Simulator: D/jswrapper (125): JS: AutoRelease: 0.16599999999993997ms
2018-01-31T06:35:06.301Z - normal: Simulator: D/jswrapper (125): JS: Destroy: 16.932999999999993ms
2018-01-31T06:35:06.301Z - normal: Simulator: D/jswrapper (125): JS: AttachPersist: 0.0029999999999290594ms
2018-01-31T06:35:06.389Z - normal: Simulator: D/jswrapper (125): JS: [WARN]: Sorry, lineHeight of system font not supported on JSB.
2018-01-31T06:35:06.389Z - normal: Simulator: D/jswrapper (125): JS: Activate: 56.24700000000007ms
2018-01-31T06:35:06.553Z - normal: Simulator: E/jswrapper (267): ERROR: Uncaught TypeError: Cannot read property ‘setInsetTop’ of null, location: src/jsb_polyfill.js:0:0
2018-01-31T06:35:06.553Z - normal: Simulator: STACK:
2018-01-31T06:35:06.553Z - normal: Simulator: [0]_applySpriteFrameInsets@src/jsb_polyfill.js:12781
2018-01-31T06:35:06.554Z - normal: Simulator: [1]_applySpriteFrame@src/jsb_polyfill.js:12808
2018-01-31T06:35:06.554Z - normal: Simulator: [2]set@src/jsb_polyfill.js:12633
2018-01-31T06:35:06.554Z - normal: Simulator: [3]anonymous@assets/Script/factory/Gamefactory.js:95
2018-01-31T06:35:06.554Z - normal: Simulator: [4]anonymous@src/jsb_polyfill.js:15061
2018-01-31T06:35:06.554Z - normal: Simulator: [5]anonymous@src/jsb_polyfill.js:22621
2018-01-31T06:35:06.554Z - normal: Simulator: [6]onceWrapper@src/jsb_polyfill.js:14209
2018-01-31T06:35:06.554Z - normal: Simulator: [7]83.EventListeners.invoke@src/jsb_polyfill.js:14055
2018-01-31T06:35:06.555Z - normal: Simulator: [8]84.proto.emit@src/jsb_polyfill.js:14236
2018-01-31T06:35:06.555Z - normal: Simulator: [9]callback@src/jsb_polyfill.js:31539
2018-01-31T06:35:06.555Z - normal: Simulator: E/jswrapper (519): [ERROR] (…\jswrapper\v8\Object.cpp, 519): Invoking function (0E83BCA8) failed!
引擎版本是1.7.2补丁版
不知道这个 setInsetTop 是什么?
操作就是切换场景,在场景一里的onLoad里写cc.director.loadScene('场景二‘)
但如果在场景一onLoad里写个计时器,延时1秒,再cc.director.loadScene('场景二‘) 就没以上错误
想知道这个错误是怎么产生的?