[A] Media Scanner frozen at 0% - Vibrant Q&A, Help & Troubleshooting

Samsung SGHT-959, stock Froyo.ka6 rooted.
A funny thing happened to me while adding some D64 images to play with Frodo C64 on my vibrant.
Media Scanner started and where it used to take just under 60 seconds was now taking close to 10 minutes to complete! WTF?!?!
Ok fine, I deleted the 4 files I added, same thing, Media Scanner frozen at 0% for 10 minutes. I have a total of 30 media files on my SD card combined ( I use Ipod touch for music & vids) so there was no reason for the scanning to exponentially increase in scanning time when all I did was add 4 non-media files. Rebooted, no change. Deleted all data from DCIM/.thumbnails from internal phone memory & SD, no change. Others recommended factory reset but then I have to re-install all apps - what a drag!!
I searched here & Google and noticed that the Media Storage service is responsible scanning - I went into application manager, running applications and noticed that Media Storage data was at 95+MB and rising! I don't even have 95MB worth of media on this phone! I force closed which STOPPPED media scanning (yay!!!) and cleared the data. I rebooted. The media scanning took about 30 seconds total!! I went to Media Storage and the data is now at 212KB which sounds about right considering what I have on this phone.
I have read that ringtones disappeared then later re-appeared, didn't happen to me, my guess is the noobs didn't wait for media scanner to reach 100%. Yes, I did have to go and reset contact ringtones (I didn't have that many) and I have read that you will lose playlists. Since many of you are running hacked roms I imagine you are also using a different media player as well so this shouldn't be a problem.
There are workarounds such as running Media Scanner on demand, probably a good solution for those of you with tons of media that use stock music player and playlists:
http://forum.xda-developers.com/showthread.php?t=753294
This is obviously a bug in the Media Storage service and something to be aware of..Anyone know if this is fixed in Android 3.x?

You can also go into recovery and format the sd card there or in adb

According to what I read in various threads here in XDA that doesn't help. I have read that it's normal for media scanner to take a long time if you have thousands of media files on your SD so that didn't apply to me.
Somehow Media Storage service doesn't properly flush out it's internal data cache causing to increase in both size as well as time needed to scan. I flushed it out manually and that solved the problem. Media Storage is an indexing service for all media on your phone so either the service locks up under certain conditions or the database doesn't purge properly. This affects all versions of froyo.
Besides I don't need to go into ADB or recovery to format the card, I can do it right from the settings.

Related

Samsung Music Player Duplicates

So I have been having duplicate song issues. It seemed to happen when I moved around my files. My music player list will show like 2 or 3 albums, but only one will play. The other one or two entire albums will give an error saying 'This file does not exist.' I see that 'Media scanner running' info on the status bar but it never fixes this issue. Anyone else have this problem or a fix?
If it matters this has happened both on internal and external memory.
Thanks.
Nope, never had this problem. Try to remove all music files and see if the player shows anything. If not, then add the ones that were showing duplicates and see if it happens again.
I am having the same issue but i normally use double twist
Delete your cache in Settings, Applications, Manage Applications, Music.
Also, delete the /sdcard/albumthumbs folder.
Reboot and it should rebuild your song list.
I had tried deleting cache before but didn't see it. I didn't realize there were multiple sorting options on this phone, whoops. The 'delete cache' was dark and would not let me click it, but I tried deleting data and the albumthumbs but it still didn't work. I am just going to try erasing it all and re-adding the music and not moving it around again... Thanks for the help though!
Did you find your fix? I had to leave everything out of a folder on the sdcard to stop this annoyance.
I hope this helps
If you are rooted I would recomend purchasing the full version of the app "SD Maid" from the market.
I had an issue from doubletwist that was resulting in duplicate music files.
I'm pretty sure that the reason it happens is; when we are syncing music (possibly alot at once) most programs recognize the 16g internal storage as possibly a indipendent device. This could be because of the potential to swap out your sd card to share music but on second though probably not.
its probably just a random error.
If you are unrooted or otherwise unable to use sd maid (id recomend rooting and flashing a custom rom but if thats not what you want to do then get the free astro file manager from the market and you should see in your home directory a file called music or it could within another file titled media. Regardless where you want it to be is on your external sd card.
you can delete the directory titled music but first check the file titled external media.
You should see all of your music there as well.
I have played with the settings on doubletwist as well as spotify and this is the best solution.
(If you use sd maid then go into duplicates and very very very patiently select all of the boxes it lets you and then just hit the delete duplicates up top)

♚ Media storage issue ♚

I'm running AOKP JB Build 5, and Dagr8's Kernel.
The rom is awesome, but something is wrong with my Media Storage, ever since I ran this rom.
I am suddenly experiencing duplicates of music files, and pictures, all stored on my SD card.
I clear data on Media Storage and reboot. I then have to wait an extremely long time before my SD card finally reads, then back to normal...
But then this re-occurs!
I can't figure out why or how to permanently fix it..
Help?
Sent from my Fish Tank ₪
I have seen users with this issue, when I had double [or ghost/double files] for my pic's [no music I use pandy] it was from restore quickpic from tibu, so I just reinstalled from the Market fresh quickpic app, it fixed that, but I have to from time to time backup my storage and just do a complete format, then put my files back on, I did upgrade to a better quality ext SD and did a fresh format of that and copied my files back on, no issues since then...
A side note, I had these issues going from ICS to Jbean, but since I did the above no issues on this, just my experience.
While I can't confirm this, I do suspect that the issue is caused by duplicate media storage events occurring within the rom.
This can be accomplished a number of ways, but I also suspect that it's an APK compatibility issue.
And depending on the roms used, will manifest itself when more than 1 app stores data, while the second APK will duplicate the data save function.
Check the rom carefully for more than 1 app performing the same function, such as a camera app or music app.
These APK's often have an auto save/restore feature, but save the files under a different file name and basically duplicate the save in 2 places.
Also, apps that auto backup will often save duplicate copies in different locations, by mistake, as they are not always compatible with every build.
Again, it's really a trial and error situation, as so many variables exist, and many apps share duplicated function without registration of a force close event.
I hope in some small way this may help you find the rogue apps.....g

[Q] [Tasker] Questions about tinkering with the media scanner

I'd really like to completely disable automatic media scanning on my GS3 and run it on a schedule via Tasker.
1) Is it possible to disable it completely? I tried Rescan Media Root from the Play Store and that prevents it from running at boot, but it still runs every time I modify a file on the ext sd card. Not to mention it seems to cause some other strange behavior (every time a scan was triggered the TouchWiz file explorer opened and asked for root).
2) Is anyone using the Scan Card action in Tasker? I tried running this and pointing it to the ext sd card, but nothing happens.

Mediascannerservice trouble

Running CM10.1. I've read all the different threads about this, and tried everything. I've tried SD maid to clean up orphaned folders, SD tools to fix corrupt images, clearing media storage data, adding .nomedia files, removing them, wiping both SD cards, Media rescan, disabling media storage, wiping cache, fixing permissions, and haloeight's instructions. I have all my music on a 32GB external SD and use PlayerPro as my music player. If I disable media storage, PP loses all my music. Even now, every so often it will lose all my music and have to rediscover it. Mediascannerservice is killing my battery. I left my phone in my car for two hours at 100%. It was down to 47% when I got back to it. Mediascannerservice ran for nearly 90 minutes.
WTF can I do?
geicogecko said:
Running CM10.1. I've read all the different threads about this, and tried everything. I've tried SD maid to clean up orphaned folders, SD tools to fix corrupt images, clearing media storage data, adding .nomedia files, removing them, wiping both SD cards, Media rescan, disabling media storage, wiping cache, fixing permissions, and haloeight's instructions. I have all my music on a 32GB external SD and use PlayerPro as my music player. If I disable media storage, PP loses all my music. Even now, every so often it will lose all my music and have to rediscover it. Mediascannerservice is killing my battery. I left my phone in my car for two hours at 100%. It was down to 47% when I got back to it. Mediascannerservice ran for nearly 90 minutes.
WTF can I do?
Click to expand...
Click to collapse
2 Things you should do to find out if it is your hardware or software. Test your SD card.
Take your SD card out of your phone, put it in an SD adaptor or whatever you have to attach it to your computer and back up your music files on your computer. This is a simple copy/paste file copy and through this you will monitor your sd card's performance on your computer and see if it cuts off during the transfer or gets rediscovered ... and if so you would assume there is something physically wrong with your SD card, and replace it.
Meanwhile try a different external SD with some files/content on it and add it to your phone, and see if the phone still keeps looking and searching and indexing ... then try a CLEAN flash of CM10.1. (backup,format data-cache-system-NOreboot install, advance restore your data) to trouble shoot your possible OS problems.
Good luck,
It ended up being a problem with the SD card.

super annoying scared bug, PLEASE HELP

So whenever I put my sd card into my Xperia z3tc I can't open any apps apart from a few like settings and it often freezes and no buttons work, and if I boot with it in my tablet has a black screen with notification center usable and only a back button. FYI I'm using the SGP12 which is the 32gb WiFi model, no root and it only started happening since I updated to 5.0.2. PLEASE HELP
Perhaps the SD Card is bad?
I experience a similar issue (on KitKat) and it has to do with the media scanner (I have many MP3s on my SD card). Basically, before I reboot my device, I need to use a root app to delete my media library. If I do not do so, upon reboot, the phone is slow, nothing media-related works (including ringers and alert tones), and opening media-using apps or setting menus freezes the device (until I delete my media library, which gets reformulated next reboot). I tend to assume that maybe your SD card is triggering a media-rescan and that is causing your issue. Don't know if this is Android or Z3TC specific, but yes it is annoying.
thref23 said:
Perhaps the SD Card is bad?
I experience a similar issue (on KitKat) and it has to do with the media scanner (I have many MP3s on my SD card). Basically, before I reboot my device, I need to use a root app to delete my media library. If I do not do so, upon reboot, the phone is slow, nothing media-related works (including ringers and alert tones), and opening media-using apps or setting menus freezes the device (until I delete my media library, which gets reformulated next reboot). I tend to assume that maybe your SD card is triggering a media-rescan and that is causing your issue. Don't know if this is Android or Z3TC specific, but yes it is annoying.
Click to expand...
Click to collapse
The sd card should be fine it's a SanDisk and it only has a few pics on, this happened immediately after I updated to lollipop and then stopped and now it's happening again.
AryG15 said:
The sd card should be fine it's a SanDisk and it only has a few pics on, this happened immediately after I updated to lollipop and then stopped and now it's happening again.
Click to expand...
Click to collapse
Images are still media. Try using the SD card without any images saved to it. Or try deleting your media library - to rule this out if nothing else. I use an app called Music Database Repair to delete my media library (although other features of the app don't seem to work).

Categories

Resources