AdguardForAndroid icon indicating copy to clipboard operation
AdguardForAndroid copied to clipboard

AdGuard for Android freezes and hangs when changing Local VPN status (protection on/off, updating filters, etc.) [logs]

Open vitek29 opened this issue 3 years ago • 17 comments

Issue Details

  • AdGuard version:
    • v.3.6.10 (51)
  • Filtering mode:
    • Local VPN
  • Device:
    • realme GT 2 Pro / RMX3301
  • Operating system and version:
    • Android 12
  • Root access:
    • No

Expected Behavior

I expect a usual behavior without periodical VPN disconnects and app freezes.

Actual Behavior

  1. (see logs#1 section). App freezes when changing protection switch from on to off (see last 3 mins).
  2. (see logs#2 section). After some short period of time VPN disconnects on it's own without further restarting. When this happens and I am trying to open the app to start ad protection manually, AdGuard freezes totally with no response until force stop. Tried to enable Wachdog option but it didn't help. Sometimes I got a CONNECTION_RESET error in browser when web surfing and the only workaround is to disable protection or restart the smartphone.

Screenshots

Screenshot:

Example of frozen AdGuard (1) Screenshot_2022-09-14-11-31-06-47_a93965f46c4a4b0ed1be737bdf2bc8fc

Example of frozen AdGuard (2) Screenshot_2022-09-14-11-31-53-50_b783bf344239542886fee7b48fa4b892

Example of connection reset error Screenshot_2022-09-14-12-36-37-11_df198e732186825c8df26e3c5a10d7cd

Additional Information

Logs#1, app freezes when changing protection switch from on to off (see last 3 mins) adguard_logs_3.6.51_1509_201013.zip

Logs#2: Logs when I was unable to reach fjsoft.at: adguard_logs_3.6.51_1409_123658.zip

There were 3 additional support requests from app related with this issue: #637804, #637908, #638385.

vitek29 avatar Sep 14 '22 08:09 vitek29

The issue reproduces constantly after device went to sleep. All battery optimizations are switched off and background activities for AdGuard are turned on UPD I got the same thing when keeping the device in my hand. :(

vitek29 avatar Sep 15 '22 06:09 vitek29

@vitek29 we’re looking into the problem. Please wait

maxikuzmin avatar Sep 15 '22 22:09 maxikuzmin

@vitek29 we’re looking into the problem. Please wait

Got another set of logs with a screen capture video. App doesn't respond even after app restart (end of video) until force stop.

Screen capture: https://user-images.githubusercontent.com/45712948/190572861-30995fdc-adb6-4bc7-945b-ae4beee18217.mp4

AdGuard logs: adguard_logs_3.6.51_1609_113410.zip

Logcat: logcat10.zip

vitek29 avatar Sep 16 '22 06:09 vitek29

@maxikuzmin Hi, do you need any other information on the mentioned issue? Please use the logs from the above message also if necessary.

vitek29 avatar Sep 20 '22 10:09 vitek29

@vitek29 thank you! Issue in the works

maxikuzmin avatar Sep 20 '22 12:09 maxikuzmin

@vitek29 thank you, we're still working it out. Did I understand correctly that there is also a problem with the VPN? Can you record a video as well and attach the extended logs with the time stamp? You can email that to [email protected]

maxikuzmin avatar Sep 20 '22 12:09 maxikuzmin

@maxikuzmin

there is also a problem with the VPN?

At the moment I don't use any VPN software, and by "VPN" I meant android VPN function or "Local VPN" in terms of AdGuard. So I am unable to provide any evidence related to issues with AdGuard VPN or other VPN soft.

vitek29 avatar Sep 20 '22 14:09 vitek29

@vitek29 we’re looking into the problem. Please wait

maxikuzmin avatar Sep 22 '22 10:09 maxikuzmin

@maxikuzmin I am having the same issue as @vitek29. I have the same phone as @vitek29.

boyedarat avatar Sep 23 '22 10:09 boyedarat

@boyedarat we’re looking into the problem. You can also send your extended logs with the time of the problem to [email protected].

maxikuzmin avatar Sep 23 '22 13:09 maxikuzmin

@maxikuzmin any progress on the issue?

The app freezes when I attempt to reproduce the issue for logging. Making it hard to capture logs.

boyedarat avatar Sep 30 '22 10:09 boyedarat

@boyedarat we are still investigating this problem. Do you also have adguard that hangs and won't start when you go to sleep mode? As far as I understand, restarting the app helps solve this hang? Try restarting adguard after it hangs again and unload the logs

maxikuzmin avatar Oct 03 '22 12:10 maxikuzmin

@maxikuzmin The issue is not related to device sleep. You can find fresh logs made after firmware update. The app hung after some time. Logs collected right after stop/restart.

Logs have been deleted for privacy reasons.

vitek29 avatar Oct 03 '22 15:10 vitek29

@vitek29 please try without third-party vpn (Judging by the logs, you have Proton enabled immediately after turning off AdGuard) Also try running AdGuard in local vpn mode Will it hang in this case?

maxikuzmin avatar Oct 05 '22 14:10 maxikuzmin

@maxikuzmin It's very strange, cause ProtonVPN is installed but not enabled and I am turning it on only occasionally. I had used Local VPN mode but also tried with Local HTTP proxy to avoid AdGuard hanging.

Btw, here is the logs collected when ProtonVPN is uninstalled and right after AdGuard hanging. Logs have been deleted for privacy reasons.

vitek29 avatar Oct 06 '22 03:10 vitek29

@vitek29 did local VPN mode help you?

maxikuzmin avatar Oct 06 '22 10:10 maxikuzmin

@maxikuzmin As said before, I faced with the mentioned issue (hang) in local VPN mode which I have been using for ages. As a workaround I tried a local HTTP proxy mode but without success #4243. Logs collected when AdGuard is in local VPN mode. Logs have been deleted for privacy reasons.

vitek29 avatar Oct 06 '22 11:10 vitek29

@vitek29 we’re looking into the problem. Please wait

maxikuzmin avatar Oct 10 '22 12:10 maxikuzmin

@vitek29 to the sent logs, can you verify the hang time?

maxikuzmin avatar Oct 14 '22 09:10 maxikuzmin

@maxikuzmin I collect logs right after the hang. It hung when I click check for update button, then I force stopped it and saved logs right after the opening app. Please try to look for a check for update action and then it points you to the right time.

vitek29 avatar Oct 14 '22 11:10 vitek29

@vitek29 Sorry, it seems to be a problem on stopping local VPN tunnel. We're added additional logging to nightly version, which may help to debug this issue. Unfortunately, we can't reproduce it on our side and we need your help!

Can you please install Nightly from https://agrd.io/android_nightly and record debug log and logcat again?

sfionov avatar Oct 19 '22 09:10 sfionov

@sfionov Few days ago I have updated the device firmware to Android 13 beta and it seems like the hang gone. I will try to reproduce the issue but I am not sure if it is still here.

vitek29 avatar Oct 20 '22 10:10 vitek29

@vitek29 any news?

maxikuzmin avatar Oct 24 '22 13:10 maxikuzmin

@maxikuzmin Sorry, at the moment no news, because I am currently on a business trip and use VPN app all the time to avoid restrictions. I installed a nightly build and try to reproduce the issue.

vitek29 avatar Oct 27 '22 06:10 vitek29

@vitek29 okay, I'm waiting

maxikuzmin avatar Oct 27 '22 15:10 maxikuzmin

@vitek29 any news?

maxikuzmin avatar Oct 31 '22 10:10 maxikuzmin

@vitek29 it looks like the issue has been resolved in the latest Realme Android 13 (C.08) release.

Besides issues with AdGuard, I've also had similar issues with Windscribe, on the older Realme builds. All resolved in the latest Android 13 build.

boyedarat avatar Nov 02 '22 04:11 boyedarat

@maxikuzmin I can't reproduce the issue on Android 13. I suppose we can suspend this bug report at the moment. If I face this issue I will raise it again.

vitek29 avatar Nov 02 '22 08:11 vitek29

@boyedarat @vitek29 for the moment, I'm closing this issue. You can reopen the issue in the future if the problem persists

maxikuzmin avatar Nov 02 '22 10:11 maxikuzmin