This happened to me today. Last night I left my phone charging on my PC through the USB port. PC was off, but USB is still powered. Phone was on.
The next morning, after I woke up I noticed that when I pressed the power button nothing happened. I plugged the cable off my PC, then back on, and the led was staying lit up red. Nothing when I pressed the power button again. No fastboot, nothing.
Finally, I plugged the phone using the original Sony adapter to the mains. It showed the Sony logo and it started charging. At least, so I thought. After a couple of hours, I checked the charging progress and nothing, battery was showing empty. So I tried to power the phone on while still charging. It booted Android and it was showing charging, but 0%. I powered the phone back off, it immediately started charging and battery progress was about 80%.
My guess is that somehow battery stats files were corrupted/deleted. Luckily the phone did not get bricked. I am on Android 4.0 ICS.
Sony Ericsson T100i(~2003 - still have it) -» Sony Ericsson K600i -» Nokia 3230 -» Nokia 6630 -» Sony Ericsson W810i -» Sony Ericsson W710i -» Sony Ericsson W910i -» Nokia N90 -» HTC Universal -» Sony Ericsson K800i -» Sony Ericsson K810i -» Nokia N80 -» LG Optimus One -» Samung Wave II -» LG Optimus 2X -» LG Optimus Me P350 -» LG Optimus One -» Sony Ericsson Xperia Mini ST15i -» LG Optimus L5 E610v -» SONY Xperia Sola MT27i