[Q] Media server - Galaxy Note II Q&A, Help & Troubleshooting

When I check my battery status from "settings->battery->*press battery graph*" I notice something called "mediaserver, consuming 80% of my battery. the stats show it keeping the phone awake almost right throughout. I googled this up but couldnt find anything meaningful apart from some forums calling it an android bug.
one of the forums said it is to do with Music player (any music player not just the stock player) that continuously looks for details of tracks and gets stuck with a bad mp3 . I deleted all songs from my phone and also uninstalled "tunein radio". The media server is still not going away and keeping the device awake.
Anyone else experiencing this? If this is an android bug then this is extremely frustrating.

Related

"Who is this 'Mediaserver' and why is he sucking my battery dry?"

Just solved a really annoying battery drain issue. Figured I'd post the results...
I noticed last week that my phone was going through the battery MUCH faster than normal. A check of Settings/About Phone/battery use told me that the "Mediaserver" was using over 35% of my battery, surpassing the phone standby -- which is saying a LOT given what my T-Mo reception is like.
Now, I'm still learning, so when the description says is does something with running apps, I assume that the issue is an app I recently installed, so I remove apps I recently installed or updated. Nope.
I saw another post about a laggy G2 that seemed to also have battery issues. It recommended using Watchdog Lite to see what was happening. So, off to the Android Market.
After installing Watchdog Lite, I saw that the CPU was 0% idle with 75-95% "nice." Well, no idle = battery suckage, so off to see what tasks are using CPU. The initial check didn't show anything -- until I enabled monitoring "Phone Processes." The alerts for the "mediaserver" "linux task" showed that this process was taking every cpu cycle it could. Off to Google.
Did a search on "android mediaserver loop" and found a couple of bugzillas that essentially said that a corrupt media file (pic, movie or sound) could send mediaserverover the edge. So, I started to move *every* picture off the sd card onto my computer's HD.
Knew I was on to something when mediaserver stopped going crazy once usb storage was turned on. So, I moved all the image and movie files off and turned off usb storage. The CPU spun back to100% busy, but slowed back down to about 9o% or more idle.
Now all I have to do is find the bad file or files, and I can add it to the bugzilla.
EDIT: It seems that this has also made the cooliris gallery wake up and start updating again. So anyone seeing that the gallery isn't updating may need to see if their mediaserver linux task is unusually busy. If so, offload as many media files as possible and see whap happens...
Sent from my T-Mobile G2 using Tapatalk
Very useful post. Thanks!
I saw this sucking down battery for me as well while playing around with CM7 nightlies, but never thought too much about it. Good find!
I've noticed this issue with mediaserver too but never managed to find what's causing this.
Thanks for the tips
there might be a difference here but media server from G1 (htc dream) was the music stock music player. it might be different here but thats what it was in the G1
lil-devil said:
there might be a difference here but media server from G1 (htc dream) was the music stock music player. it might be different here but thats what it was in the G1
Click to expand...
Click to collapse
actually the stock music player is /system/app/music.apk on all vanilla android phones.
I believe that music player depend of mediaserver.
I have installed system panel and noticed a 30% cpu usage when I play some music with Cyanogen 7 RC2.
I will try with another Rom to compare the result.
I found my cause for the problem
I got really frustrated with the Galaxy S2 because of this mediaserver issue...
From wat i have researched, I found that once the 'gallery' is opened and closed,
Phone keeps using the cpu 100%.
Phone's back becomes red hot.
The battery drains rapidly in 2-3 hours.
I plug it on to a charger it doesn't charge up
the mediaserver process comes up in the 'battery usage' with 60% usage
Now, I switch off the phone. Boot it up. Charge the phone to 100%. Its all perfect and no heating up too. After 7 hours of usage, no mediaserver process in 'battery usage'.
I went into the gallery once. Browsed some photos. And Closed it.
Now it all started again. I've tried this 3 times now.
And I have no idea wats wrong with the gallery.
Do what I did and either move all the media files off the sd card or drop ". nomedia" files in strategic locations. (Don't forget to look all over the card because they could be in unexpected places.
Sent from my T-Mobile G2 using Tapatalk
could this mediaserver also be caused by lots of Pandora listening?
Mr. Turbofan said:
could this mediaserver also be caused by lots of Pandora listening?
Click to expand...
Click to collapse
It seems to be related to streaming audio also. I'm trying to figure out why since moving to GB my battery is being drained by media server when I never had this issue on Froyo. It only seems to take up the majority of the battery time when I'm listeing to Pandora over Bluetooth during the day.
Very interesting and usefull find, indeed.
Solving the problem lies in the options build.prop
must be changed:
---
media.stagefright.enable-player = true
---
to:
---
media.stagefright.enable-player = false
---
If this option is not in the file, it is necessary to add.
stopservice said:
Solving the problem lies in the options build.prop
must be changed:
---
media.stagefright.enable-player = true
---
to:
---
media.stagefright.enable-player = false
---
If this option is not in the file, it is necessary to add.
Click to expand...
Click to collapse
Don't think that is the cause. Mine is already set to false and still have the problem.
Is there a process we can freeze to stop this.
You really *don't* want to kill this process as it is the cataloger for *both* the music player and the picture gallery. Your best bet is to do something like I did to work around the issue.
Sent from my HTC Desire Z using Tapatalk
I started having the same issue (on Galaxy Note) today. Glad I found this thread in any case.
Once thing I noticed is PowerAmp plays sound files from games if you don't give it a media folder to stick to. I can only assume that it's using the media server to find these based on what someone in this thread said.
So it would seem that the .nomedia file method is definitely the best (to stop game sound files being found).
[Edit:] Oddly the behaviour stopped now. Mediaserver is no longer raping my battery. What do you think of the idea of putting .nomedia in every folder and then removing it from only folders you need (images, video and audio folders)?
You can easily do this by running:
Code:
for i in *; do cp file $i; done
from cli in Android (I think). "file" = <path to .nomedia>
No inherent reason you can't do that...
Sent from my HTC Desire Z using Tapatalk
mediaserver was not a notable issue for me untill 2 days before i installed "sprit fm".... then boom ...... mediaserver just gone mad and taking upto 65% of my battery..... now uninstalling "spirit fm" and will see what happens.
Mediaserver and Arel WARS
Hey all! Glad I found this thread. Got a Samsung Galaxy SII Skyrocket I727 from AT&T. From what I researched mediaserver is part of a standard for DLNA. I am a newb on xda so I cannot post links however search on youtube "Android DLNA MediaServer" and you can get a downlow as to what it is meant for.
Anyways mediaserver gets to be 400+ and sometimes even 500+mb according to Watchdog when playing a GAMEVIL game called Arel WARS. This is the first time I have ever had a problem with mediaserver and ONLY happens when I play Arel WARS. I reboot my phone and see mediaserver at 2.7mb. I start Arel WARS and BAM 100+mb already. After playing for about 20 minutes my phone becomes laggy and the game freezes up. I check Watchdog and it shows 400+mb being used by mediaserver. I then kill Arel WARS and mediaserver is still sucking 400+mb. I try several types of app killers but none can even see the process in order to kill it. I try an app called "reboot" that is supposed to simulate a reboot by killing apps and processes but mediaserver is still sucking the life out of my phone. Bottom line the only way I can kill mediaserver is by rebooting the phone and then its back to 2.7mb and it stays that way ONLY until I start playing Arel WARS. I can launch gallery all day long and media player and mediaserver is good.
Just giving my two cents. I emailed Watchdog dev to see if he can help me out since Watchdog seems to be the only app that can actually see mediaserver and also emailed GAMEVIL to see if they might have a memory leak problem somewhere. I will update when I get word from either.
UPDATE:
I recorded my phones screen to show you mediaserver and it sucking the life out of my phone. There is no way to kill it to my knowledge and the more I play Arel Wars the more it consumes precious ram. Copy this link into your browser to download the video. Its about 10 minutes long and about 18mb.
dl.dropbox.com/u/6778642/Android/Mediaserver_ArelWars.mp4.
You should be able to play it in your browser.
BTW I am still waiting on either GAMEVIL or the dev of Watchdog to hit me up with an email so I'll update if and when I get word.

Media Server draining battery? (MIUI)

Not sure what the process "media server" is, but it's draining the hell out of my battery occasionally. I'm taking a wild guess and saying that it may be the new google music beta? But it's only occasionally so I don't wanna uninstall since I just got invited to try the cloud music.
Anyone with MIUI notice runaway media server and found a culprit?
There's something keeping your media scanner running non-stop.
If you use MultiPicture Live Wallpaper, turn off the option to scan for new images. That left mine running constantly, but I did not notice a difference in battery and the power consumption was not very high.
(from... Evo/MIUI/Tapatalk)
Interesting. I can't quite place what the hell is making it go nuts, and it's only occasionally and I can't seem to trigger it on purpose. Perhaps some sort of album artwork scan? I'm not using any live wallpaper either.
Think I've found the solution (that worked for me anyway)
I encountered this on another ROM and tried MIUI-XJ for the first time last night...
It's the "media" (music/video) player trying to download lyrics/cover art for your songs (as I just flashed this ROM last night, I assume this is a one off "task")
Go into the options and turn this off.. I found withins minutes, the phone wasn't HOT anymore, Battery usage dropped from ~60% to about 13% and is still going down...
See how you go...
shayne77 said:
Think I've found the solution (that worked for me anyway)
I encountered this on another ROM and tried MIUI-XJ for the first time last night...
It's the "media" (music/video) player trying to download lyrics/cover art for your songs (as I just flashed this ROM last night, I assume this is a one off "task")
Go into the options and turn this off.. I found withins minutes, the phone wasn't HOT anymore, Battery usage dropped from ~60% to about 13% and is still going down...
See how you go...
Click to expand...
Click to collapse
I'm actually having this issue with my phone...which media player are you using? Currently I'm using doubletwist, and the option to download album covers is only available in the upgraded version, and the stock media player with CM7 (latest RC) doesn't have that option it seems. Any other places in the settings that I can find these options? Thanks

[Q] Mediaserver keeping the phone awake?

Today I was confronted with some battery stats I was dissapointed in so I decided to look if I could find out what might have caused it.
I noticed within that media server had kept my phone awake for almost 2 hrs (with the famous AudioOut_1 wakelock) although I have all system sounds (exept off course the ringtones and notifications) disabeled, did not listen to music, played my games without music and sounds...
Anybody have an idea what could have caused the mediaserver to wake up and keep my phone awake?
Is it possible that a game/app might keep it awake even if sounds are off and how could I find out which app?

Q: Mediaserver - consuming battery?

When I look at the battery usage, I can see Mediaserver is below screen in terms of battery usage.
Any idea what it is?
Sent from my HTC One X using xda premium
Same here man
Sent from my HTC One X using xda premium
I recall it has something to do with corrupted media file (picture, music file etc) or failing to play streamed video. Reboot your phone and DO NOT start gallery, camera or anything that reads media files from phone. Use the phone and report back.
EDIT: I also recall this is an android issue, not spesifically HOX issue..
I did not have that on Galaxy Nexus, now it's there on One X, despite using it in the same manner, same apps. Hopefully it's simply some software bug.
I'll try restarting later today...
It seems to start on my HOX when I plug it into my monitor through the HDMI.
Unfortunately, even with the power adapter plugged into the HDMI adapter, it still uses more power than it can get through charging, which is really rather annoying and makes it pretty pointless in having HDMI out. How can they have designed it this way?
mediaserver system wakelock
Hi, i am having a nightmare with the system (*wakelock*) mediaserver process. Everytime i start listening to music either through stock music player, poweramp, winamp or realplayer, I can see it burning my battery.
I am using Badass battery monitor app. I tried soft resets multiple times but the problem appears again everytime i play music. It is using far more battery % than the music app itself.
I have deleted all music and pictures on my phone, leaving only the ones that came with phone, but the problem still crops up when i play the music.
On my first day of use I managed to get good battery hours.
i980.photobucket.com/albums/ae289/golo83/mob/bad7989c.jpg
then went downhill with mediaserver...
i980.photobucket.com/albums/ae289/golo83/mob/a02203a2.jpg
any ideas?
bump. anyone?
today i got
18.4% system (*wakelock*) -- it had CPU usage 1h 23m, keep awake 1h 35m, number of wakelocks 31
6.2% Music.
40% screen.
I've been having the same problem on my Galaxy Nexus. It has been very frustrating because my battery will last only about 4/5 hours with light - moderate usage. For the life of me I cannot figure out what is causing this wakelock all of a sudden. My phone was completely fine on 4.03
Hello,
I have the same problem. I have just charged my phone. And one hour later the Mediaserver has used 3% of the battery.
I have make one "normal" phone calls, sent 3 text messages and send 2 messages with Viber.
I haven't actively used "anything" (as far as I know) that uses a mediaserver?!

G3 Battery Drain Media Server Tim Music

Hi everyone,
i have a battery drain problem caused by Media Server, that uses a consistent amount of my battery.
This problem only happens if I use the app TimMusic: a proprietary music streaming service of my carrier Tim (Italy), works basically like Spotify but it doesn't consume data.
If I don't use that app during the day the media server is not even visible in the battery tab in the phone's settings.
I am rooted and have installed Wakelock detector to prove this and the suspect process is not TimMusic itself but process "1013" with details "Nuplayer x1" that lasts as the Media Server time in battery section in settings (from when i start TimMusic to when I remove physically the battery) and "AudioOffload xY) with J the total number of seconds TimMusic has been playing music.
Basically when I close TimMusic the Media Server keeps searching for something until i re-insert the battery physically.
I tried to install Greenify to ibernate TimMusic and some other apps, but I'm doens't really work: MediaServer/ process keeps working.
How can I solve this? I don't want to keep re-inserting my battery physically everytime I use this app (basically everyday).
Thanks in advance.
derkanadier said:
Hi everyone,
i have a battery drain problem caused by Media Server, that uses a consistent amount of my battery.
This problem only happens if I use the app TimMusic: a proprietary music streaming service of my carrier Tim (Italy), works basically like Spotify but it doesn't consume data.
If I don't use that app during the day the media server is not even visible in the battery tab in the phone's settings.
I am rooted and have installed Wakelock detector to prove this and the suspect process is not TimMusic itself but process "1013" with details "Nuplayer x1" that lasts as the Media Server time in battery section in settings (from when i start TimMusic to when I remove physically the battery) and "AudioOffload xY) with J the total number of seconds TimMusic has been playing music.
Basically when I close TimMusic the Media Server keeps searching for something until i re-insert the battery physically.
I tried to install Greenify to ibernate TimMusic and some other apps, but I'm doens't really work: MediaServer/ process keeps working.
How can I solve this? I don't want to keep re-inserting my battery physically everytime I use this app (basically everyday).
Thanks in advance.
Click to expand...
Click to collapse
I'm also on Telecom italia! Hello friend! You could try to create a .nomedia file if you can find where it is scanning. See what you can do, find where it is scanning and then look into the .nomedia file. There will be alot on google about it I'm sure.
You have someting corrupted to your phone thats run unstoppable this wakelock and scan all the time. Search for pictures, videos, mp3 ,dat, files to the phone storage and to the sd card to find the corruped files and delete it.

Categories

Resources