2.4.0 / 2.4.1 版本微信后台报addRef错误

  • Creator 版本:2.4.0 / 2.4.1

  • 目标平台: 微信小游戏

  • 详细报错信息,包含调用堆栈:
    TypeError: y.addRef is not a function. (In 'y.addRef()', 'y.addRef' is undefined) at line 6 in https://usr/game.js https://usr/game.js:6:186287 _flow@https://usr/game.js:6:193341 https://usr/game.js:6:193464 _flow@https://usr/game.js:6:193341 async@https://usr/game.js:6:193285 https://usr/game.js:6:187981 forEach@https://usr/game.js:6:204507 https://usr/game.js:6:187776 _flow@https://usr/game.js:6:193341 https://usr/game.js:6:193464 https://usr/game.js:6:194238 _flow@https://usr/game.js:6:193341 async@https://usr/game.js:6:193285 E@https://usr/game.js:6:187600 https://usr/game.js:6:186479 https://usr/game.js:6:191785 parseImport@https://usr/game.js:6:191482 parse@https://usr/game.js:6:191685 https://usr/game.js:6:186363 _flow@https://usr/game.js:6:193341 https://usr/game.js:6:193464 https://usr/game.js:6:185665 https://usr/game.js:6:185558 _flow@https://usr/game.js:6:193341 async@https://usr/game.js:6:193285 https://usr/game.js:6:187981 forEach@https://usr/game.js:6:204507 https://usr/game.js:6:187776 _flow@https://usr/game.js:6:193341 https://usr/game.js:6:193464 https://usr/game.js:6:194238 _flow@https://usr/game.js:6:193341 async@https://usr/game.js:6:193285 loadAny@https://usr/game.js:6:154859 load@https://usr/game.js:6:158781 x@https://usr/game.js:2019:419782 https://usr/game.js:2019:421017 https://usr/game.js:2019:421502 https://usr/game.js:2019:423834 https://usr/game.js:2019:1327202 https://usr/game.js:2019:1061151 emit@https://usr/game.js:6:287851 emitEvents@https://usr/game.js:6:287534 _onTouchEnded@https://usr/game.js:6:279986 https://usr/game.js:6:479939 st@https://usr/game.js:6:113826 dispatchEvent@https://usr/game.js:6:129290 Q@https://usr/game.js:6:111968 _onTouchEventCallback@https://usr/game.js:6:385420 _dispatchEventToListeners@https://usr/game.js:6:387465 _dispatchTouchEvent@https://usr/game.js:6:386214 dispatchEvent@https://usr/game.js:6:391789 handleTouchesEnd@https://usr/game.js:6:436492 https://game:///adapter-min.js:1:13688 t@https://lib/WAGameSubContext.js:1:119197 https://lib/WAGame.js:1:409241 https://lib/WAGame.js:1:457573 https://lib/WAGameSubContext.js:1:113078

  • 重现方式:偶发

  • 出现概率:未知

  • 额外线索:手动测没测出来,微信后台一直有这个报错

好几天了还没找到的原因,有同学有相似问题吗?

检查一下自己的脚本逻辑,我用的也是2.4的版本,没有这个问题

这个应该引擎加载资源时报的错,我脚本里调用这个方法时都做了防御。 不晓得是为啥出现这种报错,难道是我动态加载的资源管理出问题了?

你的找到问题了吗? 我这边也发现有这个问题, 加载预置直接报错