Vimium intermittently stops responding on Chrome 147+ (extension appears to unload)
Describe the bug After upgrading to google-chrome-stable-147.0.7727.55-1.x86_64 on Fedora Linux, Vimium intermittently stops responding, after some idle time. Only restarting the browser made vimium work again. Typical symptoms:
Pressing O does not open the omnibar, or The omnibar appears but is unresponsive.
Console output (when issue occurs):
Vimium extension has been unloaded. Unloading content script.
vimium_frontend.js:430 Uncaught (in promise) Error: Extension context invalidated.
at checkIfEnabledForUrl (vimium_frontend.js:430:32)
at vimium_frontend.js:244:5
at utils.js:7:24
The following did not help resolve the issue:
- Reloading the page
- Reloading the extension
- Reinstalling Vimium
- Changing Vimium extension settings (allowing in incognito/file URLs etc.)
- Updating all chrome components
- Chrome Memory Saver is OFF
- 64 GB RAM, low tab count
~~Workaround This seems to help without any other change: Adding the page chrome-extension://dbepclifhkekkikfpfomocjclghocmda/pages/options.html To chrome Settings->Performance->General->"Always keep these sites active"~~
Browser and Vimium version Chrome version: 147.0.7727.55-1 The issue is also reproducible on Chrome Canary: 149.0.7780.0 vimium version: 2.4.2
I was seeing similar behavior, but in checking my Chrome version it updated to version 147.0.7727.56 (Official Build) (64-bit). After the update I get the correct responses from Vimium 2.4.2 again.
Hopefully a bug in Chrome and not an upcoming breaking change.
@TheQwerty: Thanks, Linux's latest chrome stable is 147.0.7727.55-1 where I found the issue. But today the issue is not reproduced in the same version even without any workaround. Perhaps chrome has updated a related component (chrome://components) or rolled back a controlled experiment, and the issue is solved for good.
So I will close this issue.
UPDATE: Spoke too soon, the issue reappeared though it is less frequent.
I have the same issue here. I'm using a workaround similar to what you mentioned above.
- OS: Arch Linux x86_64
- Google Chrome: 147.0.7727.55
- Vimium: 2.4.2
I am not sure, I haven't debug the issue, just wanted to share, that workaround with adding:
chrome-extension://dbepclifhkekkikfpfomocjclghocmda/pages/options.html to "Always active sites" in Memory settings didn't help.
I added also chrome-extension://dbepclifhkekkikfpfomocjclghocmda/pages/action.html and it started working instantly.
But I am not sure if that was just a coincidence or actually that helped.
You can try if you want to.
@leoossa: You are right - even for me in spite of "options.html" setting already in place, the browser once started in the error state. I removed and reinserted the same setting "options.html" and it instantly started working. So it appears the background script is killed in some cases and an associated page like "action.html" or "options.html" brings it up immediately - but not permanently. Not sure if this is a race condition in chrome, or if a keepalive is needed in vimium due to a known change of specs in chrome.
I have the same issue on brave, any work around there?
Also happening on Edge version 147.0.3912.60
- Happening on Chrome version
147.0.7727.56 (Official Build) (arm64) - OS:
macOS Version 26.4 (Build 25E246) - Vimium omni bar (O, T) and copy URL (yy) stops working intermittently
Seeing the same thing. Just updated chrome today to Version 147.0.7727.56 (Official Build) (arm64) and after a while vimium stops working. Restarting chrome seems to make it work again but it eventually stops working. I'm on macOS 26.4.1. Vimium version is 2.4.2.
any update @philc ?
After upgrading to Chrome Version 147.0.7727.101 (Official Build) (arm64), Vimium seems to be working again.
After upgrading to Chrome Version 147.0.7727.101 (Official Build) (arm64), Vimium seems to be working again.
same for me
Confirming I'm having issues on 147.0.7727.56, although in my case, the specific issue is that none of the extension pages are loading (help dialog, vomnibar), which means they don't appear when using the commands to show them.
I think it's probably related to the linked kBackForwardCachePauseMicrotasks commit in Chromium bug 500975618
An emergency fix for this was shipped in Chrome 147.0.7727.101, but that's only rolled out to 25% thus far (rollout stats here). I think we have to wait for it to fully roll out to 100%. There's no obvious workaround.
FWIW, on Chrome beta (148.0.7778.40), I don't see this issue.
I did get this error message once in a content script, but I can't reliably reproduce it:
Uncaught (in promise) Error: The page keeping the extension port is moved into back/forward cache, so the message channel is closed (main.js:1).
I'm running 147.0.7727.102 and I'm not seeing the issue. I got the later version by downloading and reinstalling chrome.
I got upgraded to 147.0.7727.101 this morning and am not seeing the issue.
On brave browser, since it rebased to chromium 147.0.7727.102 I have not had any problems. I suspect this issue can be safely closed now.
@philc: Thanks, yes with 147.0.7724.101 on Fedora Linux the issue is not reproduced. Shall I close the issue?
I can take care of closing it -- let's leave it open for a few days to make it easier to find for those still on the previous version of Chrome.