Substantial battery drain while idle

Issue description:

I’ve noticed a huge increase in battery drain on my phone after installing Symfonium, even while the app is completely idle (already synced, no downloads pending, not connected to cast, not currently playing music).

Just submitted debug logs over a period of ~45 min over which my phone drained ~6% battery – not playing music, no other background apps out of the usual running, and the screen was off for 99% of that time. I’d normally expect a 1-3% battery drain in that time (my battery life used to be over a full day, with other music apps, now it’s about ~6 hours).

Logs:

Upload description: Entle

Additional information:

 

 

Reproduction steps:

 

 

Media provider:

Plex

Screenshots:

     

Well the app does absolutely nothing in the logs.

Just a quick check for running downloads when the wifi disconnected as expected.

2024-07-19 18:09:28.284 Verbose/StateManager: New state (true): false-true-false 
2024-07-19 18:10:20.847 Verbose/PlexLogger: --> [199] GET https://50-46-224-59.8a6b1392e7694d7faf9ba82498b2cc86.plex.direct:17456/identity
2024-07-19 18:10:21.136 Verbose/PlexLogger: <-- [199] 200 OK https://50-46-224-59.8a6b1392e7694d7faf9ba82498b2cc86.plex.direct:17456/identity (291ms, unknown-length body)
2024-07-19 18:10:21.138 Verbose/PlexLogger: <-- [199] {"MediaContainer":{"size":0,"claimed":true,"machineIdentifier":"794ff96a93bc98a87f4a608d8e56080714191ed4","version":"1.40.3.8555-fef15d30c"}}
2024-07-19 18:12:50.038 Verbose/PlaybackController: Network state change (true, false - true/false)
2024-07-19 18:12:50.101 Verbose/DownloadManager: Auto pause as not wifi connected
2024-07-19 18:12:50.124 Verbose/QueryBuilder: Query: UPDATE download_items SET status=1 WHERE status=0 ('') [0 in 0.12ms (RAW)]
2024-07-19 18:12:50.140 Verbose/MediaProviderManager: Wifi connection status changed: false
2024-07-19 18:12:50.162 Verbose/QueryBuilder: Query: SELECT sync_medias._id,sync_medias.date,sync_medias.from_device,sync_medias.provider_id,sync_medias.media_id,sync_medias.external_id,sync_medias.media_type,sync_medias.play_count,sync_medias.resume_point,sync_medias.title,sync_medias.file,sync_medias.last_played,sync_medias.is_favourite,sync_medias.user_rating FROM sync_medias WHERE (sync_medias.from_device=?) ('1') [0 in 0.22ms]
2024-07-19 18:12:50.163 Verbose/MediaUpdateManager: Updating play count queued media
2024-07-19 18:12:50.163 Verbose/MediaUpdateManager: Nothing to update
2024-07-19 18:12:50.164 Verbose/QueryBuilder: Query: SELECT sync_medias._id,sync_medias.date,sync_medias.from_device,sync_medias.provider_id,sync_medias.media_id,sync_medias.external_id,sync_medias.media_type,sync_medias.play_count,sync_medias.resume_point,sync_medias.title,sync_medias.file,sync_medias.last_played,sync_medias.is_favourite,sync_medias.user_rating FROM sync_medias WHERE (sync_medias.from_device=?) ('2') [0 in 0.38ms]
2024-07-19 18:12:50.165 Verbose/MediaUpdateManager: Updating favourite queued media
2024-07-19 18:12:50.165 Verbose/MediaUpdateManager: Nothing to update
2024-07-19 18:12:50.166 Verbose/QueryBuilder: Query: SELECT sync_medias._id,sync_medias.date,sync_medias.from_device,sync_medias.provider_id,sync_medias.media_id,sync_medias.external_id,sync_medias.media_type,sync_medias.play_count,sync_medias.resume_point,sync_medias.title,sync_medias.file,sync_medias.last_played,sync_medias.is_favourite,sync_medias.user_rating FROM sync_medias WHERE (sync_medias.from_device=?) ('3') [0 in 0.14ms]
2024-07-19 18:12:50.166 Verbose/MediaUpdateManager: Updating user rating queued media
2024-07-19 18:12:50.167 Verbose/MediaUpdateManager: Nothing to update
2024-07-19 18:12:50.170 Verbose/Plex: Wifi only and not connected, skip locate
2024-07-19 18:44:59.295 Verbose/StartActivity: Intent: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10600000 cmp=app.symfonik.music.player/app.symfonik.ui.MainActivity.Note bnds=[462,1201][618,1427] } null

Are you sure the app did use battery during that time ?
I wonder if it’s something external that connects to Symfonium media session / media browser and is seen as Symfonium using battery.

I’d need a full bug report Capture and read bug reports  |  Android Studio  |  Android Developers to see what the phone actually do.

Ok – I’m currently traveling and so trying very hard not to waste extra battery/effort trying to repro or track this, but I’ll try and get a full bug report for you soon™.

I have two bug reports – one where the phone lost ~80% battery in ~6 hours while listening to music on an airplane (symfonium debug was off in a vain effort to try to keep the phone alive until I landed), and another with ~60% battery drain in ~8 hours with general usage and a small amount of music playing (symfonium debug on).

However, it doesn’t seem like this forum will let me upload it – how should/can I submit them?


You can use https://upload.symfonium.app

Uploaded (sorry, the reply didn’t ping me for some reason, so noticed a bit slowly)

Can’t analyse those while in holidays, so will check later when a couple of days at home.

Are you sure you are not connected to a Cast device ? (You need to press the cast button and select local device and not just stop playback).

And can you try to disable anonymous analytics and crash report in settings then force kill just to see?

It’s not reproducing nearly as severely now, and it’s been a while, so I’m not sure.

That being said, I’ve had issues with being perpetually connected to Cast devices in the past, so I’m reasonably good at noticing that now. Also, I was on an airplane and in a temporary location for most of the time covered in those bug reports, so it seems highly unlikely unless there’s a bug in Cast controls where they can stay “connected” despite being nowhere nearby.

If so, that could be an interesting thing for me to report to them!

I’ll keep an eye out and see if I can get a repro bug report with more info.