question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
progseregacommented, Sep 26, 2020

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
0reactions
progseregacommented, Jan 28, 2021

I close this bug as party fixed: after voip call battery drain stops - it nice.

But periodicaly strange many syncs still occure. About this bug I create new issue: #2733

Read more comments on GitHub >

github_iconTop Results From Across the Web

many sync - big battery drain · Issue #2733 · vector-im/element ...
Android Element use many sync calls at every day and it is in top of battery usage. Element do many sync periodicaly -...
Read more >
What's Draining Your Android Battery? - Techlicious
A sign that your battery could do with some discharge/recharge time is if the battery says it's extremely low – say, 2% -...
Read more >
Why is my phone's battery draining so fast? - Android Authority
You shave a second or two off of your phone's maximum battery capacity every time you charge it.
Read more >
iOS 16 Battery Drain - Apple Support Communities
Is it normal to experience battery drain after a big update? ... It basically says that your phone is probably indexing a bunch...
Read more >
Why your Android battery is draining fast and how to fix it
Not sure why your phone battery is dying so quickly? Learn what's causing battery drain and how to stop it on your Android...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found