-
Notifications
You must be signed in to change notification settings - Fork 85
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
Default filter lists unselected internally (i.e. not unselected by user) #2604
Comments
You have no filter lists enabled:
Go to Filter lists pane. If it shows there are no filter lists enabled:
If there are still no filter lists enabled, remove then reinstall uBO. |
There has been a bit too many reports of all filter lists being unselected for my taste. It does seem something is going on, but whatever it is, it's probably very difficult to reproduce. A new code path was added in 1.49.0 in order to unselect default lists which are no longer default when In any case, I've added more checks for unexpected conditions when It's a shot in the dark, but given the severity of all lists being unselected, I will give it a try and publish an emergency release for this change. |
Can browser update affect extension's storage? The day the reports began to show, 2 of my chromium browsers (vanilla chromium and brave) started to update new version too. |
I can't tell really. That's the problem with those reports of broken uBO, it's quite rare given the user base, and when it's reported there is not much to work with, for example: #2341. |
So if I understand correctly, gorhill/uBlock@6294829 is for checking if default lists being turned off when launching? Can uBO auto force update in that case? |
That code is executed only when |
sorry if iam making noise also user selected settings are also lost eg i enabled these, but they are getting unselected when this happens
|
I've had another case myself, all of a sudden started w/o any changes. Purge all caches + update now + apply changes fixed it. |
I might have found the most likely explanation for the reported cases. It would have to do with corrupted storage, hence why it's rare. When I mimick corrupted storage to find out what uBO ends up doing, I do get zero filter lists loaded, and troubleshooting information looks like (I removed unimportant entries):
Especially, the section The storage-reading code in uBO is ready to deal with not receiving the fetched items from storage, the issue is that uBO was not dealing with Promise rejection, which would cause the code paths dealing with failure to fetch items from storage to not be taken. |
How feasible would it be to add a check for unselected (or not loaded at all) default filter lists in uBO's report widget that would advise users to purge and update lists before they proceed? And perhaps do the same with lists that haven't been updated in a while? This could potentially reach a bigger percentage of uBO's userbase than the ones that have/are willing to make a github account. |
Being discussed: #2582 |
This worked! Thanks for your help. |
Please report here if it ever happens again -- currently I suspect this just happens to people who had either uBO or their browser updated. I would like to know if this also happens when neither the browser or uBO updates to a new version. |
It happened to me too today, all filters disabled on all sites, clean the cache and re-update the filters can do a temp fix, but it's quite unstable (possibly when you re-open the chrome or restart the system), sometime it'll come back again, I think I may wanna clean re-install the whole extension. |
New case: uBlockOrigin/uAssets#17770 (Don't know if the log the user provided gives useful troubleshooting info, but linking just in case. |
What if once a day / session, uBO checks the status of filter lists and if it finds 0 filters in an enabled list, it tries to update all enabled lists? the same if it finds no list enabled (enable the default lists and update them) |
It's possible to use uBO without filter lists, that would be bad for people using uBO this way to have lists always unilaterally re-enabled. Best is to get to the bottom of the issue and fix it. |
yes but you can test if there are no dynamic rules |
I don't want to hide symptoms of an issue, that would prevent us from knowing these issues exist and prevent us from investigating them. The cause needs to be identified and fixed. hiding the symptoms won't help toward this. And as usual, just adding more code to fix something is always a risk to cause more issues. |
Could you reproduce the same symptom with older main releases (1.48, 1.47, 1.46 ... ), so we might know when it started to have this issue or it has been always there? I remember we didn't have this many reports when previous versions updated. |
I could not really reproduce the exact same symptoms. What I reproduced left uBO in a broken state, where I could not do what most people are doing. i.e. purge and update all filter lists. The Filter lists pane was completely broken for me. I looked into the reports quite a lot and they all share two key details: they all report that uBO was loaded from a selfie. I didn't reproduce this. The other one is that they all report that the internal variable which contains all the available filter lists is seemingly empty, not even user filter list is being reported. When I look at the code, these two things can't happen. The only explanation I see where this can happen, is that a selfie was created before uBO reached the point where it loads filter lists in launch sequence, and of course this is not supposed to happen. Again, the only explanation I see for this to happen is that for selfie purpose, uBO started to use For now I will get rid of There is an open issue re. In any case, beside reverting to avoid using I think I will go ahead and publish 1.49.2 with those changes. |
Related issue: - uBlockOrigin/uBlock-issues#2604 Related commit: - bec6cad
This comment was marked as abuse.
This comment was marked as abuse.
Similar reports are no longer showing up, and none of the last ones were for 1.49.2, so this probably confirm usage of |
Heya @gorhill, I'm wondering whether the fix for this issue could have created a regression for custom lists not being refreshed anymore. I see a significant drop in usage since the release of 1.49.2. I don't have enough telemetry to confirm that the drop is really uBO users, but the timing looks pretty suspicious. I wrote more context in #2659 |
If people wander here searching for solution to custom list being disabled in 1.49.2 - gorhill/uBlock@1a9a8aa |
|
This was added back then for the purpose of investigating the following issue: uBlockOrigin/uBlock-issues#2604 No longer needed.
Related issue: uBlockOrigin/uBlock-issues#2969 Changes: Use browser.alarms to trigger selfie creation. Presence of a selfie improve markedly time to readiness when uBO is unsuspended. Mirror content of storage.local to (in-memory) storage.session for faster load to readiness when uBO is ususpended.
Prerequisites
URL address of the web page
https://old.reddit.com/
Category
ads
Description
Ads are showing up now when they didn't before
Screenshot(s)
Screenshot(s)
Configuration
The text was updated successfully, but these errors were encountered: