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

截图报这个错,有没有遇到的呢 #276

Open
seitaone opened this issue Dec 9, 2024 · 3 comments
Open

截图报这个错,有没有遇到的呢 #276

seitaone opened this issue Dec 9, 2024 · 3 comments
Labels
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 Reinforcement ✨ 强化 Issues for higher quality of being compatible

Comments

@seitaone
Copy link

seitaone commented Dec 9, 2024

images.requestScreenCapture 调用失败. java.lang.SecurityException: The number of virtual displays created for the org.autojs.autojs6 has reached the upper limit. (file:///android_asset/modules/promise.js#189)

@SuperMonster003
Copy link
Owner

异常消息大致意思: AutoJs6 已达允许创建的虚拟显示器 (Virtual Display) 最大数量.

这可能由未及时释放之前的虚拟显示器资源导致.

可尝试在需要明确释放截图相关资源的代码位置, 使用 images.stopScreenCapture() 释放资源.

另如能提供导致上述异常的代码片段 (实际的或抽象但具有代表性的), 将更有利于问题定位与分析.

@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 Reinforcement ✨ 强化 Issues for higher quality of being compatible labels Dec 9, 2024
@seitaone
Copy link
Author

seitaone commented Dec 9, 2024

异常消息大致意思: AutoJs6 已达允许创建的虚拟显示器 (Virtual Display) 最大数量.

这可能由未及时释放之前的虚拟显示器资源导致.

可尝试在需要明确释放截图相关资源的代码位置, 使用 images.stopScreenCapture() 释放资源.

另如能提供导致上述异常的代码片段 (实际的或抽象但具有代表性的), 将更有利于问题定位与分析.

好的,我试看,我就是频繁识别页面上的文字导致的,以前还真没遇到过,谢谢回复。

@maryjeck
Copy link

调用一次requestScreenCapture 后,captureScreen后要stopScreenCapture么?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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 Reinforcement ✨ 强化 Issues for higher quality of being compatible
Projects
None yet
Development

No branches or pull requests

3 participants