MIUI ROM App Force Close Issue Fix
This fix will only work if you know what your doing. You need to have a rooted phone but then again if you are on MIUI (or any custom ROM) you will know what the below means.
I use the MIUI ROM from Galnet (http://galnetmiui.co.uk/landing/ics-builds/) ICS builds for my Samsung Galaxy S I9000. I noticed last night that a lot of my applications started force closing on their own. I looked at the force close error stacktrace and observed that all errors were caused by an SQLiteDiskIOException which means the applications were force closing simply because there were no space on the phone for them to store cache data.
This was insane as I had recently factory reset and flashed this ROM and had only a few essential applications installed instead of the usual 250 or so I had when I was on Darky ROM 10.2.2 EE.
I opened my terminal and ran this - du -dl /data/data | sort -n
I then realized that this was too geeky and used this instead - Disk Usage - a lovely app that shows you your disk space in a nice graphical interactive way.
I believe you can find more details on these issues with a search. According to some post, and I agree that this is not a permanent fix, it has to be rectified at the MIUI rom level.
\data and folders within this - this is where the user apps and related stuff are stored. this is where most of the rom storage is allocated.
\data\data - stores the apps configuration and run time data such as setting, lib, database
For some reason (MIUI ROM Configuration I suppose), there is another folder, \datadata which stores the actual app data. Since \datadata is not under \data, it has limited storage space assigned. The \data\data is only a link to the \datadata folder, hence it has the same storage limitation.
Hence, by moving \datadata to \data\data, you set \data\data to contain the actual app data. It also inherited the allowable storage from \data.
The app starts to force close because it runs out of space in \data\data to store the app data.
The end :) Please use FileExpert to make the above changes or use App Cache Cleaner to clear cache occasionally.
I know MIUI sim-linked the the /data/data folder to /datadata to improve performance or something. Will dig into this later. Clearing cache solves the problem. Please also uninstall Adobe Air (sorry Adobe) as it takes up a lot of cache (28MB) for no reason and I know I'm never going to use it as Flash is dead.