I'm not expecting this Warning/Error. It started after I updated to 4.3.2.
Warning/Error showing "Could not load all filters to memory. Check your adblocking settings"
Blokada version
4.3.2
Device model
Moto X4
Android version / ROM
9 with security patch 1-09-2019
How long have you been using Blokada?
Since beginning of 2019
How long time ago has the problem started to happen?
After I upgraded to 4.3.2
How often does this problem happen to you?
Everytime I either enable or disable the app.
How many lists do you enable? Because that error message (newly introduced in V4.3.2) means you are enabling more list than your device could handle. The previous versions didn't show the error message, it simply tries to load all those lists up until it can't anymore due to the lack of available RAM - which in some cases would cause Blokada to crash (Out of Memory error)
I have in total 618067 rules enabled.
My phone has 4 GB of RAM of which 1.1 GB is still available.
It also shows this error when I pause the application. Which in my opinion should not happen since I'm disabling the functionality of the application.
Lists, not rules :) The reason why I asked is some lists are overlapping (e.g. everything in Energized Blu is included in Energized Basic). Overlapping lists makes Blokada works harder to sort and eliminate same hosts, which in turn consume resources (battery and memory)
My Bad.
Lists I'm using:
Energized Basic
Energized Blu
Goodby Ads by Jerryn70
HpHosts
Social hosts file
Coin Blocker List
Based on what you told me already about the energized lists, I removed Energized Blu already.
Worth checking out https://t.me/blokadachat/104350
I noticed that the Energized Basic creates too much rules. My device is not able to handle it apparently.
Maybe a better warning/error could be shown to indicate that you have too many rules?
Like a warning, that "Could not load all filters to memory"? :)
A warning is requested, hit a +1 for that if you think that's useful: https://github.com/blokadaorg/blokada/issues/320
Well indeed the warning itself does give a clue on what is happening. However it does not really give you any direction in which list might be the cause.
No, and it won't give you. As Blokada doesn't prefetch those lists, that would consume internet data and internal storage space, therefore, it doesn't know host much entries those lists have.
But it's pretty logical: if you turn on an extensive list, that must be kept in memory, which can cause Out Of Memory errors (earlier releases had this bug).
To prevent that, a warning is shown.
One question remains, will it then only load the entries it can load or does it not load anything at all (from that list)?
It loads the ones it can from top to bottom and ignores the rest. It was exactly the same before 4.3, but you simply would not see the message.