[BUG] about the USB / SD card storage and Media Scan - T-Mobile Samsung Galaxy S II SGH-T989

For some times now i've been trying to single out an app that was causing the random crashes, or hot reboot
http://forum.xda-developers.com/showthread.php?t=1336896
the problem seems to cause the whole front end of the OS crash and restart itself reloading every single app as if you had rebooted the phone, but there was no reboot involved.
in the end i noticed everytime i was messing around with the mount SD cards as USB storage, and right after is when it happens the most, as well as when i swap one SD card with another SD card
everytime something related to SD card happens the annoying Media Scan will run, and because i have TONS of files, it takes a very long time to finish scanning, so if something needs access to those files, it causes the whole system to crash and reload (not reboot), and then because it crashed, it starts the media scanning process again, and if you have many widgets that request files from the SD card then well.. you get the point, it kinda goes into an endless loop
END TASKING everything sort of helps, but it's not a real solution.
can some one remind me where or which system service i can freeze or remove to kill the Media Scanner?
thanks
PS: this sort of reminds me of the old bug on SGS1 when the Media Scanner runs out of memory when your library collection is too huge for it to process

Yes the only slowdown/crash I had (just once) with this phone was while media scan was running and I was trying to access Sd card for file copy. It does run every single time you do something on SD card which is annoying.
But would it cause more problems if stopped from running?

Hi AllGamer,
Have you figured out how to stop the media scanner?

benegessrit said:
Hi AllGamer,
Have you figured out how to stop the media scanner?
Click to expand...
Click to collapse
i have a good idea how, but i need time to dig out that information from the old i9000 section, and i'm very short in time with all the soap opera going on

The below is long winded, but I believe in giving as much detail as possible, as well as it's still an ongoing process for me where I believe I've resolved the problem, yet I keep forcing it accidentally and not yet exactly pinned down my issue entirely.
I just got this phone, set it up, and was running into a similar issue where media scanning would initiate and continually initiate over and over while reloading dash and not loading all widgets. My actions the other night prior to this happening were making a backup in clockwork mod, installing setcpu, setting up setcpu, copying media files from old SD card from previous phone into new external and internal SD cardm then restarting the following morning after waking up. This baffeled me, and through google searching I came upon your threads, I saw ICE Music 4.0x or IM+ apps where your issues, however I have neither app.
Traced my steps back thinking what I did before sleeping and after backing up. I started deleting media files (pictures, movies, music) off the SD cards. After rebooting, this did not resolve my issue. I then rememebered I did SetCPU. I was able to successfully uninstall the app from my phone by dragging it to the trashcan before media scanning restarted. I rebooted, however, this still did not resolve my issue. I restored my backup prior to all this since my issue was unresolved through these means, and media scanning was fine. I've not been using SetCPU the past day and everything is fine.
My analysis is that using SetCPU is fine, I was using it the other night after backup, but prior to rebooting phone, however if SetCPU is set to run on boot, then Media scanning goes all fubar. Even if you uninstall SetCPU app through the android menus or dumping to the trashcan, something still seems resident in the booting process or initially something is modified that does not become unmodified. I've yet to try manually loading and running SetCPU each instance after bootup without having setcpu set to start on boot.
Hmm maybe I spoke too soon. Since that time, I've restored approximately 10k sms messages with SMS+ Backup app, sent a sms in handcent, backed up sms with SMS+ Backup, believe I received a sms, updated AdAway app, and started/updated AdFree app, and however I don't see it now.
Now, the adfree app gave me a menu I had no recolection of on my Nexus One, where I had two options. One option I don't rememeber, but the other "Boot Normally", I remember and chose. SetCPU is not installed at this moment, and after doing just those couple things from the 1st sentence, I rebooted. I noticed that the display at the bottom would show Adfree granted superuser permissions, and then I would get a freeze and reboot of the dash. I may have setup Adfree the night before along with SetCPU (It was late and I had been up 24hrs the previous night). I've frozen AdFree with Titanium Backup and removed it from superuser permissions, but I'm still media scanning crashing again. Unsure if the boot normally option in Adfree modified something in the booting code. I'm going to try restoring with Clockwork Mod again, then do my sms restore, and see if that narrows the issue down. If it appears finem then I'm assuming it has something to do with apps that modify boot coding like SetCPU or AdFree, if they actually modify it that is. I'm not good at coding. I'm at work, unable to do much playing around, however, I hope some of this is of assistance with resolving this issue.
Got a chance to test it. My issue with media scanning appears to be too many sms messages saved. after restoring about 10k in sms's, it just media scan loops.

Related

Touch Pro 2 gets stuck

Since I have installed the latest official ROM every now and then my TP2 gets stuck. It keeps on displaying the screen that was on it when it got stuck (sometimes it is black, because I wasn't using the device when it got stuck). The only thing left is to pull out the battery.
What could be the cause? Are more people experiencing this issue?
I have the latest version of the Dutch HTC ROM and no other programms installed.
Same phenomenon on my stock machine (no tweaks, no fancy ROM) that gets stuck every now and then...
Maybe too much files in the '/windows' directory ?
Interestingly enough, I am having the same issue with this. I had a problem with disappearing text messages in the past and HTC urged me to downgrade to the previous ROM version, which resulted in a non-functional GPS unit for me.
I recently discovered there was a patch for the SMS problem, upgraded and applied the patch. I discovered that the phone will grind to a halt when you have a large amount of text messages in your inbox. Removing most of the messages will speed up the phone, but will not really solve the issues with the hang up.
I'll try to have less sms messages and see if that works.
Or go into the sms settings and save them to the sd card.... If you do a hard reset though you might not be able to access them...
It's probably your SD card causing the problems, especially if it's HTC Sense that's causing your phone to get 'stuck'.
On custom ROMs we advise people to delete the Application Data directory on the SD card. Old files from a previous ROM seem to mess up Sense on the new ROM.
If that doesn't work, try removing the SD card completely. If the trouble is the SD card, you could also move the files off the card, reformat the card, and then replace the files.
My TP2 locks up as described in this thread after the ROM flash. About 3weeks ago, I disabled the tabs "Weather", and "Twitter" in HTC Sense and the problem seem to have disappeared. Then yesterday I re-enabled the Twitter tab and the phone locked up last night when it was in standby. No response when pressing power button or anything. Had to soft-reset to bring it back to life.
I have already disabled Twitter. Still sometimes the issue
Perhaps it is still some files on the SD card which are causing problems.
I had been having this problem for weeks as well, I emptied all my old texts and it is working fine now....

[Q] Charging Reverts HTC Sense playlists

I have had an issue that has been driving me insane for weeks - and seems to have been getting worse. Initially occasionally, but then with increasing regularity all changes I made to my device would be lost when I rebooted - or sometimes during general usage.
So any changes to playlists, newly installed apps, adding album art, changes to Sense settings, would be lost after a while.
I have made increasing use of Titanium Backup as a result to avoid losing everything. I've flashed numerous new ROMs, including doing full wipes, but the problem has always returned.
I knew it wasn't an SD problem because I have tried 3 different cards as well.
Today I installed 'busybox' from within Titanium Backup and miraculously EVERYTHING came back. This was most obvious as I had flashed the latest Virtuous Rom with full wipe, but then periodically it was losing ALL my apps which I had reinstalled.
So, I THINK I have found a solution, but does anyone know WHY I have this problem and why installing busybox solves it? And is there a way to autoinstall it every time I boot?
I have now done more testing and I think I have found the problem and a work around - but not really a solution. I would love someone with a better understanding of the device (or more likely HTC Sense) to give me a true solution.
Just to reiterate my problem, I have - over many months now - had a problem with HTC Sense playlists deleting or reverting after I had made changes. This was across different Micro SD cards, different ROMs, and even different phones (I occasionally had the problem with my Touch Pro 2 on Energy ROM, but MUCH more regularly on the Desire Z).
The only consistent things are using HTC Sense, and the volume of music on my device. I have approx 14gb of music on the MicroSD card, and a number of playlists to manage the volume.
I have searched endlessly, and I'm amazed that no-one else seems to have had the same problem, but I can only assume no-one else has the same volume of music on their phone (and uses HTC Sense to play it).
The problem seemed intermittent and it was only after many months of trying different ROMs, different MicroSD cards, different music, different SuperUser settings, multiple wipes and resets, different playlist editors etc., that I eventually started a diary of EVERYTHING I did to the phone and when the playlists reverted.
To explain, the problem was that I would edit a playlist (or create a new one or delete etc.), and after an unspecified period of time it would revert back to how it was before the edit. It wouldn't matter whether I had edited all 3500+ songs or just 1, it would go back to how it was previously. But occasionally the changes WOULD stick, so the next time it would revert to a different previous setting etc. This would also occasionally play havoc with the album art (but use of Cover Art Downloader fixed that).
Ultimately I am now fairly confident (without months of further testing) that the playlists revert whenever I put the phone on charge whilst still turned on (not when battery removed to charge etc.) - either on a charger or via USB from the PC.
The only time the playlists 'stick' is when I stop Sense running, then unmount and remount the SD card - any changes I make immediately after that will stay.
This is a real pain whenever I want to change a playlist (although not as much of a pain as having to restore from backup or remake the changes every time I charge the phone!!).
Anyone know why this might be happening, or a proper fix? Anyone know what process I am resetting by stopping sense and unmounting? (BTW: A reboot does NOT work to achieve the same result).
Any help appreciated!!
HTC Sense Playlists Revert After Editing
I am having the same problem on my HTC Aria running Android 2.2 (Liberated Aria 2.2.2 ROM). Help Please!!!
HTC Sense Playlists Revert After Editing (Work-around)
I found a temporary fix. Creating playlists on the device itself protects them from reverting.
wantedkic said:
I found a temporary fix. Creating playlists on the device itself protects them from reverting.
Click to expand...
Click to collapse
How do you determine where it stores the playlists?
I would recommend using Google music or Doubletwist instead. Also, don't use sense if you have the choice.
My opinion!

[Q] replacement battery problems (not related to quick draining)

hey,
so my girlfriend has a droid incredible, not rooted, and many times when she switches to her bak up battery AND BACK, her apps delete. many times she has to re-download her apps and they're not even listed under her apps in the market. she turns off the phone before ripping the battery out and changing it, but she still has the issue. the battery is supposedly OEM, and purchased off eBay. its black considering its an evo battery and it reads HTC innovation on the battery. in any case, as i mentioned before, it happens when she switches back to her regular battery as well. in addition the widgets read "problem loading gadget". (obviously because the app has deleted)
anyone have any solutions to solving this or why this might e happening. to my understanding these batteries should yield no problems. also, this is not the first time this has happened it has happened alot. perhaps if there is no direct solution, maybe i can find an app to make sure none of my apps get deleted during the transfer process? let me know,
thanks
if anyone can help i also have minor issue on my dinc with the generic batteries i ordered from ebay that when i plug it in, the battery has an exclamation point. anyway to get rid of this? its not too annoying because i use mini info widget anyway, but id rather have it solved.
thanks again
m
If they're on the SD card it'll often take a few minutes for it to load up.
The problem looks like it's from the SD card, maybe it's having some issues or maybe she's accidentally knocking it out of place when she switches batteries.
POQbum said:
If they're on the SD card it'll often take a few minutes for it to load up.
The problem looks like it's from the SD card, maybe it's having some issues or maybe she's accidentally knocking it out of place when she switches batteries.
Click to expand...
Click to collapse
the problem seems to be deeper than that. shes definitely not knocking out the sd card cuz its always stable. besides this is a problem for every app thats not stock. she doesnt have ALL apps2sd anyway.
if it helps.. some apps stay some apps go, but for the ones that stay, they force close. ie. hopstop wasnt deleted but FC. in addition she would re download twitter and that would FC. to confuse you even more shazam was not deleted or reinstalled but still works (all data was deleted tho)
Sounds weird. I know this is a long shot that you will actually try it, but it sounds like it'd be a good idea to reinstall that phone.
It's been known that there are a couple of mallicous apps (now removed from the market) but it's *possible* she may have downloaded one of them and that is causing a lot of the issues. It may just be some weird data corruption in important system files, it's hard to tell with just what you're telling me but as long as she doesn't mind it- reinstalling with a fresh ROM and kernel would be a good start and likely will fix the problem.
Apps can still be backed up via titanium backup, and there's apps for backing up messages and you can sync contacts to either verizon or your google account.
Just a thought.

Unplayable media files

I'm having a sporadic but frequent problem with my Epic, wherein media files (on the SD card) suddenly become unplayable. Specifically, podcasts in Dogg Catcher, and audio books in MortPlayer, Ambling Book Player, and Audible will suddenly stop working and the app will report some sort of error such as "media file not playable" or some such.
This happens approximately once per day at unpredictable times, and my original response was to reboot the phone, which did fix the problem temporarily. Now I've discovered that unmounting the SD card, then remounting it and allowing the Android media scanner to complete will also temporarily fix the problem. In either case, however, the problem returns within a day or two, maximum.
Has anyone else experienced this kind of problem, or have any advice on how I might go about fixing them?
(FYI, my phone is rooted and I am running Syndicate Frozen 1.1 ROM, but this problem was happening before the root procedure back when I was running stock, and persists even after moving to Syndicate.)
Thanks!
Just taking a shot in the dark here, but it sounds like the problem might be with your sd card... a possible solution might be to copy all of your data off of the card, reformat it, and then copy you data back on to the card, OR try/get a different sdcard altogether.
Again, not claiming I know what the root problem is, but the reformat is worth a try as it has seemed to help with other sd card reading issues for others.
Koadic said:
Just taking a shot in the dark here, but it sounds like the problem might be with your sd card... a possible solution might be to copy all of your data off of the card, reformat it, and then copy you data back on to the card, OR try/get a different sdcard altogether.
Again, not claiming I know what the root problem is, but the reformat is worth a try as it has seemed to help with other sd card reading issues for others.
Click to expand...
Click to collapse
Thanks, I'll backup my SD card and reformat it to see if that helps. I should know within a day or two anyway.
I'm having a similar issue where all my media files disappear and it says "no SD card detected". If i pop the card out and back in it works, but it's annoying.
FWIW this is a replacement SanDisk card (class 4), my first one was lost in a drunken phone drop at the bar.
I have this exact same issue... Never had issues when stock, but since rooting and flashing ACS101 through ACS110... Although it sounds like it's not related to this since you've had issues longer.
I've tried clearing dalvik cache, normal cache, and messing around with the DRM service, but it's still unstable and audio/video files quit working after random amounts of time.
Let me know if the SDCard fix works for you.
My wife's phone has the same problem. Completely stock, with the official FroYo update. No root or anything so far. Her phone also has an issue where it pauses for up to 30 seconds before actually dialing when a call is attempted, then often fails to actually complete the call. I think she might just have a lemon...

[Q] when restarting

I noticed a couple of things upon restart. Do you guys know what it is and why it happens?
1) when im restarting my phone, i realize a quick message appears before it boots. That says "No memory card. phone photo, image, audio, video, album and moments features disabled" (i have one), is this normal? Some times it say no valid card too (I think its referring to SIM). Is this normal? Why does it do that?
2) Also one time when I rebooted, I noticed the widgets on my homescreen was a loaded weird. The spacing and text was not showing up properly, the size of widget looked compressed (weather and news app). What can cause this?
Thanks
mikoal said:
I noticed a couple of things upon restart. Do you guys know what it is and why it happens?
1) when im restarting my phone, i realize a quick message appears before it boots. That says "No memory card. phone photo, image, audio, video, album and moments features disabled" (i have one), is this normal? Some times it say no valid card too (I think its referring to SIM). Is this normal? Why does it do that?
2) Also one time when I rebooted, I noticed the widgets on my homescreen was a loaded weird. The spacing and text was not showing up properly, the size of widget looked compressed (weather and news app). What can cause this?
Thanks
Click to expand...
Click to collapse
What ROM are you running? What Launcher? What mods have you done? We need more info if we are to help.
Stock and rooted
Downloaded goo manager
Ti bu
Andromizer
Set cpu
Rom tool box
Cpu spy
Tasker
System tuner pro
Busy box
Better battery stat
Adbd I secure
Sd maid
Triangle away
Root explorer and other file explorers
Referring to the widget loading - Is this consistent every time? Or does it seem random?
The internal memory card not loading is a hardware problem for sure or having a very slow boot where your system boots before your card is recognized (maybe messed up page/indexing). Never seen something like that. Be careful and back up your data now. If it persists take it to your carrier
@tg only happened once
@zet not sure if it makes a diff but it's during the power off seg ment that the message flashes up. Does it happen to Ursula when u restart?

Categories

Resources