-
Creator 版本:2.0.10
-
目标平台: 微信小游戏
-
详细报错信息,包含调用堆栈:VM540:1 gameSubContextThirdScriptError
Failed to execute ‘drawImage’ on ‘CanvasRenderingContext2D’: The image argument is a canvas element with a width or height of 0.;at requestAnimationFrame callback function
Error: Failed to execute ‘drawImage’ on ‘CanvasRenderingContext2D’: The image argument is a canvas element with a width or height of 0.
at CanvasRenderingContext2D. (http://127.0.0.1:33684/game/subdev/WAGameSubContext.js:1:98593)
at et.gt.(anonymous function) (http://127.0.0.1:33684/game/subdev/WAGameSubContext.js:1:101013)
at et.Ot [as drawImage] (http://127.0.0.1:33684/game/subdev/WAGameSubContext.js:1:100582)
at Object.draw (http://127.0.0.1:33684/game/subGame/cocos2d-js.js:17191:13)
at RenderComponentHandle._commitComp (http://127.0.0.1:33684/game/subGame/cocos2d-js.js:16991:14)
at RenderFlow.122._proto._render (http://127.0.0.1:33684/game/subGame/cocos2d-js.js:25719:16)
at RenderFlow.122._proto._worldTransform (http://127.0.0.1:33684/game/subGame/cocos2d-js.js:25697:18)
at RenderFlow.122._proto._children (http://127.0.0.1:33684/game/subGame/cocos2d-js.js:25742:30)
at RenderFlow.122._proto._worldTransform (http://127.0.0.1:33684/game/subGame/cocos2d-js.js:25697:18)
at RenderFlow.122._proto._children (http://127.0.0.1:33684/game/subGame/cocos2d-js.js:25742:30) -
重现方式:
-
之前哪个版本是正常的 :1.9.3
-
手机型号 :还在模拟器上
-
手机浏览器 :
-
编辑器操作系统 :
-
编辑器之前是否有其它报错 :无
-
出现概率:
-
额外线索:之前使用1.9.3比较正常,只是刚体有一些奇怪的问题,在上周五已经提交了问题,但是还没有得到回答。今天想试试2.0.10是否有刚体的问题,就安装了 新的版本,打包好之后模拟器跑起来就一直报这个错误。