-
Notifications
You must be signed in to change notification settings - Fork 160
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
Long delay in translation #667
Comments
Interesting, I also use Arch, but I don't have this problem. |
Now it got even more interesting :) |
Is there any way to run in debug mode and see the logs? I am not very good at C++, can you tell me how to do it? To at least understand what the reason is, maybe it's something in my system. Because after reboot even proxy didn't help for some reason, first translations were delayed. I can see the requests it makes, and the problem is not network - the request execution time is about 60ms, so it's something else. |
We don't have a logging system, unfortunately...
I suspect that it could be the case. If you see the slowdowns, it could be caused by Qt library. The app just wait for the response from the Qt API. |
I'm also using Arch What engine do you use? Lingva and Libre delays depends on instance used. Google translate almost instantly. Yandex do have delays, but not 5 seconds. Bing is, well, being Bing and do have delays even in their web interface. The other thing you can do, to cut possibility this is Qt bug, using curl to do same requests as Crow do, like:
|
Bug description
At some point, translation started to be delayed for about 5-10 seconds. And if I translate another text after that, it happens without delay. If you wait for some time and try to translate something again, it translates with a delay. I tried to run it from the console to see the log, but there are no messages. Tried through mitm proxy - it doesn't accept the certificate. Also tried reinstalling, this behavior appears in both
crow-translate
package andcrow-translate-git
in AUR. Also deleted the configuration file, no help. Everything was fine for a long time, but it started after a kernel or system update, I don't rememberSteps to reproduce
Expected behavior
No delay in translation
Environment
Additional context
When running from the console, I got this message:
qt.svg: Cannot open file ':/icons/flags/sa.svg', because: No such file or directory
crow-translate.conf
The text was updated successfully, but these errors were encountered: