Skip to content
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

Auto.js:错误:Error: out of region #429

Closed
YYYANg2 opened this issue Feb 9, 2021 · 8 comments
Closed

Auto.js:错误:Error: out of region #429

YYYANg2 opened this issue Feb 9, 2021 · 8 comments
Labels
Bug 🐞 故障 Confirmed bugs or reports that are very likely to be bugs Obsolete 🕳️ 远古 Issue creater doesn't provide more specific information within a long time (often one month)

Comments

@YYYANg2
Copy link

YYYANg2 commented Feb 9, 2021

排行榜都进不去,卡在自己页面。
Auto.js:错误:Error: out of region:
region = [144, 384,1152,768],
image.size = [1080,2400](file://android _asset/modules/images.js#523)

软件硬件信息
操作系统: [安卓11 ]
设备型号: [小米11]
Auto.js版本: [4.1.1 Alpha2 ]
项目版本: [v2.0.1 ]

@YYYANg2 YYYANg2 added the Bug 🐞 故障 Confirmed bugs or reports that are very likely to be bugs label Feb 9, 2021
@SuperMonster003
Copy link
Owner

请提供包含上述报错的日志截图
以方便定位并排查问题

@SuperMonster003 SuperMonster003 added the More Info Needed 🔎 提供详情 Further information is requested label Feb 9, 2021
@YYYANg2
Copy link
Author

YYYANg2 commented Feb 9, 2021

请提供包含上述报错的日志截图
以方便定位并排查问题

Screenshot_2021-02-09-16-50-32-420_org autojs aut

@SuperMonster003
Copy link
Owner

  1. 是否修改过以下配置参数
    配置工具 -> 收取功能 -> 能量球样本采集 -> 能量球识别区域
    如未修改过 请提供一下参数截图
    如已修改 请尝试恢复默认值后再运行项目

  2. 设备是否具备两种 (或以上) 的分辨率
    如具备 请尝试调整至其他分辨率后再运行项目

  3. 另外提供一下以下测试代码的运行结果
    通常 测试代码的运行结果是内容相同的两行

images.requestScreenCapture();
let capt = images.captureScreen();
console.log(capt.getWidth() + '×' + capt.getHeight()); // eg: 1080×2400
console.log(device.width + '×' + device.height); // eg: 1440×3200

@YYYANg2
Copy link
Author

YYYANg2 commented Feb 9, 2021

@SuperMonster003

1612865437940
2.换了分辨率还是不行。
第三点不会搞,本人小白。。。

@SuperMonster003
Copy link
Owner

设备宽高与截图尺寸不同 需要做特殊适配 而且需要做大量的代码重构
上述现象目前是首次出现 鉴于工作量及问题出现概率 将不考虑做特殊适配
此 isuue 将标记为无法完成

@SuperMonster003 SuperMonster003 added Helpless 🥀 无法完成 Issues can not be solved by the maintainer (Issues will be closed within one month) and removed More Info Needed 🔎 提供详情 Further information is requested labels Feb 10, 2021
@Sq-List
Copy link

Sq-List commented Feb 21, 2021

出现同样问题。
机型: 小米11
版本: 2.0.2
已调整分辨率为 1440 x 3200
Screenshot_2021-02-22-00-07-42-391_org.autojs.autojs.jpg

上面测试代码执行结果
Screenshot_2021-02-22-00-10-37-966_org.autojs.autojs.jpg

自己手动截图的分辨率是正确的
IMG_20210222_001846.jpg

@SuperMonster003 SuperMonster003 added Accepted 🌱 受理 Maintainer may be busy resolving or fixing the labeled issues and removed Helpless 🥀 无法完成 Issues can not be solved by the maintainer (Issues will be closed within one month) labels Mar 9, 2021
@SuperMonster003
Copy link
Owner

v2.0.3 已尝试修复上述问题
如仍有异常 可继续反馈

@SuperMonster003 SuperMonster003 added Feedback Awaited 🕒 等待反馈 Waiting for the feedback from issue creater and issue will be closed if duration is over one month and removed Accepted 🌱 受理 Maintainer may be busy resolving or fixing the labeled issues labels Mar 10, 2021
@SuperMonster003 SuperMonster003 added Obsolete 🕳️ 远古 Issue creater doesn't provide more specific information within a long time (often one month) and removed Feedback Awaited 🕒 等待反馈 Waiting for the feedback from issue creater and issue will be closed if duration is over one month labels Apr 15, 2021
@zyjStart
Copy link

我这也出现了这种问题,但是只有打包之后才会出现这种问题,没打包可以正常跑

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐞 故障 Confirmed bugs or reports that are very likely to be bugs Obsolete 🕳️ 远古 Issue creater doesn't provide more specific information within a long time (often one month)
Projects
None yet
Development

No branches or pull requests

4 participants