Android真机 ,有个界面重复3次开启关闭,第三次就会 出这个问题。看着是创建JIT文件的时候,报的错

  • Creator 版本:3.6.3

  • 目标平台:安卓真机

  • 重现方式:必现,有个界面重复3次开启关闭,第三次就会 出,界面的逻辑全注释了,只保留了预制体的实力和移除

  • 首个报错: [ERROR]: [SE_ERROR] (C:/ProgramData/cocos/editors/Creator/3.6.3/resources/resources/3d/engine/native/cocos/bindings/jswrapper/v8/Object.cpp, 677): Invoking function failed, TypeError: Cannot set property ‘r’ of null
    at eval (eval at Parser (src/cocos-js/cc.js:25971:31), :3:62595)
    at Prefab.eval [as _createFunction] (eval at Parser (src/cocos-js/cc.js:25971:31), :3:62643)
    at Prefab._doInstantiate (src/cocos-js/cc.js:34812:29)
    at Prefab._instantiate (src/cocos-js/cc.js:34830:31)
    at ins

  • 手机型号: 华为V30Pro
    就是这里调用了instantiate-jit.ts 230行,
    // generate method and bind with objs
    this.result = Function(‘O’, ‘F’, code)(this.objs, this.funcs);