-
Notifications
You must be signed in to change notification settings - Fork 91
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
High CPU consumption in v4.6 due to a TCP/IP stack implementation bug #5505
Comments
Things to check:
|
|
@ameshkov Can this usage related to this issue in any way? P.S: I have a S23 Plus however. |
@derKief just in case, could you please try nighlty version of AG? It has just minor improvements, but for some reason we don't see reports from Samsung owners on the nightly build (and the two I saw on GH seem to have normal usage). |
Ever since at least 4.6.4, Adguard has been the top consumer of battery life on my (Samsung) phone every time I've checked, with no change in my usage of the phone. I'll try the nightly today, but 4.6.204 definitely did not fix the issues. And yes, I have sent the logs to support, but I got an email this morning closing the ticket, with no other information. I don't want to just pile on this ticket with a useless comment, but this issue is definitely not resolved with 4.6.204. |
We responded to you yesterday in ticket #978524 before closing it. In our response, we informed you that the app logs were forwarded to our development team and provided a link to this issue so you can track further progress. |
Yes there was a link to this issue, which is why I'm here. It sounded above like victory was being declared a bit too early, but perhaps I misread that. Back on topic, I've used the v4.7 Nightly 44 this morning for about 3 hours, and AdGuard has used 19.1% of my battery in that time, 3 times more than the next app. Device battery usage is still higher than normal with the latest nightly. :( |
@abryant-hv what exact Samsung model are you using just in case? |
It's a "Galaxy A52 5G". Model name is "SM-A526U" |
with the Nightly 44 (4.7.89) it has gotten better but in direct comparison to the stable 4.5 it is still too high/much. @ameshkov I replied to your private e-mail. Waiting on feedback. |
Today I tried to update to the new 4.7 Nightly 45, but it didn't work. The app crashed and wouldn't start anymore. |
Mhh...weirdly in my case the Nightly 45 (at least for the moment) seems to be very optimised. Check it out here: |
Had this been fixed yet. I had to turn it off the drain was so bad. Where can I find 4.5th go back to it |
no. i would just go back to 4.5 for now |
Yes where is it to download please |
or directly from here -> https://github.com/AdguardTeam/AdguardForAndroid/releases/tag/v4.5 |
I know it's a Samsung ticket but i have the same problem on a Xiaomi Phone. I have reverted to 4.5 and will be watching this ticket to see if any solutions manifests itself. |
good to know its an all around issue |
I don't think the 4.6 build 204 Hotfix version completely fixed the problem. The battery drain caused by the calendar timezone change when phone is idle is gone. However the app still seems to cause very high CPU usage when it's not idle, causing phone to heat up badly and battery goes down insanely fast. I posted here. The AdGuard battery stat screen shows 24-hour usage is normal, but when I use the phone, CPU temp goes through the roof, approaching around 80C sometimes in as little as 2-5 minutes. And the battery drops super fast. The phone becomes a very effective hand warmer. I noticed this while using the Bing app and AliExpress app in particular. I went back to v4.5. Phone still got warm while using those apps but not as much as the v4.6 build 204 Hotfix version. v4.6 build 204 Hotfix - CPU temp 70-80C while using apps. Temp consistently above 70C with spikes to 80C. v4.5 - CPU temp 60-70C while using apps. Temp around 60C with a few spikes to 70C. phone is Vivo X100 Pro. |
I can now confirm that this is not just a Samsung problem. My wife's Poco X6 Pro is also affected and here too we are back to v4.5 |
Heh...Unfortunately, today the latest Nightly started to drain my battery again, and this after starting to watch a TV series from web browser. This problem didn't happen during normal navigation, maybe this can helpful to find the root of problem @ameshkov? |
Xiaomi (poco F6) too. i first think my devices broken XD. after restart and start adguard seem fine. security patch same 2024-10 -1, could this be the cause? i feel before update to this patch don't have this problem, but after update at today i got this problem CPU locked at high speed (via CPUZ) |
I downgraded even more today to v4.4.1 as I find even with v4.5 the CPU temp seems rather elevated. Before testing v4.4.1, CPU temp was 100% under 40C. on v4.5, after using the same apps, CPU temp would be between 60-70C. so far my results: gonna do the same tests again tomorrow. |
@0xrxL why do you think it's a "drain" and not a normal usage? Did it stop after you finished watching? Is it specific to that website? |
@muchqs tbh temperature numbers do not provide us with any insights into the issue. AdGuard prints CPU usage numbers measured by the system, it'd be helpful if you compare them between different versions. Basically, we need every record in the log that contains |
@derKief I think you should tag users to get their response. |
@derKief, my phone rebooted, so I can't reproduce the problem right now. Not with stable and also not with nightly. But I'm confident it won't take long before the problem comes back. I'm also on 4.7 Nightly 52 now... |
@muchqs we tried tons of apps and so far no issues were reproduced. Of course we tried Bing app, no luck as well. If you can reproduce that on your side, the log and threads stats will be very helpful. With this kind of bugs they don't usually happen at will, the stars must align :( |
Anyone, any luck with reproducing on nightly 52? :) |
Hi Andrey, My summary: the problem has been significantly improved but is still not as good as it was in version 4.5. |
Argh, but there was literally no important changes 51 --> 52 😢 Just in case, here's APK for nightly 51:
Is it with debug logging? Debug logging adds extra overhead. |
nope ... debug logging is deactivated. |
@ameshkov, I sent a message to the devteam mail address with the cpu stats and the logcat results using 4.7 Nightly 52. |
@derKief even though it's not as bad as it was, could you please enable debug-level logging and export it after some long using of the app? Maybe this "packet getting stuck" issue still happening but for shorter periods of time? @DonEstefan in your case it's related to Firewall not being able to compose a notification for Google Health app: We're looking into it. |
I won't have the opportunity to test for a while now and have therefore gone back to the stable version 4.5. |
On Nightly 54, after a full days usage, reported battery usage is only at 1%, think it's been fixed |
Any idea when nightly 54 will be pushed to production? |
So...nightly 54 fixed battery drain? I'm asking this because I can't reproduce battery drain too...for the moment. |
@0xrxL and the rest Its better but not fixed (at least for me). I already mention this here |
@DonEstefan regarding the issue that you sent we figured it out. The problem was caused by a completely different bug: when you switch "firewall notifications" it was doubling the number of firewall rules (you can't see them though). In your case the number of firewall rules is probably through the roof and this is causing everything else (including the logs export issue). In the next nightly update we'll remove those duplicate rules, but you can quickly fix it too just by clearing app data. @derKief I honestly don't understand what could've fixed that high temperature issue. I am of course glad that it's gone, but I suspect something is still wrong. If at some point you'll have time to collect the logs again, please let me know. |
@ameshkov Hi, i have Samsung S24+, for me not drain battery but when i close the app notifications, the app's battery usage decrease and since from 4.5 when i close notifications from app settings, the app going to crash and i have to restart app again. Maybe gonna help for the issue.
|
Could you please explain what exactly you're doing here? Maybe with a screenshot? |
step by step |
@AlgorithmOfGithub We have managed to reproduce this bug on our side. |
@ameshkov, I'm back an v4.5 for several days now, which causes no trouble. Tomorrow I'll install the latest Nightly (probably 4.7 n59) and keep you posted. |
@ameshkov do you think this bug will be fixed within a couple months? |
@ameshkov, I'm running nighty 59 for more than 24h. No CPU load issues any more. Battery usage is back to normal. Log export is also working great. |
for a 7 hour period only 4 percent is good wouldn't you say? @ameshkov |
Please answer the following questions for yourself before submitting an issue
AdGuard version
v4.6.4 (204)
Environment
HTTPS filtering
Root access
Integration with AdGuard VPN
Routing mode
Local VPN
Ad Blocking
No response
Privacy
No response
Social
No response
Annoyances
No response
Security
No response
Language-specific
No response
Other
No response
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
The issue was originally reported by @derKief, check out the logs analysis here:
#5499 (comment)
To sum it up, AdGuard v4.6 consumes several times more than v4.5
Expected Behavior
No response
Actual Behavior
The usage should be more or less the same in v4.5 and v4.6.
Screenshots
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: