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

任务执行失败,阻塞了五分钟,日志:触发“屏幕关闭”事件,waitForAction被迫阻塞 #508

Open
GodManRui opened this issue Aug 4, 2021 · 16 comments
Labels
Bug 🐞 故障 Confirmed bugs or reports that are very likely to be bugs Feedback Awaited 🕒 等待反馈 Waiting for the feedback from issue creater and issue will be closed if duration is over one month More Info Needed 🔎 提供详情 Further information is requested

Comments

@GodManRui
Copy link

问题描述
清晰且简明地描述此问题
作者好!最近一段时间,早上收取我自己能量的时候,总是会出现截图日志这个提示,阻塞了足足六分钟,导致我的能量都被采光了。。 看规律发现貌似就只有收取我自己能量的时候会出现,收取其他人能量的时候没见过这个提示。
日志截图
提供与问题相关的日志截图
企业微信截图_16280650442523

软件硬件信息
操作系统: [ 如: 安卓8.0 ] 鸿蒙-Andoirod 10
设备型号: [ 如: 索尼 G8441 ] 华为Mate40Pro
Auto.js版本: [ 如: 4.1.1 Alpha2 ] 4.1.1
项目版本: [ 如: v1.9.1 ] 最新2.6吧,检查过了

其他
[ 包括但不限于 建议/提案/想法/灵感... ]

@GodManRui GodManRui added the Bug 🐞 故障 Confirmed bugs or reports that are very likely to be bugs label Aug 4, 2021
@GodManRui
Copy link
Author

QQ截图20210804162939

@GodManRui
Copy link
Author

作者好啊!不忙看看啊,最近一周才出现的,自己能量收的一点不及时了,被偷了一个多周了...

@GodManRui
Copy link
Author

更新了最新的7版本,还是不行,作者求救!

@SuperMonster003
Copy link
Owner

配置工具 消息提示 勾选开发者测试模式
配置工具 开启 "本地日志" 功能
运行项目 问题复现后 提供详细的日志截图或直接提供项目目录下 log 文件夹中的 log 文件 以便排查问题

@SuperMonster003 SuperMonster003 added Feedback Awaited 🕒 等待反馈 Waiting for the feedback from issue creater and issue will be closed if duration is over one month More Info Needed 🔎 提供详情 Further information is requested labels Aug 9, 2021
@GodManRui
Copy link
Author

复现了,在日志257行2021-08-11/07:20:34.709/D:处。
日志.txt

@GodManRui
Copy link
Author

看起来8版本貌似没处理我这个 ┭┮﹏┭┮

@SuperMonster003
Copy link
Owner

看日志应该是能量球成熟之后 脚本没有成功判断能量球已成熟 继续无限等待成熟 最终设备屏幕因长时间无操作超时关闭 脚本检测到关屏 两分钟后强制停止运行
v2.1.8 改进了主页成熟能量球监测 在倒计时到达时若未检测到成熟能量球 脚本将对所有能量球依次点击一次
当然正常逻辑是脚本在倒计时结束前就检测到并点击了成熟能量球

@SuperMonster003 SuperMonster003 removed the More Info Needed 🔎 提供详情 Further information is requested label Aug 13, 2021
@GodManRui
Copy link
Author

能不能增加一个能量球识别工具啊,我目前只发现一个能量球范围识别工具,没有单独针对某个能量球的,有一次我眼睁睁的看着一个特别大的能量球无法识别收取,你说的未成熟的依次点击一次也触发了,就是没点那个,看起来就没识别出是个能量球,出现过几次都是那种较大的能量球识别不到。我感觉能量越大的,能量球也比能量小的大一号,不知道是不是我的错觉~~~

@SuperMonster003
Copy link
Owner

v2.1.9 尝试改善了成熟能量球识别率
主要是修改了 antiOverlap 方法 (即覆盖检测) 的内部代码
对互相重叠覆盖的目标做了筛选优化

另外能量球识别工具对应 ./tools/energy-balls-recognition-inspector.js

@GodManRui
Copy link
Author

貌似发现了个必现的步骤,最新10版本。现象一样,但是日志翻来覆去试了好几次,都只卡在了开始 开始蚂蚁森林 任务 ,这行入口,比之前的可能少两块日志。附件是日志文件。
步骤:脚本自动设定好下次启动的任务后,去auto.js的管理界面查看定时任务,点击脚本任务,手动改下运行时间,我改的是当前分钟+1,也就是下一分钟执行,然后锁屏,等待执行,开始执行后能正常打开支付宝跳转到蚂蚁森林页面,然后就不动了,屏幕会常亮,日志只有一行入口日志。
auto.js-log.log

@SuperMonster003
Copy link
Owner

SuperMonster003 commented Aug 27, 2021

如果使用了新版能量保护罩 参阅 #518
否则 运行配置工具 -> 消息提示 -> 开发者测试模式 (勾选)
重复上述操作后重新提供日志

另外新问题如果与当前 issue 无关联
建议重新开新 issue 反馈问题

@SuperMonster003 SuperMonster003 added the More Info Needed 🔎 提供详情 Further information is requested label Aug 27, 2021
@GodManRui
Copy link
Author

没用保护罩,马上提供详细日志!
看现象是跟当前issue一模一样的,可能日志反映的执行步骤不如之前那个多,也可能是我等待时间较少的事儿

@GodManRui
Copy link
Author

auto.js-log(1).log
日志是这个

@GodManRui
Copy link
Author

就打开我主页就停了,我主页上啥也没有,如图
image

@SuperMonster003
Copy link
Owner

按照 #518 关闭浇水回赠能量球检测功能

@GodManRui
Copy link
Author

还是不定期会出现阻塞的现象,虽然最后能把能量收掉,但阻塞时间太久了都被偷的差不多了。。
阻塞.txt

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 Feedback Awaited 🕒 等待反馈 Waiting for the feedback from issue creater and issue will be closed if duration is over one month More Info Needed 🔎 提供详情 Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants