-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maximum call stack size exceeded; #50
Comments
请教下各位大佬该如何避免这个问题 |
同样的,我也会报这个错误 |
大佬有解决吗 |
// 边距检测
if (this.data.cut_top > this.data.info.windowHeight - this.data.height) {
this.setData({
cut_top: this.data.info.windowHeight - this.data.height
});
} 问题就出在浮点数精度上,如果把 cut_Top(left) 和 windowHeight (width)打印出来会看到是这样的情况: |
图片看不到呀
…------------------ 原始邮件 ------------------
发件人: "Quentin"<[email protected]>;
发送时间: 2020年6月9日(星期二) 下午2:16
收件人: "wx-plugin/image-cropper"<[email protected]>;
抄送: "Subscribed"<[email protected]>;
主题: Re: [wx-plugin/image-cropper] Maximum call stack size exceeded; (#50)
感觉是_setData 这个方法吧,我把它注释掉了就好了
这个方法我搜了一下 没用到啊
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
经过测试发现苹果12会出现 |
_cutDetectionPositionLeft这个方法,我看到程序里面有调用,注释掉,那对功能自身没有影响吗? |
暂时不知道呢,先正常再关注这个BUG有没有处理 |
`'use strict'; Object.defineProperty(exports, '__esModule', { /*! ***************************************************************************** function __spreadArrays() { // @desc 解决浮动运算问题,避免小数点后产生多位数和计算精度损失。 // 把错误的数据转正 function strip(num, precision) { // Return digits length of a number function digitLength(num) { //把小数转成整数,支持科学计数法。如果是小数则放大成整数 function float2Fixed(num) { //检测数字是否越界,如果越界给出提示 function checkBoundary(num) { //精确乘法 function times(num1, num2) { // 精确加法 function plus(num1, num2) { //精确减法 function minus(num1, num2) { //精确除法 function divide(num1, num2) { //四舍五入 function round(num, ratio) { // 是否进行边界检查,默认开启 function enableBoundaryChecking(flag) { number-precision.js |
对应工具或者iOS或者Andriod的版本号
微信版本号
代码截图
重现步骤
大量使用时有部分用户会产生错误:Maximum call stack size exceeded;
触发该错误的方法是”_cutTouchMove“
期待的行为
实际的行为
The text was updated successfully, but these errors were encountered: