You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我之后输出了具体的错误信息 #1227ms Unable to clone canvas as it is tainted DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The source height is 0.
#1 227ms Unable to clone canvas as it is tainted DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The source height is 0.
at DocumentCloner.createCanvasClone (webpack-internal:///./src/utils/screenShotPlugin.umd.js:767:709)
at DocumentCloner.createElementClone (webpack-internal:///./src/utils/screenShotPlugin.umd.js:766:361)
at DocumentCloner.cloneNode (webpack-internal:///./src/utils/screenShotPlugin.umd.js:767:3139)
at DocumentCloner.appendChildNode (webpack-internal:///./src/utils/screenShotPlugin.umd.js:767:2278)
at DocumentCloner.cloneChildNodes (webpack-internal:///./src/utils/screenShotPlugin.umd.js:767:2776)
at DocumentCloner.cloneNode (webpack-internal:///./src/utils/screenShotPlugin.umd.js:767:3748)
at DocumentCloner.appendChildNode (webpack-internal:///./src/utils/screenShotPlugin.umd.js:767:2278)
at DocumentCloner.cloneChildNodes (webpack-internal:///./src/utils/screenShotPlugin.umd.js:767:2776)
at DocumentCloner.cloneNode (webpack-internal:///./src/utils/screenShotPlugin.umd.js:767:3748)
at new DocumentCloner (webpack-internal:///./src/utils/screenShotPlugin.umd.js:763:10763)
The text was updated successfully, but these errors were encountered:
Hello @majingxuan123. Your feedback has been received, and you will be notified in the issue area when the problem is resolved.
你好 @majingxuan123,已收到你反馈的问题,问题解决后将在issue区域通知你。
Hello @majingxuan123. Your feedback has been received, and you will be notified in the issue area when the problem is resolved. 你好 @majingxuan123,已收到你反馈的问题,问题解决后将在issue区域通知你。
Version of js-screen-shot
1.9.9-rc.2
Operating system and its version
Windows
Browser and its version
117.0.5938.152
Sandbox to reproduce
No response
What happened?
我的环境是
vue2 vant2 elementui
我发现在某个情况下 使用这个截图插件、会提示我一个错误:
#1 227ms Unable to clone canvas as it is tainted
我在某个二维码组件内也有使用canvas
一开始我根据错误信息以为是这个canvas 和我页面上的二维码冲突了、
因为我发现先点截图、然后会报错、接着点击我的那个二维码组件(全屏黑色遮罩 中间一个普通的二维码) 我发现左上角有截图插件的工具栏?
但是我将页面上的组件删除依然如此
我之后输出了具体的错误信息 #1
227ms Unable to clone canvas as it is tainted DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The source height is 0.
我怀疑对象可能尚未完全加载,因此返回零。
这是我的启动截图代码:
new ScreenShort({
loadCrossImg: true,
enableWebRtc: false, // 是否显示选项框
level: 99, // 层级级别
completeCallback: this.successFn,
closeCallback: this.closeFn
})
在另一个几乎完全相同 没有使用vant2ui的页面上可以正常使用
附上我的二维码组件 qrcodejs2 version:0.0.2
报错信息
#1 227ms Unable to clone canvas as it is tainted DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The source height is 0. at DocumentCloner.createCanvasClone (webpack-internal:///./src/utils/screenShotPlugin.umd.js:767:709) at DocumentCloner.createElementClone (webpack-internal:///./src/utils/screenShotPlugin.umd.js:766:361) at DocumentCloner.cloneNode (webpack-internal:///./src/utils/screenShotPlugin.umd.js:767:3139) at DocumentCloner.appendChildNode (webpack-internal:///./src/utils/screenShotPlugin.umd.js:767:2278) at DocumentCloner.cloneChildNodes (webpack-internal:///./src/utils/screenShotPlugin.umd.js:767:2776) at DocumentCloner.cloneNode (webpack-internal:///./src/utils/screenShotPlugin.umd.js:767:3748) at DocumentCloner.appendChildNode (webpack-internal:///./src/utils/screenShotPlugin.umd.js:767:2278) at DocumentCloner.cloneChildNodes (webpack-internal:///./src/utils/screenShotPlugin.umd.js:767:2776) at DocumentCloner.cloneNode (webpack-internal:///./src/utils/screenShotPlugin.umd.js:767:3748) at new DocumentCloner (webpack-internal:///./src/utils/screenShotPlugin.umd.js:763:10763)
The text was updated successfully, but these errors were encountered: