Severe system lag with CM - myTouch 3G, Magic Android Development

Hi,
I could do with some help relating to severe lagging with Cyanogenmod.
I've been a (very) happy Cyanogenmod user for a few months now on a rooted HTC Magic. Some time during December I upgraded to CM 4.2.10.1 (the one with the ext2 bug). This severely slowed down my phone, so I jumped onto xda-dev to see what was up. After reading about the ext2 bug, I decided it was time to partition my SD card, so I created a linux-swap, a ext2 and a FAT partition, then upgraded the ext2 to ext3. Next time I turned on the phone, apps2sd kicked in in the background and I was again a happy CM user.
The next day I was trying to move a file onto my phone from someone else's SD card, so I popped out my own one with the phone on - unaware that I REALLY shouldn't do this. Shortly afterwards, my non-standard apps all started disappearing and the phone started to play up. Realising that apps2sd had moved everything to the SD card I put mine back in and restarted the phone. Unfortunately it seems I'd already corrupted permissions for the apps, so after backing everything up I decided to wipe the phone and reformat the SD card with only a linux-swap and FAT partition so I didn't have this issue again.
After the wipe everything seemed to work very well for a while after reinstalling all my apps, however after a few days things started to slow down again. It's now been 2-3 weeks and even with all the CM updates the phone still lags most of the time although the speed varies. Restarting the phone sometimes helps for a short time, but I often get 'System: Force Close/Wait' screens just after turn on. Flashing new versions of CM does speed things up more after reboot but the performance quickly degrades again.
I could try another wipe, however seeing as the problem came back after trying last time I thought I'd ask for some advice with my problem as I don't want to reinstall everything only to be back to where I am now.
Any advice is greatly appreciated!
Thanks,
Paul

Food for thought : ive tried using cyanogen since ive got my magic, and it was always like this (Tried .12.2 and .13). And i've never even tried using app2sd. I asked the gang down in irc, they told me to get some bacon :/
OR you could have a damaged sdcard, badsectors and all. Try not using apps2sd for a while.

Related

Fuze lags 1-2 minutes between commands ( on multiple roms)

My phone froze last night while i was sleeping.....so i attempted:
1.hard resetting the phone. It booted up again and became extremely slow in initial setup (taking about one to two minutes between each point in the touch screen calibration.
2. I tried updating to the tael rom again from SD card: same slow responsiveness.
3. updated back between tael/nrg/geny roms; the initial rom installation moves along quickly but phone becomes slow when its done booting the img from the SD card.
Phone seems to be getting increasingly hot often and things of that nature.
anyone has suggestion....
Hmm, definitely sounds strange. Just some ideas for you to try, since nothing else is working
1.) Back up what you need to (PIM Backup, Contacts to SIM, Media and Files to SD card AND YOUR PC), then remove your SD card. See if its still acting up.
2.) Without your SD card inserted, re-flash a ROM (TAEL or any other that you want to try).
3.) If it really comes down to it, I suppose after that, I'd let it sit for a day or two... strangely, I have had (namely computers) come back to life and work fine with just a day or two to let them sit....Then you could maybe try flashing back to the stock SPL and ROM?
4.) warranty service?
My guess is that the sd card is royally corrupted and slowing things down. Just try removing it and soft resetting. If that doesn't fix it, you may be hosed.

[Q]: Applications not loading from Storage Card

All of a sudden apps on storage card fail to load.
After a few reboots they reappear at random, but disappear again on reset.
Did not have that problem with stock, but after flashing Infused 1.14 (and on) the issue appears even with the (rooted) stock rom.
Any ideas?
I am trying to determine if I need to return and replace the phone before I lose the option.
Thank you in advance.
Answering the question by myself, in case others encounter the same issue.
The external card had something corrupted, and when the system was mounting it, all mess ensued.
Backed up all the data and reformatted.
System appears ok for now
I just had this same problem or at least something very similar to it. Initially I thought it was the 32GB SD card being too big since I read Android had a 16GB external card limit. But those posts were from a year ago and when I searched deeper I read that 32GB cards were being use without size problems now. There was one issue that seemed to affect some people and that was that android could have problems formatting a card that big and that's how I installed it in my Infuse initially- I let the Infuse format it, then popped in in my Macbook Pro (in OSX) to copy over the contents from the previous 8G card. I believe I have hidden files set to show, so I should be copying over everything- though, could this method of upgrading the card be a problem too?
It worked for a couple days, but last night during a reboot I tried to access the app tray and didn't know the card was still being scanned. It froze and I couldn't get past the secondary media scan after many tries. I didn't realize that apps were being automatically installed to the card.
Anyway, I was gonna return the card, but after reading your post, I'm thinking again about corruption due to poor formatting as the problem, so I'll try it again when I get home. Thanks for your post. I really want to be able to use this larger card so I'm keeping my fingers crossed this will solve the problem.
BTW, how did you format the card? I have Win7 x64Pro on my MBP as well if I need to use windows, but did you use FAT, FAT32, ExFat? I'm still a 'droid noob ;P. Thanks again!
-- Infuse 4G Rooted with stock ROM

Problem with microSD Card

Hi guys,
I've been having this problem for quite some time now. I first noticed this when I shifted from one custom ROM (SAGA LBC) to another (CyanogenMod 7.1). At first, my phone kept resetting after a reboot. At first, I thought it was an incompatible ROM. For a time, wiping cache and dalvik cache via the recovery interface did the trick. But then, it just got worse and worse. I eventually reverted back to LBC, thinking that it might be Cyanogen. But, as it turns out, my phone still kept resetting. Even as mundane a task as going to the settings menu freezes up my phone, requiring me to reset, sometimes even by pulling out the battery. I tried doing the wiping of the caches again, bit it never became effective.
Then I read somewhere that Andoid seems to be uber sensitive to file corruptions and defragmentation of the microSD card, so I defragged the SD, fixed the permissions, and deleted the LOST.DIR and tmp folders. Everything went smoothly at first, but then after a couple of days, my phone kept rebooting again. To verify that it was the microSD at fault, I removed it for the mean time. Since then, my phone hasn't frozen nor rebooted.
One other thing: whenever I check the microSD via Windows (right click --> Properties --> Tools), everything seems to be in order as Windows can't detect anything wrong. Right now, I've ran chkdsk :f /f /r on the drive, but Windows says that everything is fine. I haven't reinstalled the microSD yet, as I want to run a more thorough test before I do.
Have any of you encountered this? Could you guys give me suggestions on what to do, a better tool than chkdsk, etc? I can buy another card, but I don't want to do that just yet. My microSD is 32GB, and I don't want to just throw it away or something

[Q] Bootloop only when starting up with SD card

Hello everyone, this is my first post here even though I have referenced the xda forums for some time now. I've spent a bunch of time trying to fix this problem on my own but now I feel that I have exhausted all of my options and I could use some help from anyone who has heard of or encountered this problem before.
The problem:
My Samsung Infuse will boot up completely and perform the SD card scanning but the SD applications won't show up on my phone (they only exist as SD card icons), which leads me to believe that it's not mounting properly because of some process or application that interferes during the scanning process. The phone will continue to run for a few minutes, slowing down exponentially as time goes on until it completely freezes and reboots to my boot animation which starts this whole process over and over again. However, the phone will boot fine and run normally if I remove the SD card. Occasionally, it will randomly boot normally with the SD card if I let it bootloop for a long period of time.
What I've already tried:
This problem started happening when my phone was completely stock so I researched it and tried:
- getting a new SD card (which actually seemed to work for awhile which led me to believe the original was bad)
- downloading a new launcher, switching to it and clearing the TW launcher data (this works occasionally when I can actually make it through this process without being interrupted by a reboot)
- performing a factory reset and manually loading all my data back to avoid restoring any potentially problematic settings
- recently rooting my phone and running UCLB3 firmware with Entropy's Daily Driver kernel with CWM to see if it was just a bug with the factory software
Since it's been rooted it seems to have gotten worse though. When everything was stock it would only do this occasionally but now this problem will occur every time. However, I was thinking that it might just be that the sd cards have to be reformatted every so often for some reason (I will try this out soon to see what happens). But if anyone else can help with this issue it would be greatly appreciated. It seems like this is a fairly common issue with Samsungs so I'm hoping that someone has figured out exactly what the problem is that would be causing this to happen.

K1: Post 1.3 OTA, paired/married SD causes tablet lock, bootloops, and a ton of heat.

This is a strange one for me. Stumped. Been working on it all night, no improvement. New one for me, long-ish description (with detail), but a TL;DR too.
Last night I applied the 1.3 OTA for the K1. Being my K1 was rooted, I followed the process I have always followed by restoring the system images to stock, applying the OTA via recovery, then re-rooting. Process:
Shutdown tablet
Swap married/paired SD card with temp SD containing flashables (OTA, SuperSU)
Boot to bootloader, fastboot (re)flash tablet's current system images (recovery was already stock but flashed again for good measure, boot, system, blob -> staging)
Boot to custom recovery using fastboot boot -recovery image-
Flash OTA from temp SD, wipe caches, apply SuperSU
Shutdown, replace married SD, boot, enjoy life
This time I didn't immediately apply SuperSU, as I thought I'd flash 1.3 and let it go fully stock a bit to ensure no other updates were pending (nVidia seems to like incremental updates, so flashing to 1.1 won't give you an OTA to 1.3 directly, but to 1.2 first, then 1.3). I've also followed this process with the K1 for every update since 1.1 without a hitch, and although there haven't been many OTAs, it has still worked perfectly every time. Because of this and because I've done this a billion times on a million different devices with zero issues ever, I didn't take a backup before the update. Woe is me.
When I rebooted this time after flashing the OTA (no root), it booted up seemingly fine to the "Android is upgrading" modal, so I left the tablet alone for a bit to let it do its thing. When I came back, the tablet was HOT, was at a completely black screen save for the status bar (no wallpaper/launcher besides the clock/wifi icon which showed a connection, that's it). I tried to interact with it and couldn't (totally locked up, also a first), then it rebooted on its own. Subsequent times, during troubleshooting, I noticed that it's totally locked -- NOTHING responds, unless you can get to it before it reboots and hold power to kill it.
First thought was a bad flash. NBD, so went back and reflashed, double-checking everything and carefully following the same process. No dice. I did use a newer TWRP recovery from April of this year initially, which was a recommended version for the K1 specifically, rather than a really buggy but working one from last year. To test I did I try using the older TWRP on one of the next flashes thinking maybe the new one borked the partitions, or at least wasn't writing the partitions/symlinks properly (and the older one was the TWRP I had used for previous updates, with no issues). But, no change..
It took me a long time and many reflashes and cache formatting and digging before I realized if I pulled the married SD out, it booted just fine. Weird, and gets weirder. After leaving the married SD out and booting, and having the tablet working just as expected (except for missing the SD), Android shows a notification saying to reinsert the married SD. Once the married SD is reinserted, things seem OK for a few seconds before the whole system goes unresponsive again, heats up, and begins bootlooping. Before it sh'ts the bed, the message on the status notification asking to reinsert the married SD card doesn't change, but in the Storage settings, it shows it's "checking" the card, followed by a sudden hot death spiral into non-function. If you select the SD from Storage settings to take a look around its contents, the tablet basically locks up instantly. Inserting other SDs works fine (for the most part, still some other weirdness), it's just the married SD that totally kills the device without fail.
Obviously I'd like to avoid wiping and reinstalling the whole thing if it can be avoided, not just because my dumb ass didn't take a backup so I'd lose a ton of app/game data, but also because it's a just huge pain. A lot of the sites that offered "fixes" for these types of problems say to just wipe data, which is not a solution and is the nuclear option (like telling someone to to replace a car due to a flat tire).
Ideas? Is this as simple as recreating some symlinks that somehow disappeared and refuse to come back after all the flashes, and if so, how? I've been looking for hours and haven't found anyone with this particular issue or steps to correct.
[size=+2]TL;DR[/size]: Applied K1 1.3 OTA, married/paired SD card is no longer recognized, causes tablet to hard-lock and enter bootloop when inserted (other SDs do not cause this issue).
Other potentially pertinent bits:
Initial flash was dirty, second and subsequent flashes included a wipe of system first
Installed 1.2 images first, then tried going back to 1.1.1 and taking nVidia's OTAs to get back up to 1.3
1.1.1 does not recognize the married SD but doesn't kill the tablet, while 1.2 and 1.3 kill the tablet when the SD is inserted
When married SD is not inserted, using shell or ES Explorer or otherwise, not seeing a /storage/emulated/0, or /sdcard, or /data/media, or any other familiar storage related directories
When married SD is inserted, it dies too fast to look around much or try to do anything to check/fix the SD itself
/storage is totally empty except for a folder called "self", and inserting a working SD creates a directory under /storage labeled with the SD's serial number (not an emulated/0 directory or anything similar)
Not sure if this is expected behavior since the SD was married -- do those directories/symlinks live on the SD now since it's married, and won't show up in the device filesystem until everything's properly mounted?
Tried following these steps, which although written in the N5 forum, still seemed relevant.. no change
Tried the referenced SD permissions update with the card inserted and not, in case of the directories it touches only being visible/available with the card inserted, no change
Noticed even within TWRP, going to the "mount" menu seemed flaky, labored, and didn't show what I expected, but this could be because there isn't a "proper" or official custom recovery for the K1 yet and things are just buggy
ES File Manager still seems to think an /sdcard directory exists and tries to open to it, and just spins in an open directory.. as expected
Going to /data in ES File Manager shows me an empty directory with a message stating the SD card is missing
Using a working, freshly formatted SD in the tablet and trying to point Titanium to a directory on the SD gives me messages about the directory being unwritable, no matter where I go on the SD
Titanium's app permissions (including r/w storage) are proper, SD is not write protected (freshly formatted on the tablet)
Tried using SDFix, which also gave me an error re: "platform permission file is invalid"
There's probably more I'm missing, but can't remember it all -- I have tried everything, I feel like, and have been at it for 13 hours now (apologies if this is written spotty, fighting to keep my eyes open).
So is it totally hosed, or is this recoverable? Is there a way to fix the tablet to recognize the SD, or fix the SD itself if that's the issue (but I'd wonder how it got corrupted in the first place, since it has only been removed once fully powered down)? Is there at least a way to check the married SD for corruption or issues?
Thoughts?
EDIT: Formatting
You removed the sdcard that was set as internal storage? Well you probably broke it/the data on it because that's not what you should do at all
GtrCraft said:
You removed the sdcard that was set as internal storage? Well you probably broke it/the data on it because that's not what you should do at all
Click to expand...
Click to collapse
And why is that? When the OS is running, sure, you can't. It'd be equivalent to just deleting /data while the OS was running. It seems pretty unlikely that removing and reinserting it while it's powered off, though, would make it suddenly unable to read the SD or forget its pairing. Adopted storage is "married" to the device via a generated encryption key, which is stored on the device's internal storage. It's all handled in software, not like the SD fuses itself to the device Removing the SD (while off) would not (and does not) break this pairing method, unless the internal storage or SD decides to spontaneously erase itself while the device was off.
The process outlined is the recommended process for upgrading rooted devices with adopted storage. I've followed this process on multiple tablets/phones with adopted storage with zero issues, including this one several times, like I mentioned.
If it WERE the case that simply removing it (again, while off) made it forget the SD, I could understand the tablet reading the card and saying "nope not going to accept it, you done f'd up" and spitting out a dialog telling me to format it or whatnot.. lesson learned, if that were the case. However it's completely hard-locking the device (again, NOTHING works, no physical buttons, screen is unresponsive, only holding power to kill it works) when it's just reading the SD, and apparently pinning the CPU when doing so (hence the absurd heat)..? It's not just a matter of the tablet forgetting the SD
grivad said:
When the OS is running, sure. Maybe that is the case, but it seems pretty unlikely that removing and reinserting it while it's powered off would make it spontaneously unable to read the SD or forget its pairing.
This is the recommended process for upgrading rooted devices with adopted storage. I've followed this process on multiple tablets/phones with adopted storage with zero issues, including this one several times, like I mentioned.
If it WERE the case that simply removing it (again, while off) made it forget the SD, I could understand the tablet reading the card and saying "nope not going to accept it, you done f'd up" and spitting out a dialog telling me to format it or whatnot.. lesson learned, if that were the case. However it's completely hard-locking the device (again, NOTHING works, no physical buttons, screen is unresponsive, only holding power to kill it works) when it's just reading the SD, and apparently pinning the CPU when doing so (hence the absurd heat)..? It's not just a matter of the tablet forgetting the SD
Click to expand...
Click to collapse
Still, you better off formatting it
Sent from my XT1562 using XDA Labs
Been running adopted storage in my mxpe since mm was released and have never removed the card to flash.
Sent from my SHIELD Tablet using Tapatalk
lafester said:
Been running adopted storage in my mxpe since mm was released and have never removed the card to flash.
Sent from my SHIELD Tablet using Tapatalk
Click to expand...
Click to collapse
Cool.
Regarding the YOU CAN'T REMOVE IT belief (which is categorically false), if this were a serious issue like people speculate it is, Android would simply not ALLOW you to remove it. Meaning if it was ever detected as being removed or missing, first time, Android would tell you "too bad, now it's unpaired", and would also make it REEEEALLY clear not to remove it at all, ever, during the pairing process, which it does not. Nor would it let you eject adopted storage, which you can, safely. Like I mentioned above, when booting without the SD present, the system runs fine and has a persistent notification asking you to reinsert the paired SD, and begins to check the SD as soon as it's inserted so it can be remounted. If you select the notification before putting the SD back in, it takes you to a panel explaining how the SD has all your apps, so you really should put it back in, or you can choose to "forget" the SD and you're back to square one. If you REALLY weren't supposed to remove the SD EVER, none of this would exist.
Additionally, pretty much every piece of documentation around adoptable storage says it can be removed just fine (but is only readable/usable by the device it was paired to), but the system kinda needs it to, you know, run all the apps you put on the thing, and will persistently remind you to reinsert it, unless you choose to break the adoption. So there's that.
Storage adoption isn't this magical, complicated thing. It mounts certain directories to your SD instead of internal storage (e.g., /storage/emulated), generates a key, then encrypts the card to prevent it from being read outside of the device it was paired with. That's really pretty much all there is to it. None of those things necessitate a or even imply that removal of an adopted SD would lead to sudden disaster. That's like believing if you take your hard drive out of your computer, but then plug it right back in, that it's going to be unbootable and dead. Doesn't work that way.
I appreciate you guys trying to help, but the problem is not simply that I removed the SD so now it's broken.
The thing that should get your attention is that when the SD is inserted, it begins to scan the SD and subsequently HARD-LOCKS. And PEGS THE CPU. Also that I cannot write to a working SD with Titanium. These things are pretty abnormal for Android devices, to say the least. There is something else going on here besides "You took the SD out and you weren't supposed to."
grivad said:
Cool.
Regarding the DON'T REMOVE IT belief, if this were an issue like people speculate it is, Android would simply not ALLOW you to remove it. Meaning if it was ever detected as being removed or missing, first time, Android would tell you "too bad, now it's unpaired", and would also make it REEEEALLY clear not to remove it at all, ever, during the pairing process, which it does not. Nor would it let you eject adopted storage, which you can, safely. Like I mentioned above, when booting without the SD present, the system runs fine and has a persistent notification asking you to reinsert the paired SD, and begins to check the SD as soon as it's inserted so it can be remounted. If you select the notification before putting the SD back in, it takes you to a panel explaining how the SD has all your apps, so you really should put it back in, or you can choose to "forget" the SD and you're back to square one. If you REALLY weren't supposed to remove the SD EVER, none of this would exist.
Additionally, pretty much every piece of documentation around adoptable storage says it can be removed just fine (but is only readable/usable by the device it was paired to), but the system kinda needs it to, you know, run all the apps you put on the thing, and will persistently remind you to reinsert it, unless you choose to break the adoption. So there's that.
Storage adoption isn't this magical, complicated thing. It mounts certain directories to your SD instead of internal storage (e.g., /storage/emulated), generates a key, then encrypts the card to prevent it from being read outside of the device it was paired with. That's really pretty much all there is to it. None of those things necessitate a or even imply that removal of an adopted SD would lead to sudden disaster. That's like believing if you take your hard drive out of your computer, but then plug it right back in, that it's going to be unbootable and dead. Doesn't work that way.
I appreciate you guys trying to help, but the problem is not simply that I removed the SD so now it's broken.
The thing that should get your attention is that when the SD is inserted, it begins to scan the SD and subsequently HARD-LOCKS. And PEGS THE CPU. Both of those things are pretty abnormal for Android devices, to say the least. There is something else going on here besides "You took the SD out and you weren't supposed to."
Click to expand...
Click to collapse
Well you tried with another sd and there is no problem. So the cause of the freezing problem is your sd.
But be my guest and find another solution. I just gave an answer to your question and a solution for the problem. If you don't believe that then you shouldn't ask it in the first place
GtrCraft said:
Well you tried with another sd and there is no problem. So the cause of the freezing problem is your sd.
But be my guest and find another solution. I just gave an answer to your question and a solution for the problem. If you don't believe that then you shouldn't ask it in the first place
Click to expand...
Click to collapse
It's not that I don't believe the solution, I don't believe the premise because it is provably false There is absolutely nothing unsafe about ejecting adopted storage, which is why the OS lets you do it, even while it's running and using the storage. Even less of a risk if the thing is off. The "solution" offered wasn't much of a solution, and in the OP it was stated that I wasn't looking for that answer (already know that's an option, which is why I mentioned in the OP).
I appreciate you trying to help, but simply saying "format it", again, is the nuclear option. Not what I'm looking for. Either information as to what's happening (if anyone else has dealt with this) with a justification as to why it's irrepairable, or things to try based on the information I gave. Spending a lot of time being thorough just to get a "format it" response, to be frank, isn't very helpful It's like telling someone to reinstall their entire OS because they can't figure out how to install a driver, or to raze their house because a painting fell off the wall.
The SD didn't spontaneously corrupt itself in the 5 mins it was out of the device. No gamma bursts or EM storms in my area that I know of, either Because the only thing that changed was installing the OTA, this really seems to be a software problem (albeit a bit bizarre, to me) so it should be fixable via software. The fact it's pegging the CPU when the SD is inserted makes me wonder if it's getting stuck in a loop, maybe due to partition changes (looking for a file or partition it can't find). If that's the case, again, that should be fixable via software, with instruction from someone knowledgeable on how the Android FS and mounts work.
Again thanks for trying to help. I know formatting is an option (the easiest one), but I'm looking for just that -- options.
You did update the firmware with the sd out, nothing to do with lightning or gamma bursts.
Did you try downgrading firmware back to where it was?
lafester said:
You did update the firmware with the sd out, nothing to do with lightning or gamma bursts.
Did you try downgrading firmware back to where it was?
Click to expand...
Click to collapse
True, the SD was out, however this is how I've both read to do it in multiple places, and how I've applied every OTA so far without issue (with the same adopted SD every time). As part of my troubleshooting, I did try flashing the OTA with the adopted SD inserted, though. It didn't make a difference.
I did try downgrading.. When I started the tablet was on 1.2, OTAd to 1.3. Every time I'd reflash I would do so to 1.2. I did try flashing down to 1.1.1 (the "recovery OS image") and OTAing back up, and like I mentioned that allowed me to use the device with the SD inserted, but it wouldn't recognize it as the adopted storage.. just kinda did nothing, as if the card wasn't inserted at all. This happened in 1.2 as well (OTAd from 1.1.1), and once it got up to 1.3 from 1.2 it all started all over again.
I'm creating an image of the SD right now (using dd) to try restoring it to another SD. I've read that doing this preserves the pairing information, so if it's a bad SD, this would hopefully fix it. I also wanted to try flashing directly to 1.3, but the images aren't available yet Only 1.2 and 1.1.1..
Honestly I would divorce the card before update then redo it after this whole method is janky anyway no reason to remap the data links like they do and all it would be required is if app devs were forced to comply with a data space method... The feature of installing to SD card should be available to non married storage.
Old thread, haven't been on in a while, but thought I'd post an update.
The problem ended up being a hardware issue. I contacted nVidia after absolutely nothing I tried resolved the issue (different SDs, different OS versions, different process to set up, etc.). I simply explained the problems I was having and my troubleshooting attempts, asked if it was a known issue or if they had any suggestions, and they immediately responded with RMA info, no questions asked. The replacement turnaround time was very fast (within a week IIRC), and the new K1 has had zero issues.

Categories

Resources