AutoX icon indicating copy to clipboard operation
AutoX copied to clipboard

6.5.8多线程无法停止

Open Gosiu opened this issue 1 year ago • 5 comments

  1. Autox.js 版本:628
  2. Autox.js 下载渠道:https://github.com/kkevsekk1/AutoX/releases
  3. Android 版本:Android 10
  4. Android 机型:iQOO
  5. Android 系统类别:originos
  6. VSCODE Autox.js 扩展版本(可选,如果是连接电脑的问题需要填):
  7. 问题描述:其他issue给的很详细了。所有已知的正常停止操作后。此脚本启动的线程并没有中断。继续工作。
  8. 报错日志(可选):
  9. 屏幕截图(可选):

Gosiu avatar Feb 13 '24 15:02 Gosiu

还有,setTimeout函数也是,在设定的延时内,停止脚本也是接着运行。当然,我用这个函数来实现定时循环操作。

Kiritocyz avatar Feb 16 '24 04:02 Kiritocyz

示例代码中的监听示例无法通过管理页面的关闭按钮关闭脚本 Screenshot_2024-02-17-09-16-56-895_org autojs autoxjs v6-edit 监听示例-通知监听报错

09:20:31.480/E: Wrapped android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? (/data/user/0/org.autojs.autoxjs.v6/files/sample/事件与按键、触摸监听/通知监听.js#2)
Wrapped android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
    at /data/user/0/org.autojs.autoxjs.v6/files/sample/事件与按键、触摸监听/通知监听.js:2:0

多线程无法关闭,示例参考#829

LYS86 avatar Feb 17 '24 01:02 LYS86

示例代码中的监听示例无法通过管理页面的关闭按钮关闭脚本 Screenshot_2024-02-17-09-16-56-895_org autojs autoxjs v6-edit 监听示例-通知监听报错

09:20:31.480/E: Wrapped android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? (/data/user/0/org.autojs.autoxjs.v6/files/sample/事件与按键、触摸监听/通知监听.js#2)
Wrapped android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
    at /data/user/0/org.autojs.autoxjs.v6/files/sample/事件与按键、触摸监听/通知监听.js:2:0

多线程无法关闭,示例参考#829

你也是所有的X都点了,结果半天都停止不了吧。感觉就像所有的停止脚本被什么东西阻塞了。

Kiritocyz avatar Feb 17 '24 04:02 Kiritocyz

这个版本的强制停止脚本是有点问题,后续会优化

aiselp avatar Feb 22 '24 06:02 aiselp

我的华为上是:点停止脚本以后,并不会立刻停止,直到手机关屏后,events才会接收到exit事件,然后退出脚本

Tsyshiu avatar Apr 03 '24 01:04 Tsyshiu

此lssue由于长期未活动已被自动关闭,如问题任然存在,请重新打开lssue

github-actions[bot] avatar Jul 20 '24 23:07 github-actions[bot]