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

[Bug]: V1.2.3之后使用任何翻译引擎都会一直转圈 #1572

Open
cesaryuan opened this issue Mar 26, 2024 · 3 comments
Open

[Bug]: V1.2.3之后使用任何翻译引擎都会一直转圈 #1572

cesaryuan opened this issue Mar 26, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@cesaryuan
Copy link
Contributor

cesaryuan commented Mar 26, 2024

插件版本号 | Version

1.3.4

平台 | Platform

Windows

浏览器 | Browsers

Chrome

插件类型 | Extension Type

油猴 | Tampermonkey | Userscripts

请描述这个Bug | Describe the bug

v1.3.4翻译会一直转圈,重装回1.2.2没有问题,控制台报这个错
image

出现问题的网址 | URL

任何网站

重现步骤 | To Reproduce

  1. 安装v1.3.4的油猴脚本
  2. 打开 https://www.geeksforgeeks.org/passing-a-function-as-a-parameter-in-cpp/
  3. 点翻译

补充说明 | Additional context

No response

@cesaryuan cesaryuan added the bug Something isn't working label Mar 26, 2024
@cesaryuan cesaryuan changed the title [Bug]: V1.3.4之后使用任何翻译引擎都会一直转圈 [Bug]: V1.2.3之后使用任何翻译引擎都会一直转圈 Mar 26, 2024
@theowenyoung
Copy link
Contributor

是不是和其他脚本有冲突导致?

我这边 mac 和 windows 在chrome上测试都是正常的。

@cesaryuan
Copy link
Contributor Author

是不是和其他脚本有冲突导致?

经过排查是这一步耗费了大量时间await Z3(this.translationOptions.translationService, y);

进一步步入,是getDelay中的await this.setStrictTicks(t, a, r),耗费了大量时间

@cesaryuan
Copy link
Contributor Author

@theowenyoung 找到问题所在了,是暴力猴的异步API GM.setValue 有bug,参见violentmonkey/violentmonkey#2058

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants