element-android: big battery drain after incoming call - infinite sync loop every 2-3 seconds

Element use too match battery.

I check on my server push:

root@im:~# cat /var/log/matrix-synapse/homeserver.log* | grep 'push actions for @progserega:rsprim.ru' | cut -d ' ' -f1 | sort | uniq -c
     13 2019-10-04
     37 2020-09-23
     81 2020-09-24

And sync:

root@im:~# cat /var/log/matrix-synapse/homeserver.log*|grep '@progserega:rsprim.ru' |grep YD201|grep sync|cut -d ' ' -f1 | sort | uniq -c
     13 2019-10-04
  11771 2020-09-23
  10685 2020-09-24

Screenshots Sorry for non-english screenshots.

Most translations:

  • “Активный режим (Акт. режим)” - active mode
  • “Работа экрана” - Screen on
  • “Сигнал мобильной сети” - mobile network connectivity level
  • “ЦП - всего” - CPU all
  • “ЦП - акт.режим” - CPU at active mode
  • “Данные получены по моб. сети” - data received by mobile network
  • “Данные отправлены по моб. сети” - data sended to mobile network
  • “Время работы приемопередатчика” - time work of radio-tranciver module
  • “Экран” - screen
  • “Система Android” - system android

23.09.2020: Screenshot_20200923-140317 Screenshot_20200923-140346 Screenshot_20200923-140420

24.09.2020 (no problems with push): Screenshot_20200924-195852 Screenshot_20200924-073906 Screenshot_20200924-073853 Screenshot_20200924-073822

Smartphone:

  • Device: Yotaphone 2 (YD201)
  • OS: Android 6.0.1

Additional context

  • App version and store: 1.0.7 - G-b153 (gapps)
  • Homeserver: rsprim.ru

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 20 (2 by maintainers)

Most upvoted comments

Yesterday I clear all cache of element (in his menu) - this is stop battery drain.

But today I get incoming voice call. And after that (may be) battery drain come again. I get incoming call on Element-desktop, but element-android still screen on and was showing incoming call splash after call was ended. May be incoming call tell android-element sync every 2-3 seconds?

root@im:~# while /bin/true; do sleep 5; cat /var/log/matrix-synapse/homeserver.log|grep '@progserega:rsprim.ru'| grep 2020-09-26 |grep YD201|grep sync|cut -d ' ' -f1 | sort | uniq -c;done
   4381 2020-09-26
   4384 2020-09-26
   4387 2020-09-26
   4390 2020-09-26
   4391 2020-09-26
   4391 2020-09-26
   4394 2020-09-26
   4394 2020-09-26
   4397 2020-09-26

I open element-android and see “incoming call splash screen”. But call was ended ~1hour ago. I clear “all cache” again, start element-android, wait when first sync is complete and start monitoring server logs again, but today this not help - sync started again and again every ~3 seconds:

root@im:~# while /bin/true; do sleep 5; cat /var/log/matrix-synapse/homeserver.log|grep '@progserega:rsprim.ru'| grep 2020-09-26 |grep YD201|grep sync|cut -d ' ' -f1 | sort | uniq -c;done
   4438 2020-09-26
   4439 2020-09-26
   4440 2020-09-26
   4440 2020-09-26
   4440 2020-09-26
   4444 2020-09-26
   4446 2020-09-26
   4448 2020-09-26
   4449 2020-09-26
   4450 2020-09-26
   4451 2020-09-26
   4453 2020-09-26
   4455 2020-09-26
   4456 2020-09-26
   4458 2020-09-26
   4458 2020-09-26
   4461 2020-09-26
   4462 2020-09-26
   4465 2020-09-26
   4467 2020-09-26
   4469 2020-09-26
   4471 2020-09-26
   4473 2020-09-26
   4475 2020-09-26
   4478 2020-09-26
   4480 2020-09-26
   4481 2020-09-26
   4483 2020-09-26
   4485 2020-09-26
   4487 2020-09-26
   4488 2020-09-26
   4489 2020-09-26
   4490 2020-09-26
   4491 2020-09-26
   4491 2020-09-26
   4493 2020-09-26
   4495 2020-09-26
   4498 2020-09-26
   4501 2020-09-26
   4501 2020-09-26
   4501 2020-09-26
   4503 2020-09-26
   4504 2020-09-26
   4506 2020-09-26
   4508 2020-09-26
   4509 2020-09-26