bug反馈: cc.director.loadScene在模拟器内无法切换场景

  • Creator 版本:2.4.0
  • 目标平台:微信小游戏
  • 重现方式:仅在Cocos中选择模拟器或者网页预览运行,切换场景时会失败
  • 首个报错:JS: [WARN]: Read json failed: Unexpected end of JSON input,Console中无堆栈信息
  • 重现概率:问题出现后一段时间内必现,但会莫名自己好
    切换场景时console会依次出现2023-05-17T09:17:27.116Z - normal: Simulator: D/jswrapper (132): JS: [WARN]: Read json failed: Unexpected end of JSON input

2023-05-17T09:17:29.132Z - normal: Simulator: D/jswrapper (132): JS: [WARN]: Read json failed: Unexpected end of JSON input

2023-05-17T09:17:31.149Z - normal: Simulator: D/jswrapper (132): JS: [WARN]: Read json failed: Unexpected end of JSON input

2023-05-17T09:17:33.165Z - normal: Simulator: D/jswrapper (132): JS: [WARN]: Read json failed: Unexpected end of JSON input

2023-05-17T09:17:33.165Z - normal: Simulator: D/jswrapper (151): JS: [ERROR]: Unexpected end of JSON input Error: Unexpected end of JSON input
一直无法正常切换到新场景,但是打包后在微信小游戏平台是能正常切换的

目前的解决方案是,每当出现该问题,在无法进行加载的场景里随意进行一些修改然后保存,就能再次进入了……