AdguardForAndroid icon indicating copy to clipboard operation
AdguardForAndroid copied to clipboard

Closes when attempting to turn on.

Open Dimon-015 opened this issue 5 months ago • 21 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.10.65

Environment

  • OS version:15
  • Device: Xiaomi 14 Ultra

HTTPS filtering

  • [x] yes, I do

Root access

  • [x] yes, I have it

Integration with AdGuard VPN

  • [ ] yes, I do

Routing mode

Automatic proxy

Ad Blocking

EasyList

Privacy

AdGuard Tracking Protection filter

Social

AdGuard Social Media filter

Annoyances

Adblock Warning Removal List

Security

Online Malicious URL Blocklist

Language-specific

AdGuard Russian filter

Other

AdGuard Experimental filter

Which DNS server do you use?

Cloudflare DNS

DNS protocol

DNS-over-TLS

Custom DNS

No response

What Stealth Mode options do you have enabled?

Block trackers

Issue Details

Steps to reproduce: 1. I open the Adguard app. I click "Enable" and after a few seconds it closes with a fatal error.

Expected Behavior

No response

Actual Behavior

I'll give you the fatal error logs.

Screenshots

Screenshot 1

Additional Information

No response

Dimon-015 avatar Aug 22 '25 11:08 Dimon-015

[Stack Trace]: java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: Try again at java.lang.Thread.nativeCreate(Native Method) at java.lang.Thread.start(Thread.java:1083) at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:965) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1386) at androidx.profileinstaller.ProfileInstallerInitializer.writeInBackground(Unknown Source:22) at androidx.profileinstaller.ProfileInstallerInitializer.lambda$installAfterDelay$1(Unknown Source:0) at androidx.profileinstaller.ProfileInstallerInitializer.c(Unknown Source:0) at androidx.profileinstaller.e.run(Unknown Source:2) at android.os.Handler.handleCallback(Handler.java:959) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loopOnce(Looper.java:249) at android.os.Looper.loop(Looper.java:337) at android.app.ActivityThread.main(ActivityThread.java:9587) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)

Dimon-015 avatar Aug 22 '25 11:08 Dimon-015

Please try updating the app and tell me if the issue is reproducible on version 4.11.

ESurina avatar Sep 02 '25 10:09 ESurina

@Dimon-015 I remind you to try updating the app.

ESurina avatar Sep 09 '25 16:09 ESurina

@Dimon-015 I remind you to try updating the app.

Sorry, I didn't receive a notification about your previous message. Okay, I'll install the latest version and let you know in a few days if there are any errors. Which version do you recommend installing? Which one is considered the most up-to-date and newest?

Dimon-015 avatar Sep 09 '25 20:09 Dimon-015

The newest release version is 4.11.

ESurina avatar Sep 12 '25 13:09 ESurina

If it doesn't help, we need to get your application logs.

Here's what we need you to do:

  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 5817 in the subject of your email
    • specify the exact time when the issue occurred

ESurina avatar Sep 12 '25 13:09 ESurina

@Dimon-015 I remind you to try updating the app.

ESurina avatar Sep 23 '25 08:09 ESurina

@ESurina Same issue, persisting minimum for 2 years since previous releases. Samsung S23 Ultra, Android 15, Apatch 11107 (latest). Adguard v4.11, problem still here. Almost every day crashing with OutOfMemory in logcat. Tried installing Adguard as system app via root manager, didn't help. Reboot fixed the problem, sometimes force closing and clearing cache several times helps without reboot. Turned on debug mode to grab some logs. How and where should I send my logs?

ValanisZz avatar Sep 26 '25 23:09 ValanisZz

Adguard v4.12, nothing changed, still crashing

ValanisZz avatar Oct 03 '25 11:10 ValanisZz

@ValanisZz Can you please send us the logs as per the instructions mentioned above?

ESurina avatar Oct 03 '25 14:10 ESurina

@ESurina Sent logs from v4.11

ValanisZz avatar Oct 03 '25 16:10 ValanisZz

@ValanisZz Could you please send us the logcat too?

ESurina avatar Oct 15 '25 14:10 ESurina

@ESurina Sent logcat for v4.12

ValanisZz avatar Oct 22 '25 14:10 ValanisZz

@ValanisZz Could you tell me if you can't access the app at all or if the crash only occurs after a while? Also we need you to send us a database. You can export it here: Settings -> General -> Advanced -> Low-level settings.

ESurina avatar Nov 17 '25 16:11 ESurina

@ESurina Each time differently. After app stops working (crashing silently) and I try to restart it, one of these can happen:

  • crash immediately on launcher icon tap
  • crash after launch while "Starting protection..."
  • crash after protection started
  • rarely may continue work as usual

ValanisZz avatar Nov 18 '25 18:11 ValanisZz

We see that the problem is caused by the large number of statistics. We've adjusted for this in the latest Nightly update, so this update should help. Clearing your statistics is also an option, but that's only a temporary solution.

ESurina avatar Nov 20 '25 10:11 ESurina

Updated to v4.14 Nightly 7. I will monitor if any crashes would happen. If everything would be good, I will write back in a week.

ValanisZz avatar Nov 20 '25 10:11 ValanisZz

@ESurina nope, update and statistics reset didn't help, crashed again

ValanisZz avatar Nov 21 '25 15:11 ValanisZz

Could you please reset the statistics, enable debug logs, and immediately after the first crash, download the database and logs and send them to us?

ESurina avatar Nov 25 '25 13:11 ESurina

@ESurina sent both files

ValanisZz avatar Nov 27 '25 15:11 ValanisZz

Thank you, we received them!

ESurina avatar Dec 08 '25 12:12 ESurina

Could you please install any app, that monitors RAM memory and see which application is using the most memory? We have a hunch that some application is using a lot of memory and there is no memory left for AdGuard.

ESurina avatar Dec 15 '25 11:12 ESurina

I have already turned Samsung RAM profiler before when tried to resolve Adguard OOM crashes on my on. Seems like Adguard app has memory leaks somewhere and after several hours it definitely crashes as there was no memory left. Here are up-to-date screenshots of memory profiler without Adguard running.

I have also tried running Adguard for Windows on my server PC as proxy server and use 24/7 proxy root client on my Android phone, connected to Adguard proxy. This setup is currently working for 5 days without issues. Seems like the main issue is with Adguard Mobile App.

Image Image

ValanisZz avatar Dec 16 '25 01:12 ValanisZz

Thank you! Could you please also send us a screenshot of memory profiler with AdGuard running?

ESurina avatar Dec 17 '25 16:12 ESurina

Sure, here they are

Image Image

ValanisZz avatar Dec 18 '25 14:12 ValanisZz