在微信小游戏中使用SafeArea组件报错Bug

  • Creator 版本: 2.4.2

  • 目标平台: 微信小游戏开发工具

  • 重现方式:在cocoscreator 项目中使用SafeArea组件,打包到微信小游戏

  • 首个报错: 301cocos2d-js-min.js:1 Uncaught TypeError: Cannot read property ‘_assembler’ of null
    at T.201.A._updateRenderData (cocos2d-js-min.js:1)
    at T.201.A._children (cocos2d-js-min.js:1)
    at T.201.A._color (cocos2d-js-min.js:1)
    at T.201.A._opacity (cocos2d-js-min.js:1)
    at T.201.A._children (cocos2d-js-min.js:1)
    at T.201.A._color (cocos2d-js-min.js:1)
    at T.201.A._opacity (cocos2d-js-min.js:1)
    at T.201.A._children (cocos2d-js-min.js:1)
    at T.201.A._color (cocos2d-js-min.js:1)
    at T.201.A._opacity (cocos2d-js-min.js:1)
    201.A._updateRenderData @ cocos2d-js-min.js:1
    201.A._children @ cocos2d-js-min.js:1
    201.A._color @ cocos2d-js-min.js:1
    201.A._opacity @ cocos2d-js-min.js:1
    201.A._children @ cocos2d-js-min.js:1
    201.A._color @ cocos2d-js-min.js:1
    201.A._opacity @ cocos2d-js-min.js:1
    201.A._children @ cocos2d-js-min.js:1
    201.A._color @ cocos2d-js-min.js:1
    201.A._opacity @ cocos2d-js-min.js:1
    201.A._children @ cocos2d-js-min.js:1
    201.A._opacity @ cocos2d-js-min.js:1
    201.T.visitRootNode @ cocos2d-js-min.js:1
    201.T.render @ cocos2d-js-min.js:1
    render @ cocos2d-js-min.js:1
    mainLoop @ cocos2d-js-min.js:1
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1
    requestAnimationFrame (async)
    wxRequestAnimationFrame @ gamePage.html:49
    e @ adapter-min.js? [sm]:1

  • 之前哪个版本是正常的: 无

  • 手机型号: 无

  • 手机浏览器: 无

  • 编辑器操作系统: win10

  • 重现概率: 100%

错误项目压缩包safeArea.rar (753.6 KB)

暂时解决方式:不使用SafeArea组件

看一下是不是调试基础库的问题

1赞

修改调试基础库后就没有报错了.

该主题在最后一个回复创建后7天后自动关闭。不再允许新的回复。