NekoX icon indicating copy to clipboard operation
NekoX copied to clipboard

Battery drain

Open MartinX3 opened this issue 2 years ago • 8 comments

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:

  1. Have an unread message in the status bar
  2. Phonescreen is off
  3. 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

image

MartinX3 avatar Jun 13 '22 10:06 MartinX3

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.

avently avatar Jun 21 '22 11:06 avently

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

MartinX3 avatar Jul 04 '22 11:07 MartinX3

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

nekox

avently avatar Jul 04 '22 15:07 avently

https://github.com/NekoX-Dev/NekoX/search?q=decodequeue

luvletter2333 avatar Jul 04 '22 15:07 luvletter2333

Thank you for helping us find this issue. I think this issue comes from telegram android but I need to check it more carefully.

luvletter2333 avatar Jul 04 '22 16:07 luvletter2333

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.

MartinX3 avatar Jul 04 '22 16:07 MartinX3

@luvletter2333, did you find a cause? Or is it hard to reproduce?

avently avatar Jul 23 '22 14:07 avently

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?

cfitz25 avatar Jan 15 '23 02:01 cfitz25