Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nightly 4.0 keeps crashing in native code #4524

Closed
4 tasks done
androidacy-user opened this issue Mar 20, 2023 · 48 comments
Closed
4 tasks done

Nightly 4.0 keeps crashing in native code #4524

androidacy-user opened this issue Mar 20, 2023 · 48 comments

Comments

@androidacy-user
Copy link

androidacy-user commented Mar 20, 2023

Please answer the following questions for yourself before submitting an issue.

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

AdGuard version

4.0 nightly 68

Environment

- OS: Android 13
- Device: Pixel 7 Pro
- Firmware: Pixel

Root access

  • Yes, I have it.

What filters do you have enabled?

AdGuard Base filter, AdGuard Mobile Ads filter, AdGuard Tracking Protection filter, AdGuard URL Tracking filter, AdGuard Annoyances filter, Fanboy's Annoyances, Fanboy's Enhanced Tracking List, Fanboy's Anti-Facebook List, I don't care about cookies

What Stealth Mode options do you have enabled?

Send Do-Not-Track signals, Strip URLs of tracking parameters, Disable WebRTC, Remove X-client-Data header from HTTP request, Protect from DPI

Issue Details

Steps to reproduce:

  1. Use Adguard and let it run and do it's thing
  2. Adguard crashes in the background

Expected Behavior

No crash

Actual Behavior

Crash

Screenshots

N/A

Additional Information

Crash trace and additional info

[Device Model]: Pixel 7 Pro
[Display]: T2B3.230109.004
[Android Version]: 13
[Android API Level]: 33
[System Locale]: en_US
[Process ID]: 26349
[CPU ABI]: arm64-v8a
[Package Name]: com.adguard.android
[Version Name]: 4.0.671
[Version Code]: 10051490
[Error Type]: Native
[Crash Time]: 2023-03-20T08:44:22.021
[Stack Trace]:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/cheetah/cheetah:13/T2B3.230109.004/9554463:user/release-keys'
Revision: 'MP1.0'
ABI: 'arm64'
Timestamp: 2023-03-20 08:44:20.143136711-0400
Process uptime: 215359s
Cmdline: com.adguard.android
pid: 26349, tid: 9423, name: Thread-4466  >>> com.adguard.android <<<
uid: 10502
tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x00000077edae9000
    x0  b4000077ed9884f0  x1  0000000000000000  x2  3220332f503e48c0  x3  b4000077edae9000
    x4  e62033a73decd940  x5  0000000000000004  x6  0000000000000000  x7  0000000000000000
    x8  3220332f50545450  x9  0000000000000000  x10 ffffffffffffffff  x11 0000000000000000
    x12 0000000000000000  x13 0000000000000000  x14 b40000766dafff80  x15 000000750e060491
    x16 00000078d6cf2d08  x17 00000078d6c70fe0  x18 000000748e3e6000  x19 b40000771dc89150
    x20 0000000000000000  x21 0000000000000001  x22 0000000000006eaf  x23 b40000781d85eeb0
    x24 0000000000000000  x25 000000750e061000  x26 00000075aeab4000  x27 0000000000000001
    x28 0000000000000000  x29 000000750e05dd60
    lr  00000075ae9a882c  sp  000000750e05dd20  pc  00000078d6c710e0  pst 0000000020001000
backtrace:
      #00 pc 000000000004f0e0  /apex/com.android.runtime/lib64/bionic/libc.so (memset+256) (BuildId: dc4001c2ef2dfc23467040797a96840c)
      #01 pc 0000000000956828  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #02 pc 0000000000956684  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #03 pc 0000000000956610  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #04 pc 00000000009567a8  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #05 pc 000000000091fd50  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #06 pc 000000000091fdd8  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #07 pc 000000000091fe78  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #08 pc 000000000091c420  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #09 pc 000000000091ab14  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #10 pc 000000000055c450  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #11 pc 000000000055c7fc  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #12 pc 000000000054e328  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #13 pc 000000000054b318  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #14 pc 00000000004eb27c  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #15 pc 00000000004d0fac  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #16 pc 00000000004cf5c4  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #17 pc 00000000004cee3c  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #18 pc 00000000004ceca4  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #19 pc 00000000004c91c4  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #20 pc 000000000074ca64  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #21 pc 00000000007a7718  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #22 pc 00000000007b41f8  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #23 pc 00000000007b0fb4  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #24 pc 000000000074b6ac  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #25 pc 0000000000470e70  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #26 pc 00000000008101ec  /data/app/~~GLJetNPEk9hsOq_Ue_P-eA==/com.adguard.android-3yI6HwSEFIFuhlKqwJA7kw==/lib/arm64/libadguard-core.so (BuildId: a38c65d48ba7eabcd002ce899accede48b309bc7)
      #27 pc 00000000000c226c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204) (BuildId: dc4001c2ef2dfc23467040797a96840c)
      #28 pc 0000000000054a30  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: dc4001c2ef2dfc23467040797a96840c)
@Versty
Copy link
Member

Versty commented Mar 20, 2023

@androidacy-user Have you enabled the Auto-report crashes option?

@androidacy-user
Copy link
Author

@androidacy-user Have you enabled the Auto-report crashes option?

I have, but as the last 3+ versions have these random native crashes, I thought I'd open an issue

@Versty
Copy link
Member

Versty commented Mar 20, 2023

@androidacy-user Thank you for the feedback, we will examine the crash reports from your device.

@androidacy-user
Copy link
Author

This is happening several times a day now, and chrome keeps showing the "aw, snap" page with Adguard enabled

@androidacy-user
Copy link
Author

Now happens about once every hour or two if not more.....

@sfionov
Copy link
Member

sfionov commented Mar 31, 2023

@androidacy-user "Aw, snap" is Chrome crash, not AdGuard's, it is not usually triggered by AdGuard. Do you have another apps constantly crashing?

@androidacy-user
Copy link
Author

@androidacy-user "Aw, snap" is Chrome crash, not AdGuard's, it is not usually triggered by AdGuard. Do you have another apps constantly crashing?

Adguard and chrome pages. The aw snap is only constantly occurring with Adguard enabled. Excluding chrome from filtering causes the problem to go away, and it seems to be limited to chrome specifically - Edge doesn't have the same issue.

@Versty
Copy link
Member

Versty commented Apr 3, 2023

@androidacy-user If you completely disable traffic filtering for Chrome in AdGuard (Settings -> Filtering -> Apps -> App management -> Chrome -> Route traffic through AdGuard), would Chrome crash than?

@androidacy-user
Copy link
Author

@androidacy-user If you completely disable traffic filtering for Chrome in AdGuard (Settings -> Filtering -> Apps -> App management -> Chrome -> Route traffic through AdGuard), would Chrome crash than?

No

@Versty
Copy link
Member

Versty commented Apr 14, 2023

@androidacy-user Do the crashes persist on the latest nightly version?

@Versty
Copy link
Member

Versty commented Apr 25, 2023

@androidacy-user Any updates?

@androidacy-user
Copy link
Author

Sorry, I no longer use the app. It was causing way too many issues.

@0xrxL
Copy link

0xrxL commented Apr 27, 2023

@androidacy-user Any updates?

Yeah...this crash persist also on last nightly. It's terribly annoying during navigation and forced me to downgrade to Stable.

For how many time do you think this will be left unfixed in nightly? Because I don't think you'll get many testers willing to stay in this test channel, and some are already leaving.

@ScathachSkadi
Copy link

It does this on the latest nightly. It now does it on beta since it shares the same code. I really want to downgrade to stable now but because of the rewrite it doesn't support the settings backup. I am too lazy to go through the settings again. @Versty do you need the crash logs? I made some right after it crashes.

@Versty
Copy link
Member

Versty commented May 3, 2023

@ScathachSkadi Yes. It would be much appreciated if you could sent the crash logs to [email protected].
Please mention the number 4524 in the subject line.

@0xrxL
Copy link

0xrxL commented May 3, 2023

#4648

@Versty
Copy link
Member

Versty commented May 19, 2023

@0xrxL This crash is a rare case, we are doing our best to find a root cause.
In order to help us, it is important to keep the Auto-report crashes and Send technical and interaction data options enabled.

@Versty
Copy link
Member

Versty commented May 22, 2023

@ScathachSkadi @0xrxL If crashes still occur on your device, could you collect the debug logs once again?

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

  2. Wait for the crash, 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 4524 number in the subject
    • specify the exact time when the crash occurred

@ScathachSkadi
Copy link

ScathachSkadi commented May 22, 2023

@Versty It still happens on nightly 107. I will collect the logs when it happens. Though it doesn't happen as much as it did before so it might take a day or two. Also, I have enabled auto report a few days ago.

@0xrxL
Copy link

0xrxL commented May 22, 2023

#4707

@Versty
Copy link
Member

Versty commented May 23, 2023

@ScathachSkadi We have received you logs. Unfortunately, the logging level in your file is not debug. The default logs cannot say much about the root cause. So it is important to collect the debug logs.

Would you please repeat all the steps from the comment above with the debug logging level?

@ScathachSkadi
Copy link

@Versty Sorry, I didn't notice. Will do.

@ScathachSkadi
Copy link

@Versty I sent them two times now. Did you get them?

@Versty
Copy link
Member

Versty commented May 24, 2023

@ScathachSkadi Yes, we have received the debug logs from you. Thanks!
Could you recall the crash time?

@ScathachSkadi
Copy link

@Versty yesterday 22:15 for the 7MB one and 8:24 AM for the 11MB one today. In KST

@jordanswrld94
Copy link

i have tbe same issue. but i updated to tbe latest nightly today and now i get a little popup when it restarts. it says "applying settings" then disappears. anyone else get this new message?

@ScathachSkadi
Copy link

@jordanswrld94 I do too but the vpn doesn't look like it restarts or it restarted too fast that I didn't notice. There are other situations where the vpn restarts and that toast notification doesn't show up. So it might be a slightly different case.

@ScathachSkadi
Copy link

ScathachSkadi commented May 29, 2023

Ok now it crashed for me as well with the toast notification "applying settings" @Versty do you need more logs? How is the bug fix going? I think this needs to be a priority because I have no problems with the app other than this... Edit: I sent another.

@jordanswrld94
Copy link

jordanswrld94 commented May 31, 2023

i got the logs but it says i exceeded the 25mb limit. how do i send with the file limit on?

edit: i just sent it with the logs files only and was able to send. hope thats ok. restart occured between 12:56 and 12:59 pm.

@0xrxL
Copy link

0xrxL commented Jun 1, 2023

@Versty Any update about this?

@jordanswrld94
Copy link

i see a issue created by him but looks like nothing mentioned in latest update. #4744 even tho it says fixed on that commit

@ScathachSkadi
Copy link

No toast notification anymore, but it still crashes on Nightly 111.

@jordanswrld94
Copy link

jordanswrld94 commented Jun 9, 2023

same here still crashes

@Versty
Copy link
Member

Versty commented Jun 13, 2023

@ScathachSkadi @jordanswrld94 @0xrxL
This issue is in progress. Thank you for your patience.

@jordanswrld94
Copy link

sadly idk how this will be fixed. i have reverted back to v3 for now. :(

@jordanswrld94
Copy link

woke up and vpn still active on latest which is rare. idk what was changed but i think its fixed. all i would recommend is turning off watchdog. that may be causing it too idk

@jordanswrld94
Copy link

jordanswrld94 commented Jun 25, 2023

been running on the latest nightly all day havent noticed any restarts. this is great. espscially coming from 20 min restarts last build. hopefully this is is fixed for other users too. great job adguard

@ScathachSkadi
Copy link

ScathachSkadi commented Jun 26, 2023

I still get crashes no watchdog no log sending on v4.1 nightly 9

@jordanswrld94
Copy link

sorry to hear im on day 2 and adguard still hasnt shut down whild im sleeeping. but i also did do a clean instal. no restore of settings either. idk if thats why

@ScathachSkadi
Copy link

I will try a fresh install I guess

@0xrxL
Copy link

0xrxL commented Jun 27, 2023

I will try a fresh install I guess

Let us know the test results. 👍

@ScathachSkadi
Copy link

Still crashes but not as often on fresh install.

@jordanswrld94
Copy link

yeah i got a crash or 2 as well. sorry about that. its weird its not as often tho

@jordanswrld94
Copy link

crashing isnt completely fixed in newest like it says but i only got one restart within a couple hours. id update to the newest and turn on techinal data and bug reporting options maybe that will help find the leftover code needed to change to fix this issue completely

@sfionov
Copy link
Member

sfionov commented Jul 5, 2023

@jordanswrld94 @ScathachSkadi Can you please turn on "Automatic crash reporting", and when the crash happens, tell us the time?

@Versty
Copy link
Member

Versty commented Aug 9, 2023

@ScathachSkadi @jordanswrld94 How is it going?
If the app still crashes from time to time, please provide the crash time directly in this thread.
We are trying to find the corresponding crash entries and fix this issue completely.

@ScathachSkadi
Copy link

ScathachSkadi commented Aug 9, 2023

@Versty No crashes for me, but it doesn't automatically check for updates and update filters by itself anymore. I am missing one to two nightly versions everytime and I am manually checking for updates every now and then.

@Versty
Copy link
Member

Versty commented Aug 16, 2023

@ScathachSkadi Could be the same case as #4887.
Please continue the discussion in the linked issue and, if possible, provide more details about your device.
It is also important to know if the problem existed on your device with version 3.6.11 of the AdGuard for Android.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants