AdguardTeam / AdguardForAndroid

Open bug tracker for Android version of AdGuard.
https://adguard.com/
1.22k stars 86 forks source link

Adguard crash immediately after start every time if device doesn't turn on logcat records #5372

Open ajdgsu opened 1 week ago

ajdgsu commented 1 week ago

Please answer the following questions for yourself before submitting an issue

AdGuard version

since 4.xx

Environment

HTTPS filtering

Root access

Integration with AdGuard VPN

Routing mode

Local VPN

Ad Blocking

AdGuard Base filter, AdGuard Mobile Ads filter, EasyList

Privacy

EasyPrivacy

Social

No response

Annoyances

No response

Security

No response

Language-specific

AdGuard Chinese filter

Other

Filter unblocking search ads and self-promotion

Which DNS server do you use?

DNS protection disabled

DNS protocol

None

Custom DNS

No response

What Stealth Mode options do you have enabled?

No response

Issue Details

Steps to reproduce: 1.turn off the logcat records before install the adguard 2.install adguard 3.start app

Expected Behavior

start normally

Actual Behavior

crash immediately

Screenshots

Screenshot 1 ![Screenshot_2024-06-23-13-37-31-239_com android settings](https://github.com/AdguardTeam/AdguardForAndroid/assets/45306865/d3b21d81-35e5-4c57-8752-75bea789d2fa)

Additional Information

if device doesn't turn on the logcat records function (like in picture) before the adguard app installed, after install the app simply crash immediately when you trying to start, this behavior only happens on 4.xx version (yes the last 3.xx version, which is 3.6.54 doesn't have this issue). after turn on logcat records then apps can start normally, and even turn of the logcat records again adguard can still running without problem.

ps: if user installed some magisk modules that disabled the logcat, this can also cause problems as well.

logs here: adguard.zip

ESurina commented 3 days ago

There is no any error in your logs. Could you please collect logs again using this manual:

  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 devteam@adguard.com:
    • mention the 5372 number in the subject
    • specify the exact time when the issue occurred

Also send us your system logs please. Here's how to do it: https://adguard.com/kb/adguard-for-android/solving-problems/logcat/

ajdgsu commented 2 days ago

logs here: logs-2024-06-29-15-33-42.zip Now adguard seems also crash when the logcat records enabled, not sure what's going on. And adguard seems crash with this log: E/JobScheduler.Concurrency(2661): Error executing JobStatus{782da5a #u0a576/11 com.adguard.android/androidx.work.impl.background.systemjob.SystemJobService u=0 s=10576 TIME=-5m5s514ms:none NET READY}