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

chrome 109.0.5407.1 can not use v6.0.1 #474

Open
tcc-123 opened this issue Jun 20, 2024 · 12 comments
Open

chrome 109.0.5407.1 can not use v6.0.1 #474

tcc-123 opened this issue Jun 20, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@tcc-123
Copy link

tcc-123 commented Jun 20, 2024

Hello!
I am using Windows 7, and the Chrome version is 109.0.5407.1. It can be used in 5.7.x (it seems to be this or 5.x.7), but now when I update to 6.0.1, it prompts that the background script is unavailable.
How can I solve it to make it available again? Thank you for your answer.

@tcc-123 tcc-123 closed this as completed Jun 20, 2024
@tcc-123 tcc-123 reopened this Jun 20, 2024
@tcc-123
Copy link
Author

tcc-123 commented Jun 20, 2024

I found a similar problem in issues, but the solution said that it had already been adjusted. I checked and my version is indeed the latest 6.0.1, which confuses me.

@tcc-123
Copy link
Author

tcc-123 commented Jun 20, 2024

image
'{"PopupWindowStorage":{"activeTab":{"translateText":"translateText"}},"TextTranslatorStorage":{"from":"auto","to":"zh","translate":null},"appConfig":{"appIcon":"auto","cache":{"ignoreCase":true},"history":{"enabled":true},"language":"zh","pageTranslator":{"detectLanguageByContent":true,"enableContextMenu":true,"ignoredTags":["meta","link","script","noscript","style","code","pre","textarea"],"lazyTranslate":true,"originalTextPopup":false,"toggleTranslationHotkey":null,"translatableAttributes":["title","alt","placeholder","label","aria-label"]},"popup":{"rememberLastTab":true},"popupTab":{"pageTranslator":{"showCounters":true}},"scheduler":{"chunkSizeForInstantTranslate":null,"directTranslateLength":null,"isAllowDirectTranslateBadChunks":true,"translatePoolDelay":300,"translateRetryAttemptLimit":2,"useCache":true},"selectTranslator":{"detectedLangFirst":true,"disableWhileTranslatePage":true,"enabled":true,"focusOnTranslateButton":false,"isUseAutoForDetectLang":true,"mode":"popupButton","modifiers":[],"rememberDirection":false,"showOnceForSelection":true,"showOriginalText":true,"strictSelection":false,"timeoutForHideButton":3000,"zIndex":999999},"textTranslator":{"rememberText":true,"spellCheck":true,"suggestLanguage":true,"suggestLanguageAlways":true},"translatorModule":"GoogleTranslator","ttsModule":"google"},"migrationsInfo":{"dataVersions":{"ConfigStorage":7,"PopupWindowStorage":1,"TextTranslatorStorage":3,"TranslatorCache":3,"autoTranslationPreferences":1},"version":1}}'

@tcc-123
Copy link
Author

tcc-123 commented Jun 20, 2024

I downloaded version v5.0.7 and it works fine again.
I'll record it here, if other win7 can't be used, you can replace it with this version.

@tcc-123 tcc-123 closed this as completed Jun 20, 2024
@vitonsky
Copy link
Collaborator

I found a similar problem in issues, but the solution said that it had already been adjusted. I checked and my version is indeed the latest 6.0.1, which confuses me.

Could you install 6.0.1 and screenshot an error in console of service worker please (the same window where you run command above).

@vitonsky vitonsky added the bug Something isn't working label Jun 20, 2024
@tcc-123
Copy link
Author

tcc-123 commented Jun 20, 2024

image '{"PopupWindowStorage":{"activeTab":{"translateText":"translateText"}},"TextTranslatorStorage":{"from":"auto","to":"zh","translate":null},"appConfig":{"appIcon":"auto","cache":{"ignoreCase":true},"history":{"enabled":true},"language":"zh","pageTranslator":{"detectLanguageByContent":true,"enableContextMenu":true,"ignoredTags":["meta","link","script","noscript","style","code","pre","textarea"],"lazyTranslate":true,"originalTextPopup":false,"toggleTranslationHotkey":null,"translatableAttributes":["title","alt","placeholder","label","aria-label"]},"popup":{"rememberLastTab":true},"popupTab":{"pageTranslator":{"showCounters":true}},"scheduler":{"chunkSizeForInstantTranslate":null,"directTranslateLength":null,"isAllowDirectTranslateBadChunks":true,"translatePoolDelay":300,"translateRetryAttemptLimit":2,"useCache":true},"selectTranslator":{"detectedLangFirst":true,"disableWhileTranslatePage":true,"enabled":true,"focusOnTranslateButton":false,"isUseAutoForDetectLang":true,"mode":"popupButton","modifiers":[],"rememberDirection":false,"showOnceForSelection":true,"showOriginalText":true,"strictSelection":false,"timeoutForHideButton":3000,"zIndex":999999},"textTranslator":{"rememberText":true,"spellCheck":true,"suggestLanguage":true,"suggestLanguageAlways":true},"translatorModule":"GoogleTranslator","ttsModule":"google"},"migrationsInfo":{"dataVersions":{"ConfigStorage":7,"PopupWindowStorage":1,"TextTranslatorStorage":3,"TranslatorCache":3,"autoTranslationPreferences":1},"version":1}}'

this is output in 6.0..1

@vitonsky
Copy link
Collaborator

@tcc-123 there is no visible an error message

@tcc-123
Copy link
Author

tcc-123 commented Jun 20, 2024

image

@tcc-123
Copy link
Author

tcc-123 commented Jun 20, 2024

Oh, is this it?
And this is on the settings page
image

@vitonsky
Copy link
Collaborator

@tcc-123 we need the first error, before you insert and execute the code.

Example of such error is:
image

It is important to figure out why extension fails initially.

We need next actions to debug the problem

  • restart extension (disable and enable it back)
  • open service worker console and just take screenshot it. Ensure the first error is visible
  • run next commands one by one on this console:
    • chrome.offscreen
    • chrome.offscreen.createDocument
    • chrome.offscreen.Reason
  • take one more screenshot

Your screenshot should looks like that (it's my result, your probably will have another error):
image

@vitonsky vitonsky reopened this Jun 20, 2024
@tcc-123
Copy link
Author

tcc-123 commented Jun 20, 2024

image

@vitonsky
Copy link
Collaborator

@tcc-123 okay, it means Chrome 109 does not support an offscreen API, so we can't run custom translators and Bergamot translator.

It is bad news, a chrome force developers to use ManifestV3, but their browser that released 1.5 years ago even does not support offscreen API.

I will think how to make Linguist works for your use case, maybe we may disable custom translators feature for legacy chrome version, but it may takes time to hack it. For now you may use https://github.com/translate-tools/linguist/releases/tag/v5.0.17 that should work fine on your chrome.

Thank you for report. It is important to know how Linguist works on different Chrome browser versions

@tcc-123
Copy link
Author

tcc-123 commented Jun 20, 2024

Ok, thank you very much.
This is a great plugin

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