AdguardForAndroid icon indicating copy to clipboard operation
AdguardForAndroid copied to clipboard

App management is very slow when changing App firewall settings

Open shriganesh opened this issue 1 year ago • 32 comments

Please answer the following questions for yourself before submitting an issue

  • [X] Filters were updated before reproducing an issue
  • [X] I checked the knowledge base and found no answer
  • [X] I checked to make sure that this issue has not already been filed

AdGuard version

4.6.1

Environment

  • OS version: 14
  • Device: Samsung Galaxy S24 Ultra

HTTPS filtering

  • [X] yes, I do

Root access

  • [ ] yes, I have it

Integration with AdGuard VPN

  • [X] yes, I do

Routing mode

Local VPN

Ad Blocking

AdGuard Base filter, AdGuard Mobile Ads filter

Privacy

AdGuard Tracking Protection filter, AdGuard URL Tracking filter

Social

AdGuard Social Media filter

Annoyances

AdGuard Annoyances filter, AdGuard Cookie Notices filter, AdGuard Popups filter, AdGuard Mobile App Banners filter, AdGuard Other Annoyances filter, AdGuard Widgets filter, Adblock Warning Removal List

Security

Online Malicious URL Blocklist

Language-specific

No response

Other

AdGuard DNS filter

Which DNS server do you use?

Cloudflare DNS

DNS protocol

DNS-over-HTTPS

Custom DNS

No response

What Stealth Mode options do you have enabled?

No response

Issue Details

Steps to reproduce:

  1. Go-to app management
  2. Select an app, then go-to app firewall settings
  3. Enable or disable use wi-fi
  4. Go back It'll take about 40-60

Expected Behavior

It shouldn't take 40-60s.

Actual Behavior

It's taking around 40-60s

https://github.com/user-attachments/assets/38b27fe3-adc5-42e1-90cd-b5071699cc5e

Screenshots

Screenshot 1

Additional Information

No response

shriganesh avatar Aug 17 '24 01:08 shriganesh

@shriganesh Thank you for reporting! We would like to take a look at the logs from your device, please follow the steps below.

  1. Enable debug logging: Settings -> General -> Advanced -> Logging level -> Debug

  2. Reproduce the issue, then remember the exact time when it happened

  3. Collect logs: Settings -> General -> Advanced -> Export logs and system info

  4. Send this file to [email protected]:

    • mention the 5432 number in the subject
    • specify the exact time when the issue occurred

Versty avatar Aug 19 '24 11:08 Versty

Hi,

I tried enabling debug logs, reproduced the issue. But when I tried exporting logs, it keeps failing. I tried several times and it keeps failing.

Thanks,

Shri

On Mon, Aug 19, 2024, 11:51 PM Diana @.***> wrote:

@shriganesh https://github.com/shriganesh Thank you for reporting! We would like to take a look at the logs from your device, please follow the steps below.

Enable debug logging: Settings -> General -> Advanced -> Logging level -> Debug 2.

Reproduce the issue, then remember the exact time when it happened 3.

Collect logs: Settings -> General -> Advanced -> Export logs and system info 4.

Send this file to @.***:

  • mention the 5432 number in the subject
    • specify the exact time when the issue occurred

— Reply to this email directly, view it on GitHub https://github.com/AdguardTeam/AdguardForAndroid/issues/5432#issuecomment-2296388335, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ666MI3WT5LG4H7OSU2LTZSHL45AVCNFSM6AAAAABMU6C3J6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJWGM4DQMZTGU . You are receiving this because you were mentioned.Message ID: @.***>

shriganesh avatar Aug 20 '24 08:08 shriganesh

@shriganesh Please open Developer options screen in the device settings and make sure that the Don't keep activities option is disabled.

Versty avatar Aug 22 '24 15:08 Versty

Hi,

I've verified and it's disabled only.

Thanks

On Fri, Aug 23, 2024, 3:40 AM Diana @.***> wrote:

@shriganesh https://github.com/shriganesh Please open Developer options screen in the device settings and make sure that the Don't keep activities option is disabled.

— Reply to this email directly, view it on GitHub https://github.com/AdguardTeam/AdguardForAndroid/issues/5432#issuecomment-2305071227, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ666LUEVP6ZMOZSZ6GKRLZSYBAHAVCNFSM6AAAAABMU6C3J6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBVGA3TCMRSG4 . You are receiving this because you were mentioned.Message ID: @.***>

shriganesh avatar Aug 22 '24 19:08 shriganesh

Hi,

I also tried reinstalling adguard, tried nightly builds. Still facing the same problem. One thing that I noticed is the problem appears only after I import my firewall rules.

I'll try exporting debug logs once again.

Thanks

On Fri, Aug 23, 2024, 7:50 AM Shri Ganesh @.***> wrote:

Hi,

I've verified and it's disabled only.

Thanks

On Fri, Aug 23, 2024, 3:40 AM Diana @.***> wrote:

@shriganesh https://github.com/shriganesh Please open Developer options screen in the device settings and make sure that the Don't keep activities option is disabled.

— Reply to this email directly, view it on GitHub https://github.com/AdguardTeam/AdguardForAndroid/issues/5432#issuecomment-2305071227, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ666LUEVP6ZMOZSZ6GKRLZSYBAHAVCNFSM6AAAAABMU6C3J6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBVGA3TCMRSG4 . You are receiving this because you were mentioned.Message ID: @.***>

shriganesh avatar Aug 22 '24 22:08 shriganesh

Hi,

I just tried exporting the logs again. And it failed again.

Thanks, Shri

On Fri, Aug 23, 2024, 9:30 AM Shri Ganesh @.***> wrote:

Hi,

I also tried reinstalling adguard, tried nightly builds. Still facing the same problem. One thing that I noticed is the problem appears only after I import my firewall rules.

I'll try exporting debug logs once again.

Thanks

On Fri, Aug 23, 2024, 7:50 AM Shri Ganesh @.***> wrote:

Hi,

I've verified and it's disabled only.

Thanks

On Fri, Aug 23, 2024, 3:40 AM Diana @.***> wrote:

@shriganesh https://github.com/shriganesh Please open Developer options screen in the device settings and make sure that the Don't keep activities option is disabled.

— Reply to this email directly, view it on GitHub https://github.com/AdguardTeam/AdguardForAndroid/issues/5432#issuecomment-2305071227, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ666LUEVP6ZMOZSZ6GKRLZSYBAHAVCNFSM6AAAAABMU6C3J6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBVGA3TCMRSG4 . You are receiving this because you were mentioned.Message ID: @.***>

shriganesh avatar Aug 22 '24 22:08 shriganesh

@shriganesh Alright then, let's try to sort out the crash first.

Please follow these steps:

  1. Reproduce the crash, then remember the exact time when it happened

  2. Collect a bug report in the system settings Device settings -> Developer options -> Bug report

(Note: it will take some time to collect the bug report, please wait until the bug report is completed.)

  1. Send this file to [email protected]:
    • mention the 5432 number in the subject
    • specify the exact time when the issue occurred

Versty avatar Aug 23 '24 08:08 Versty

Hi,

It's not actually crashing but it's just very slow and now my mobile battery is dying much faster (my mobile became unusable as filtering became unstable). So I reverted back to v4.5.2. after reverting I'm no longer facing any issues.

On Fri, 23 Aug, 2024, 8:33 pm Diana, @.***> wrote:

@shriganesh https://github.com/shriganesh Alright then, let's try to sort out the crash first.

Please follow these steps:

Reproduce the crash, then remember the exact time when it happened 2.

Collect a bug report in the system settings Device settings -> Developer options -> Bug report 3.

Send this file to @.***:

  • mention the 5432 number in the subject
    • specify the exact time when the issue occurred

— Reply to this email directly, view it on GitHub https://github.com/AdguardTeam/AdguardForAndroid/issues/5432#issuecomment-2306583108, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ666KQHM3NSFR37YHEQIDZS3XT5AVCNFSM6AAAAABMU6C3J6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBWGU4DGMJQHA . You are receiving this because you were mentioned.Message ID: @.***>

shriganesh avatar Aug 24 '24 00:08 shriganesh

@shriganesh The crash when exporting logs will be addressed in #5447, stay tuned!

Versty avatar Sep 02 '24 14:09 Versty

@Versty Thanks. I'm looking forward for a fix as I'm stuck on v4.5. Any version above that is causing this slowness (v4.6.1, v4.6.2 and 2 nightly builds after that).

Was there any change done in 4.6.x and later?

I'm using Adguard in 2 other mobiles. And one of that is again Samsung. But 4.6.2 is working fine on those. Issue appears to happen only in 4.6.2 in S24 ultra (possibly after importing configuration).

I regularly backup and export my firewall rules in all my phones.

shriganesh avatar Sep 02 '24 19:09 shriganesh

@shriganesh Would you mind resetting the AdGuard app to default settings and check if the issue persists with the default settings on the problematic device? It would help us a lot to find the root of this issue.

If so, please clear the app data in the system settings and let me know the result.

Versty avatar Sep 03 '24 15:09 Versty

@shriganesh The crash during logs export is fixed in the latest nightly version. Please update AdGuard to 4.7 nightly 16 and collect debug logs as described in the https://github.com/AdguardTeam/AdguardForAndroid/issues/5432#issuecomment-2296388335

Versty avatar Sep 04 '24 09:09 Versty

@shriganesh Would you mind resetting the AdGuard app to default settings and check if the issue persists with the default settings on the problematic device? It would help us a lot to find the root of this issue.

If so, please clear the app data in the system settings and let me know the result.

Yes. I've tried it already. It becomes slow only after I import my firewall rules backup. Until then it's reasonably fast.

shriganesh avatar Sep 04 '24 09:09 shriganesh

@shriganesh The crash during logs export is fixed in the latest nightly version. Please update AdGuard to 4.7 nightly 16 and collect debug logs as described in the #5432 (comment)

Okay will do it in a couple of days.

shriganesh avatar Sep 04 '24 09:09 shriganesh

I'm experiencing the exact same issue on my Galaxy S24. Once I add roughly 10 custom firewall rules, I experience a lot of lag interacting with the app, it's slow to open the different sections within the firewall module, slow to execute an action, etc. The more custom firewall rules I add the slower the app feels, to the point I can no longer even disable firewall notifications. I will toggle to disable a firewall rule notification and it will automatically toggle it right back. Downgrading back to version 4.5 solves all these issues. Avoiding version 4.6.x for now as I use the firewall heavily with many rules.

ericzeez avatar Sep 06 '24 19:09 ericzeez

@shriganesh Have you sent the logs?

Versty avatar Sep 23 '24 15:09 Versty

@ericzeez Hi! Is it possible for you to send the logs from latest (4.6.3) AdGuard version in order to help us find the cause?

If so, please follow the steps:

  1. Enable debug logging: Settings -> General -> Advanced -> Logging level -> Debug.

  2. Reproduce the problem, then remember the exact time when it happened.

  3. Collect logs: Settings -> General -> Advanced -> Export logs and system info.

  4. Send this file to [email protected]:

    • include [android] keyword and 5432 in the subject of your email
    • specify the exact time when the issue occurred

Versty avatar Sep 23 '24 15:09 Versty

@ericzeez @shriganesh Does this problem still occur on the latest beta (4.6.4 beta 1)?

Versty avatar Oct 04 '24 11:10 Versty

I tried downloading beta from https://adguard.com/en/beta.html Is it the right URL? Because I downloaded and installed. It took over 5 mins to open the app. I only saw the Adguard splash screen for 5 mins. After a force stop, and a 5 min wait it finally opened. Within the app the version shows 4.6.4 beta 1

Well test it out and share an update. In the mean time if the version is incorrect, please share the URL to download the correct version from.

shriganesh avatar Oct 05 '24 05:10 shriganesh

I tried 4.6.4 Beta 1. Screenshot_20241005_195706_AdGuard

It's still slow (probably slower than before). I enabled debug and log export failed just like last time ☹️

shriganesh avatar Oct 05 '24 06:10 shriganesh

@shriganesh

It took over 5 mins to open the app. I only saw the Adguard splash screen for 5 mins. After a force stop, and a 5 min wait it finally opened. Within the app the version shows 4.6.4 beta 1

This is obviously a problem. We need an additional investigation to eliminate the cause.

How many firewall rules and statistics do you have in the application? Please provide screenshots of Statistics tab.

Versty avatar Oct 07 '24 10:10 Versty

Screenshot_20241007_234110_AdGuard Here is the screenshot.

I've around 255 firewall rules. I vaguely remember after I imported them after reverting back to v4.5.x

shriganesh avatar Oct 07 '24 10:10 shriganesh

@shriganesh Thank you!

Versty avatar Oct 07 '24 11:10 Versty

@shriganesh Do you have any other customizations besides firewall rules?

Versty avatar Oct 07 '24 15:10 Versty

@shriganesh Could you provide a system bug report from your device so we could have a better understanding on this issue?

Please follow the steps below:

  1. Launch AdGuard application and go to Settings tab
  2. Enable the Auto-report crashes option
  3. Go to Advanced and set the Logging level to Debug
  4. Reproduce the problem (try to export logs), note current time
  5. Collect a system bug report according to this instruction
  6. Send this file to [email protected]:
    • include [android] keyword and 5432 in the subject of your email
    • specify the exact time when the issue occurred (step 4)

Versty avatar Oct 07 '24 16:10 Versty

@shriganesh Do you have any other customizations besides firewall rules?

Like which filters or something else? I've firewall with ad blocking, tracking protection, annoyance removal, DNS protection, browsing security with Adguard VPN integrated. But the VPN is almost always off.

shriganesh avatar Oct 07 '24 19:10 shriganesh

@shriganesh Could you provide a system bug report from your device so we could have a better understanding on this issue?

Please follow the steps below:

  1. Launch AdGuard application and go to Settings tab

  2. Enable the Auto-report crashes option

  3. Go to Advanced and set the Logging level to Debug

  4. Reproduce the problem (try to export logs), note current time

  5. Collect a system bug report according to this instruction

  6. Send this file to [email protected]:

    • include [android] keyword and 5432 in the subject of your email
    • specify the exact time when the issue occurred (step 4)

I'll try this. But can you tell me what the step 2 does? Also step 4 almost always failes for me. Is there any other workaround?

shriganesh avatar Oct 07 '24 19:10 shriganesh

@shriganesh Most likely a crash occurs when you try to export logs. The option from step two sends us a detailed crash report so we could see the exact cause of the crash.

If step 4 fails, this is exactly what we need in order to figure out the cause of this behavior.

Versty avatar Oct 08 '24 09:10 Versty

@Versty noted. I'll try it and share an update here. It's bit painful because I've to update Adguard, test and then revert it again. If I don't revert, my phone gets hot and battery dies quickly.

shriganesh avatar Oct 08 '24 09:10 shriganesh

@shriganesh Have you sent the logs?

Versty avatar Oct 14 '24 08:10 Versty