blokadaorg / blokada

The official repo for Blokada apps.
https://blokada.org
3.04k stars 213 forks source link

[Issue] Enabling blocklist returns "Couldn't install (or uninstall) this function. Try again later" #856

Closed AnonymousWP closed 3 years ago

AnonymousWP commented 3 years ago

https://user-images.githubusercontent.com/50231698/115585017-8c400a00-a2cb-11eb-9de7-955d1335d787.mp4

Let me know if you need any more information.

peterroth commented 3 years ago

How much lists do you have already enabled?

No app can use the full RAM of the device, they get smaller portions (called heap). So even if you have 12 GB RAM, the app maybe users only 256 MB.

AnonymousWP commented 3 years ago

How much lists do you have already enabled?

No app can use the full RAM of the device, they get smaller portions (called heap). So even if you have 12 GB RAM, the app maybe users only 256 MB.

All of them, except those two. You're right about that, but then why if I try to disable some blocklists, it also throws the same error? Also, it used to work before just fine, and as I rebooted before I tested, I am not entirely sure if that's the problem.

peterroth commented 3 years ago

Enabling and disabling will also trigger a re-merge procedure where the duplicates are removed. It means, both procedures are memory intensive. Do not activate all the lists. You won't face all the hostnames they all carry together.

AnonymousWP commented 3 years ago

Enabling and disabling will also trigger a re-merge procedure where the duplicates are removed. It means, both procedures are memory intensive. Do not activate all the lists. You won't face all the hostnames they all carry together.

Then could you clarify the following? I just updated to the new release (https://github.com/blokadaorg/blokada/releases/tag/android-v5.11.1) and tried to enable "The Block List Project" and it suddenly doesn't return an error anymore. Doesn't work for hBlock though. That's without restarting my device.

In this case, as you said I have too many lists enabled, it'd be great to have some smart function (that, I think, already existed in Blokada 4).

peterroth commented 3 years ago

Logically, the bigger list you add to the currently active one, the more memory will be used and if you already close to the max portion (xmx) then the app will throttle to avoid Out Of Memory (OOM).

There is no smart function for this use case in v4. That just tells you how much free memory (heap) is available for you.