AdguardForAndroid
AdguardForAndroid copied to clipboard
AdGuard for Android freezes and hangs when changing Local VPN status (protection on/off, updating filters, etc.) [logs]
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
- (see logs#1 section). App freezes when changing protection switch from on to off (see last 3 mins).
- (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)

Example of frozen AdGuard (2)

Example of connection reset error

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
- extra logcat (see last 3 mins) logcat7.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.
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 we’re looking into the problem. Please wait
@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
@maxikuzmin Hi, do you need any other information on the mentioned issue? Please use the logs from the above message also if necessary.
@vitek29 thank you! Issue in the works
@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
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 we’re looking into the problem. Please wait
@maxikuzmin I am having the same issue as @vitek29. I have the same phone as @vitek29.
@boyedarat we’re looking into the problem. You can also send your extended logs with the time of the problem to [email protected].
@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 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 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 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 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 did local VPN mode help you?
@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 we’re looking into the problem. Please wait
@vitek29 to the sent logs, can you verify the hang time?
@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 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 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 any news?
@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 okay, I'm waiting
@vitek29 any news?
@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.
@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.
@boyedarat @vitek29 for the moment, I'm closing this issue. You can reopen the issue in the future if the problem persists