NekoX
NekoX copied to clipboard
Battery drain
Describe the bug
For months i have seen an increased battery and cpu load due to nekox.
According to htop
it nekox consumes 2 of my 8 cores at 100% while the screen is off.
To Reproduce Steps to reproduce the behavior:
- Have an unread message in the status bar
- Phonescreen is off
- htop shows high cpu usage.adb
Logcat log.log
Expected behavior No battery drain and high cpu usage
Screenshots N/A
Smartphone (please complete the following information):
- Device: Sony Xperia XZ2
- OS: Android 11
- Version 11
Additional context
PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
10890 u0_a286 20 0 15.2G 658M 72988 S 105. 11.6 3h23:03 nekox.messenger
11389 u0_a286 20 0 15.2G 658M 72988 R 105. 11.6 2h44:28 nekox.messenger
Same happens to me. I can't find a way to reproduce this behavior. This issue can happen after hours of browsing in Nekox. So I have to monitor htop in order to kill the app when it is using to much CPU, otherwise the phone is hot and battery is 0.
According to betterbatterystats nekox is the process with the highest battery consumption
Like it would run a miner for cryptocurrency
I'll switch back to telegramX
Made a screenshot with threads name. So the problematic thread is visible for those who wants to find a problem. It's name is decodeQueue
https://github.com/NekoX-Dev/NekoX/search?q=decodequeue
Thank you for helping us find this issue. I think this issue comes from telegram android but I need to check it more carefully.
The issue doesn't exist on TelegramX as far as I see and a friend also reports on his phone.
While NekoX was at the first place in BetterBatteryStats I can't find TelegramX there.
@luvletter2333, did you find a cause? Or is it hard to reproduce?
I dont know if this is related but on my android phone running /e/OS i get massive battery drain from a different builtin app called Media Storage. It only happens when nekogram x is open or left open when the screen is locked. Could it be related to that at all?