
Chrome hints uBlock Origin 1.13.0 may has been corrupted. I delete the extension and reinstall from Chrome Web Store, but still displaying extension may has been corrupted.
Chrome Version: 59.0.3071.109
OS: macOS Sierra 10.12.5
uBlock Origin Version: 1.13.0
Same problem happening for me as well, also Chrome 59.0.3071.109 and ublock 1.13.0. Only difference is I'm on Windows 7 64-bit rather than Mac OS.
Same here on Chrome 60.0.3112.32 (Official Build) beta (64-bit) on Windows 10 64-bit.
Repair didn't solve the problem. Neither did removing and reinstalling.
It seems to happen on current Release and Beta channels, but not on Canary (61.0.3136.0).
Same issue, running Kubuntu with Chrome 59.0.3071.104, 64-bit
The same problem on Chrome 59.0.3071.109 Windows 10 64-bit.
Same issue on Version 59.0.3071.109 macOS 10.12.6 Beta 64-bit
Updated to latest version of google chrome caused the extension to be "This extension may have been corrupted."
[If you fail to provide this info, I will mark the issue as invalid. Lists all settings which differs from default settings]
It's working in Vivaldi Snapshot 1.11.880.3, which is based on Chromium 59.0.3071.104. So there seems to be a Chrome specific change involved.
this might be relevant:
Summary: files that are of size equals multiple of content hash's block_size (4096 bytes) always fail content verification due to bug. The file in question: hide_default.PNG is 8192 (2 * 4096), bug 720597 is due to a file "Ancient Assyria.cwz" which is of size 16384 bytes (4 * 4096).
(from https://bugs.chromium.org/p/chromium/issues/detail?id=729978#c8)
edit: probably not, attaching log in separate comment
[3137:37379:0621/003705.949798:VERBOSE1:content_verify_job.cc(225)] job failed for cjpalhdlnbpafiamejdnhcphjbkeiagm js/vapi-client.js reason:1
[3137:37379:0621/003705.950634:VERBOSE1:content_verify_job.cc(225)] job failed for cjpalhdlnbpafiamejdnhcphjbkeiagm js/contentscript.js reason:1
[3137:37379:0621/003705.950826:VERBOSE1:content_verify_job.cc(225)] job failed for cjpalhdlnbpafiamejdnhcphjbkeiagm js/scriptlets/subscriber.js reason:1
[3137:37379:0621/003705.955597:VERBOSE1:content_verify_job.cc(225)] job failed for cjpalhdlnbpafiamejdnhcphjbkeiagm background.html reason:1
@michaelhood Good guess, but I'm afraid it's something different.
That issue is a duplicate and was merged with issue 720597, which is marked as _Fixed_ on Jun 7. Also, the errors look different for that one (VerifyFailed, not job failed):
[661:1295:0509/184448.588807:VERBOSE1:content_verifier.cc(143)] VerifyFailed ifajfiofeifbbhbionejdliodenmecna reason:1
However, it does provide a link to another Chrome extension to replicate that issue on. Would anyone like to try?
That may have been fixed on June 7, but that doesn't mean it's landed in a shipped Chrome milestone.
And js/tab.js, in 1.13.0, is 36864 bytes.. which is 4096*9. And:
[3137:37379:0621/003706.170410:VERBOSE1:content_verify_job.cc(225)] job failed for cjpalhdlnbpafiamejdnhcphjbkeiagm js/tab.js reason:3
@michaelhood You are right. Also, that would explain why @Lurtzae's Canary build does not have this problem.
Then a temporary fix would be to add a byte or a few to every problematic file?
Can't reproduce it in Canary build of v61, so apparently only stable and beta builds are affected.
I just download uBlock Origin 1.12.4 's source code , load extension from my disk, then it work well!
I can confirm that downloading the release seperately (I used 1.13.0) and dropping the folder into chrome works. To reproduce, just download one of the releases, unpack the zip, open the extensions tab and drop the folder into the window.
@bershan2 yeah, that's the workaround.. adding padding bytes to make sure you don't land on a 4k boundary.
I wrote a quick script to see which assets were afoul of this, it's indeed just js/tab.js.
I can not reproduce on windows 10 x64 v1703 with chrome v59.0.3071.109 (64-bit official build). I used the Update extension now button to update uBO v1.13.
same here ://
Having the same issue after the extension auto updated :(
Any way to work around this yet? I tried the download then dropping that onto Chrome, which works, but all my settings have gone. I even tried copying the code to the same folder as the broken one but Chrome continues to report it as corrupted.
same here
After 1.13 installation, it was still corrupted.
Changing the chrome://flags/#extension-content-verification flag to bootstrap, and restarting browser fixed the issue.
It still works after setting the flag back to default.
@lgenier doesn't seem to work for me :-(
Microsoft Windows [Version 10.0.14393]
Google Chrome 59.0.3071.109 (正式版本) (64 位)
uBlock Origin 1.13.0
Same issue.
Google Chrome: 59.0.3071.109 (64 bits)
Same issue. With the manual installation works well.
I've installed it by dropping the downloaded folder into the extension page and removed the corrupted webstore extension. It says on the extension page that the extension is loaded from the downloaded folder.
Hope this helps.
@lgenier yes but that also loses your settings, as I stated earlier
On my windows 10 system it is broken but on my arch linux install it isn't.. hm
seems manual installation is the only solution
@3k2 it will be broken soon :D
@Taomyn You can go to C:\Users\USERAppData\Local\Google\Chrome\User Data\Default\Extensions
find the folder with the same ID
Go to assets/ublock, there is a file named filters. Grab that file and manually install uBlock, then add the filter file to the new installed folder!
NOTE: this method can fail, make a backup of that folder
Broken on Chrome 59.0.3071.109, Windows 10 x64.
Manual install worked, like many others say.
For those who dont know how to install manually:
Download the latest release from Github:
https://github.com/gorhill/uBlock/releases/download/1.13.0/uBlock0.chromium.zip
Extract the content.
Go to chrome://extensions
Enable "Developer mode" in the upper right corner.
Press the "Load unpacked extension" and point to the addon folder extracted previously.
Easy-peasy!
@Andersmaten the way is useful!
I {beep} hate Google Chrome!
All my custom rules have been lost. {beep}!
And none of the solutions above work except manual installation which also resets your custom filters. Fuck!!
Same issue on Mac Chrome 59.0.3071.109
Broken on Chrome 59.0.3071.109
OS Name Microsoft Windows 10 Home
Version 10.0.15063 Build 15063
OS Manufacturer Microsoft Corporation
System Manufacturer LENOVO
System Model 90B600K2PG
System Type x64-based PC
Processor Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz, 3601 Mhz
@Andersmaten thanks for the temporary workaround!
I've another machine where the store extension it's working fine:
Chrome 59.0.3071.109
OS Name Microsoft Windows 7 Enterprise
Version 6.1.7601 Service Pack 1 Build 7601
OS Manufacturer Microsoft Corporation
System Manufacturer Dell Inc.
System Model Latitude E5540
System Type x64-based PC
Processor Intel(R) Core(TM) i5-4310U CPU @ 2.00GHz, 2601 Mhz, 2 Core(s), 4 Logical Processor(s)
My guess is it something to do with the latest windows 10 update...
Installed manually and it works....for now...but now how do you suppress the "Disable Developer Mode Extension" warning you get every time you start chrome?
Same here, Chrome Version 59.0.3071.104 (Official Build) (64-bit)
Manually installed and all custom rules are gone :(
Let this be a lesson to everyone: backup, backup, backup.
Lost my custom rules, but luckily I always backup every month.
:EDIT::
I think this is not the first time this has happened. If I remember correctly, last year Google also did the same thing to Privacy Badger. They're really hungry for your info.
Odd thing....out of 4 computers, 2 of them are running the same version of the extension, installed from the store, and running the same OS and same version of Chrome have not been disabled....not sure what the difference is or may be.
All of them are W10 Enterprise.
The other 2 that have been disabled one OS has the creators update, the other doesn't, so it's not the W10 updates IMO.
There is a whole lot to read in here. So am I understanding correctly that the suggested solution to pad tab.js so as to avoid a file size multiple of 4096 will fix the issue?
So this is quite a serious issue, and I pushed a fix to the Chrome store. However this is complicated: Yesterday I published to Chrome store and told it that only 20% of users should be updated -- so at least 80% of all users are not hit by that issue.
However for the emergency update, I am completely unsure that I should specify only 20% of users, because I assume that whoever is updated is picked randomly. So if I set 20% again, it's unsure those with the issue will receive the fix. So I had to publish to 100% of all users, and throw out all precautions because of the severity of the issue.
Add to this that each time I publish, the Chrome store puts uBO in "Pending review" mode and it may take a while for the fix to actually be available.
So at this point it's out of my control as to when the fix will be available, and hopefully there will be no further serious issue given that I am forced to push 1.13.2 to _all_ users.
No worries @gorhill , Manual installation of plugin resolves the issue.
So all good.
Thanks for quick turn around.
Cheers.
Clicking "update extensions now" a few times has pulled the updated extension down for me.
All working now.
Ok, I see 1.13.2 is now marked as published in my Chrome store dashboard (possibly the publication of the fix was fast-tracked by the Chrome store people.)
It's appeared for me too, and isn't disabled anymore. Thank-you.
I was getting this corrupt problem as well and now once it updated to 1.13.2 all my filters/settings are gone :/
Any way to recover them? Guess not
You can try recovering the rules by using file undelete applications (R-Studio Undelete is my favourite) or by using any hex editor (there are plenty free/open source ones) on your partition and finding any rule that you remember you had. I'm going to do both. I have a backup but it's quite old unfortunately.
I was getting this corrupt problem as well and now once it updated to 1.13.2 all my filters/settings are gone :/
My understanding is that Chrome did not uninstall the extension despite the (false positive) corruption detection. If the extension is not uninstalled, I am pretty sure all your settings should be preserved. Did you uninstalled uBO? If so, the settings are gone, Chrome will completely remove an extension-specific storage when it's uninstalled. Only recourse is that you backed up your settings and can restore.
Where are the settings stored because I have backups and have tried restoring the v1.2 extension folder, starting Chrome, but it then says it's corrupted again and a repair simply deletes the folder with a new version and no settings.
You can try recovering the rules by using file undelete applications (R-Studio Undelete is my favourite) or by using any hex editor (there are plenty free/open source ones) on your partition and finding any rule that you remember you had. I'm going to do both. I have a backup but it's quite old unfortunately.
I also have a backup but not with the most recent changes. Do you know which file(s) should we looking for with R-Studio in order to have access to the rules?
My understanding is that Chrome did not uninstall the extension despite the (false positive) corruption detection. If the extension is not uninstalled, I am pretty sure all your settings should be preserved. Did you uninstalled uBO? If so, the settings are gone, Chrome will completely remove an extension-specific storage when it's uninstalled. Only recourse is that you backed up your settings and can restore.
I didn't uninstalled it. uBlock Origin 1.13 installed on my browser, said it was corrupted. Then i came here and saw you released a fix. I went to the extensions page and hit update. It updated successfully but now all my settings are gone.
Did you uninstall uBO?
It seems like the "restore" button resets everything related to a particular add-on, including its entire storage/settings/configuration.
I don't think this is properly fixed - I revert back to v1.12, start Chrome, it then updates to v1.13.2 and still says "corrrupt". I don't think it likes being installed to a working copy, as the repair as mentioned above seems to clear it all so the "bug" gets deleted along with our settings.
Where are the settings stored
I can only speculate, extensions can't see the file system, they just save/load through the chrome.storage.local API.
Looking at the file hierarchy on my side (Linux), it looks like the chrome.storage.local API may be saving stuff in [Chrome config directory]/Default/Local Extension Settings/cjpalhdlnbpafiamejdnhcphjbkeiagm for uBO.
For Windows or MacOS, that would be a similar directory path I suppose.
But as said, it's only speculation, Google Chrome people are better placed to answer this.
Do you know which file(s) should we looking for with R-Studio in order to have access to the rules?
Create a new rule and then open ublock's dashboard ( chrome-extension://cjpalhdlnbpafiamejdnhcphjbkeiagm/dashboard.html#1p-filters.html ) - you'll see how rules look like. You might want to look for
"! " (without quotes) in text files.
I did not click the Uninstall button, I just clicked the repair button. But all the settings are gone, including cloud storage. uBlock Origin version is 1.13.2
I did not click the Uninstall button, I just clicked the Fix button.
As per Google Chrome documentation, it does look like the _Repair_ button is equivalent of uninstalling then reinstalling the extension.
Recovering custom made filters is nigh impossible unless you have a backup because they are stored in a binary (!) database here:
google-chrome/Default/Local Extension Settings/cjpalhdlnbpafiamejdnhcphjbkeiagm/000007.log
Good luck extracting them from this file. I hate Google Chrome.
As per Google Chrome documentation, it does look like the Repair button is equivalent of uninstalling then reinstalling the extension.
Yea, i clicked that, sorry, i should've said.
I managed to recover the 1.12.4 folder but when i replace it in the extensions directory it says it's corrupted. Well, GG chrome. Guess there's nothing we can do now.
@Taomyn Something worth to try: Maybe try to backup the content of the [Chrome config directory]/Default/Local Extension Settings/cjpalhdlnbpafiamejdnhcphjbkeiagm directory, then repair, then try to restore the content of that directory -- see if this works. Important: backup/restore the content of that directory only when Chrome is not running.
Can confirm restoring a backup of the Local Extension Settings folder brings back custom filters OK.
since cloud storage got wiped out for some reason it's clear the cloud sync is far from bulletproof enough, may I recommend that every time you click "export to cloud storage" it also triggers a "back up to file" action
@dobata Could you open a separate issue for this? I have been trying to see what could be done in order to backup data in some automatic way, but I couldn't find a satisfactory solution -- for example automatically backing up on a regular basis (say once a week) could easily end up bloating the _Downloads_ directory. I find your idea is interesting.
That the cloud storage was wiped must be a Google Chrome issue (or by design, when an extension is uninstalled), since uBO will never write to the cloud storage without the user explicitly pressing the button to do so.
@gorhill thanks, in the end I restored the entire Chrome folder in my profile and then when I started Chrome it was able to upgrade successfully and nothing was lost except for the cloud settings.
Thanks for fixing!
@gorhill As a (really late) follow up to this disastrous browser bug (that lead to few hundred thousand users uninstalling uBO), I would like to make a simple (not time-consuming) proposal:
Direct people visiting uBO store page "Support" pane to the uBO Wiki.
Currently uBO Chrome web store extension page has open "Support" tab, where people write support questions expecting a reply, which they usually never get. Instead, in the Google Developer Dashboard you could forbid comments and leave a note and a link to the Wiki Home page. Furthermore, in case of similar disaster in the future, posting a "quick fix" there would reduce frustration and save many people's time.
I know this is a bit late and random, but I was just hit by the same problem, and I'm coding a CI script to automatically pad files. This issue affects Chrome 60 as well.
Add to this that each time I publish, the Chrome store puts uBO in "Pending review" mode and it may take a while for the fix to actually be available.
If you publish the update from command line, the review takes like 3 seconds.
Just noticed that uBlock Origin got disabled for me following update from Chrome 59 to 60 today. It didn't say "extension is corrupted" but it was just disabled.
Don't know, might still be an active issue or not.
Most helpful comment
So this is quite a serious issue, and I pushed a fix to the Chrome store. However this is complicated: Yesterday I published to Chrome store and told it that only 20% of users should be updated -- so at least 80% of all users are not hit by that issue.
However for the emergency update, I am completely unsure that I should specify only 20% of users, because I assume that whoever is updated is picked randomly. So if I set 20% again, it's unsure those with the issue will receive the fix. So I had to publish to 100% of all users, and throw out all precautions because of the severity of the issue.
Add to this that each time I publish, the Chrome store puts uBO in "Pending review" mode and it may take a while for the fix to actually be available.
So at this point it's out of my control as to when the fix will be available, and hopefully there will be no further serious issue given that I am forced to push 1.13.2 to _all_ users.