Join now - be part of our community!

media.extractor drains battery after 39.2.A.0.442 upgrade

hrdlimar
Visitor

media.extractor drains battery after 39.2.A.0.442 upgrade

Xperia XZ after FOTA to 39.2.A.0.442 discharges battery during 8 hours to 0% even if it is not used.

A reason is media.extractor process which is running all the time in backgound. As it can be seen in adb shell:

User 29%, System 2%, IOW 0%, IRQ 0%
User 34 + Nice 325 + Sys 25 + Idle 833 + IOW 0 + IRQ 3 + SIRQ 1 = 1221

PID USER PR NI CPU% S #THR VSS RSS PCY Name
2396 mediaex 31 11 25% R 5 53852K 4364K bg media.extractor
13010 u0_a291 30 10 2% S 31 1084944K 90032K bg pl.solidexplorer2
669 system 12 -8 1% S 16 147952K 9828K fg /system/bin/surfaceflinger
10266 u0_a225 16 -4 0% S 85 2051104K 136208K bg com.cnn.mobile.android.phone
13866 shell 20 0 0% R 1 9116K 2200K fg top
13376 root 20 0 0% S 1 0K 0K fg kworker/u8:10
14457 root 20 0 0% S 1 0K 0K fg kworker/u8:12
3225 u0_a190 20 0 0% S 21 1716936K 74628K bg com.touchtype.swiftkey
389 root 20 0 0% D 1 0K 0K fg msm-core:sampli
4585 system 20 0 0% S 12 1585184K 36924K bg com.sonymobile.phoneusage
3809 root RT 0 0% S 1 0K 0K fg irq/19-408000.q
2369 root 0 -20 0% S 86 116036K 1084K fg /system/vendor/bin/thermal-engine
7 root 20 0 0% S 1 0K 0K fg rcu_preempt
3 root 20 0 0% S 1 0K 0K fg ksoftirqd/0
2845 system 18 -2 0% S 191 2612088K 275872K fg system_server

I have not figured out yet if any particular media file causes it, anyway this is new behavior, definitely this is a degrade compare to previos FW.

13 REPLIES 13
Christofer
Champion

Hi @hrdlimar,

I'm sorry to hear this.

If you still experience this after a reboot of your device, would it be possible for you to take a bug report?

To do this:

1. Go to Settings > About phone > Build number, tap 7 times on the build number.
2. Go back and select Developer options then turn on "USB debugging".
3. Select Logger buffer size and change it to "4 M"
4. Restart your phone, then wait until the battery is down to around 20%.
5. Go back to Settings > Developer options, select "Take bug report" and then select "Interactive bug report".

When the report is ready you will receive a notification. Tap the notification to share it. I suggest you upload it to Google Drive and then choose to share a public link to the upload and include the link in the PM.

hrdlimar
Visitor

Hi @Christofer, 

I've sent the bug report in the PM, did you get it? I have no feedback. 

With best regards @hrdlimar

Christofer
Champion

@hrdlimar Apologies for my late reply. If I understood your PM correctly you found that the drain was caused by a specific file on your SD card and after removing it battery performance returned to normal? 

LebDiabolic
Visitor

Hello

I have the same exact problem. But I cant find what is causing this. It happened after the update. and now my phone in idle cant stand half a day!C-u8I1IWAAAeJ8v.jpg large.jpg

Christofer
Champion

Hi @LebDiabolic, sorry to hear that.

hrdlimar found that this was caused by a corrupt file on the SD card. If you use an SD card in your device, could you try removing it and see if battery performance improves if you use the device with out the SD card?

LebDiabolic
Visitor

I have a Dual Sim phone. But I use both slots for two separate SIM.

no SD card in mine. is it specific to a media (video) file maybe?

Christofer
Champion

@LebDiabolic Did you add any new media file(s) just before or after the update? If so then I'd recommend that you try to remove the file(s) from the device. I'd also recommend that you try your device in safe mode and see if there's an improvement.

LebDiabolic
Visitor

Hello

I tried in safe mode. It works back to normal. I restarted in normal mode and now it functions correctly.

Battery drain stopped:  now it shows after a day use:

Screen: 22%

Idle: 14%

Cell standby 9%

Android System 8%

Android OS 6%

....

I suspect a media file downloaded over netflix or a torrent app that created a "media extraction" process to stay on. Draining the battery.

Other people may other type of files stuck in a loop process

Christofer
Champion

@LebDiabolic I'm glad to hear that, thanks for letting me know!