[Nexus S Q&A, Help & Troubleshooting] schroding3rscat:
This was good suggestion. Thank you.

I connected my Nexus S to PC and enabled USB Debugging. And in ddms.exe I run logcat.

So after rebooting my phone I discovered that MediaScanner dies. :eek: Here is cut from log:

Line 722: I/ActivityManager( 270): Start proc android.process.media for broadcast com.android.providers.media/.UsbReceiver: pid=491 uid=10014 gids={1015, 1023, 1024, 1028, 2001, 3003, 3007}
Line 723: I/ActivityThread( 491): Pub downloads: com.android.providers.downloads.DownloadProvider
Line 724: I/ActivityThread( 491): Pub drm: com.android.providers.drm.DrmProvider
Line 725: I/DownloadManager( 491): in removeSpuriousFiles
Line 726: I/ActivityThread( 491): Pub media: com.android.providers.media.MediaProvider
Line 1013: D/dalvikvm( 491): GC_CONCURRENT freed 187K, 4% free 8199K/8455K, paused 13ms+9ms, total 53ms
Line 1056: I/MediaProvider( 491): Upgrading media database from version 0 to 509, which will destroy all old data
Line 1078: E/SQLiteLog( 491): (1) no such table: files
Line 1331: D/dalvikvm( 491): GC_CONCURRENT freed 275K, 5% free 8373K/8775K, paused 21ms+212ms, total 347ms
Line 1520: D/dalvikvm( 491): GC_CONCURRENT freed 398K, 6% free 8383K/8903K, paused 13ms+13ms, total 79ms
Line 1537: D/dalvikvm( 491): GC_CONCURRENT freed 439K, 7% free 8335K/8903K, paused 14ms+13ms, total 50ms
Line 1626: D/dalvikvm( 491): GC_CONCURRENT freed 560K, 8% free 8261K/8903K, paused 2ms+6ms, total 193ms
Line 1795: D/dalvikvm( 491): GC_FOR_ALLOC freed 214K, 6% free 8378K/8903K, paused 124ms, total 124ms
Line 1855: D/MediaScannerReceiver( 491): action: android.intent.action.MEDIA_MOUNTED path: /storage/sdcard0
Line 1870: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 1888: D/dalvikvm( 491): GC_EXPLICIT freed 322K, 7% free 8357K/8903K, paused 142ms+51ms, total 499ms
Line 1954: D/dalvikvm( 491): GC_CONCURRENT freed 410K, 7% free 8359K/8903K, paused 14ms+8ms, total 65ms
Line 1957: D/dalvikvm( 491): GC_CONCURRENT freed 508K, 8% free 8262K/8903K, paused 14ms+4ms, total 50ms
Line 1970: D/dalvikvm( 491): GC_CONCURRENT freed 394K, 8% free 8268K/8903K, paused 12ms+12ms, total 40ms
Line 1981: D/dalvikvm( 491): GC_CONCURRENT freed 397K, 8% free 8264K/8903K, paused 11ms+12ms, total 39ms
Line 1982: W/MediaScanner( 491): Error opening directory '/storage/sdcard0/.android_secure/', skipping: Permission denied.
Line 1985: D/dalvikvm( 491): GC_CONCURRENT freed 259K, 6% free 8389K/8903K, paused 11ms+3ms, total 31ms
Line 1987: D/dalvikvm( 270): GC_EXPLICIT freed 116K, 13% free 15491K/17607K, paused 4ms+7ms, total 85ms
Line 1988: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 1989: D/dalvikvm( 491): GC_EXPLICIT freed 214K, 6% free 8409K/8903K, paused 2ms+3ms, total 28ms
Line 1996: D/dalvikvm( 491): GC_CONCURRENT freed 324K, 6% free 8510K/8967K, paused 12ms+4ms, total 36ms
Line 1997: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 1998: D/dalvikvm( 491): GC_EXPLICIT freed 244K, 8% free 8319K/8967K, paused 2ms+3ms, total 28ms
Line 2001: D/dalvikvm( 491): GC_CONCURRENT freed 213K, 6% free 8490K/8967K, paused 12ms+3ms, total 36ms
Line 2005: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2006: D/dalvikvm( 491): GC_EXPLICIT freed 242K, 7% free 8346K/8967K, paused 2ms+7ms, total 31ms
Line 2009: D/dalvikvm( 491): GC_CONCURRENT freed 241K, 6% free 8488K/8967K, paused 12ms+4ms, total 36ms
Line 2012: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2013: D/dalvikvm( 491): GC_EXPLICIT freed 241K, 7% free 8346K/8967K, paused 2ms+3ms, total 28ms
Line 2017: D/dalvikvm( 491): GC_CONCURRENT freed 242K, 6% free 8489K/8967K, paused 11ms+3ms, total 34ms
Line 2021: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2022: D/dalvikvm( 491): GC_EXPLICIT freed 241K, 7% free 8346K/8967K, paused 2ms+2ms, total 27ms
Line 2027: D/dalvikvm( 491): GC_CONCURRENT freed 241K, 6% free 8488K/8967K, paused 12ms+23ms, total 118ms
Line 2028: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2029: D/dalvikvm( 491): GC_EXPLICIT freed 241K, 7% free 8346K/8967K, paused 2ms+3ms, total 27ms
Line 2035: D/dalvikvm( 491): GC_CONCURRENT freed 241K, 6% free 8489K/8967K, paused 12ms+3ms, total 37ms
Line 2036: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2037: D/dalvikvm( 491): GC_EXPLICIT freed 248K, 8% free 8340K/8967K, paused 2ms+3ms, total 28ms
Line 2042: D/dalvikvm( 491): GC_CONCURRENT freed 235K, 6% free 8489K/8967K, paused 12ms+3ms, total 37ms
Line 2043: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2044: D/dalvikvm( 491): GC_EXPLICIT freed 248K, 7% free 8340K/8967K, paused 2ms+3ms, total 26ms
Line 2049: D/dalvikvm( 491): GC_CONCURRENT freed 234K, 6% free 8491K/8967K, paused 12ms+4ms, total 38ms
Line 2049: D/dalvikvm( 491): GC_CONCURRENT freed 234K, 6% free 8491K/8967K, paused 12ms+4ms, total 38ms
Line 2050: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2051: D/dalvikvm( 491): GC_EXPLICIT freed 248K, 8% free 8339K/8967K, paused 1ms+3ms, total 25ms
Line 2056: D/dalvikvm( 491): GC_CONCURRENT freed 234K, 6% free 8490K/8967K, paused 12ms+4ms, total 34ms
Line 2057: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2058: D/dalvikvm( 491): GC_EXPLICIT freed 248K, 8% free 8339K/8967K, paused 2ms+3ms, total 26ms
Line 2063: D/dalvikvm( 491): GC_CONCURRENT freed 235K, 6% free 8488K/8967K, paused 12ms+17ms, total 49ms
Line 2064: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2065: D/dalvikvm( 491): GC_EXPLICIT freed 251K, 7% free 8341K/8967K, paused 2ms+2ms, total 26ms
Line 2068: D/dalvikvm( 491): GC_CONCURRENT freed 255K, 6% free 8471K/8967K, paused 12ms+3ms, total 36ms
Line 2071: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2072: D/dalvikvm( 491): GC_EXPLICIT freed 247K, 7% free 8366K/8967K, paused 2ms+3ms, total 28ms
Line 2076: D/dalvikvm( 491): GC_CONCURRENT freed 270K, 6% free 8480K/8967K, paused 12ms+3ms, total 36ms
Line 2079: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2080: D/dalvikvm( 491): GC_EXPLICIT freed 245K, 7% free 8358K/8967K, paused 2ms+3ms, total 28ms
Line 2083: D/dalvikvm( 491): GC_CONCURRENT freed 263K, 6% free 8480K/8967K, paused 12ms+4ms, total 33ms
Line 2086: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2087: D/dalvikvm( 491): GC_EXPLICIT freed 249K, 7% free 8357K/8967K, paused 2ms+3ms, total 28ms
Line 2092: D/dalvikvm( 491): GC_CONCURRENT freed 254K, 6% free 8488K/8967K, paused 12ms+3ms, total 38ms
Line 2093: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2094: D/dalvikvm( 491): GC_EXPLICIT freed 251K, 7% free 8343K/8967K, paused 2ms+2ms, total 26ms
Line 2099: D/dalvikvm( 491): GC_CONCURRENT freed 240K, 6% free 8486K/8967K, paused 12ms+3ms, total 37ms
Line 2100: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2101: D/dalvikvm( 491): GC_EXPLICIT freed 249K, 7% free 8344K/8967K, paused 2ms+3ms, total 26ms
Line 2106: D/dalvikvm( 491): GC_CONCURRENT freed 244K, 6% free 8485K/8967K, paused 12ms+3ms, total 34ms
Line 2107: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2108: D/dalvikvm( 491): GC_EXPLICIT freed 248K, 7% free 8343K/8967K, paused 2ms+3ms, total 26ms
Line 2113: D/dalvikvm( 491): GC_CONCURRENT freed 240K, 6% free 8487K/8967K, paused 11ms+4ms, total 34ms
Line 2114: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2115: D/dalvikvm( 491): GC_EXPLICIT freed 253K, 7% free 8340K/8967K, paused 2ms+2ms, total 25ms
Line 2118: D/dalvikvm( 491): GC_CONCURRENT freed 244K, 6% free 8480K/8967K, paused 12ms+4ms, total 34ms
Line 2121: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2122: D/dalvikvm( 491): GC_EXPLICIT freed 245K, 7% free 8354K/8967K, paused 2ms+3ms, total 27ms
Line 2127: D/dalvikvm( 491): GC_CONCURRENT freed 249K, 6% free 8489K/8967K, paused 12ms+4ms, total 35ms
Line 2128: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2129: D/dalvikvm( 491): GC_EXPLICIT freed 246K, 8% free 8340K/8967K, paused 2ms+3ms, total 25ms
Line 2132: D/dalvikvm( 491): GC_CONCURRENT freed 252K, 6% free 8473K/8967K, paused 12ms+4ms, total 36ms
Line 2135: D/dalvikvm( 491): GC_FOR_ALLOC freed 487K, 8% free 8380K/9095K, paused 15ms, total 21ms
Line 2136: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 1ms
Line 2137: D/dalvikvm( 491): GC_EXPLICIT freed 286K, 9% free 8315K/9095K, paused 1ms+2ms, total 24ms
Line 2138: D/dalvikvm( 491): GC_FOR_ALLOC freed 313K, 8% free 8380K/9095K, paused 13ms, total 14ms
Line 2141: D/dalvikvm( 491): GC_CONCURRENT freed 350K, 8% free 8430K/9095K, paused 12ms+3ms, total 31ms
Line 2144: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2145: D/dalvikvm( 491): GC_EXPLICIT freed 292K, 8% free 8435K/9095K, paused 2ms+3ms, total 29ms
Line 2148: D/dalvikvm( 491): GC_CONCURRENT freed 356K, 7% free 8465K/9095K, paused 11ms+3ms, total 32ms
Line 2151: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2152: D/dalvikvm( 491): GC_EXPLICIT freed 304K, 8% free 8426K/9095K, paused 2ms+3ms, total 29ms
Line 2155: D/dalvikvm( 491): GC_CONCURRENT freed 378K, 8% free 8446K/9095K, paused 11ms+12ms, total 41ms
Line 2156: D/dalvikvm( 491): GC_CONCURRENT freed 381K, 7% free 8460K/9095K, paused 12ms+3ms, total 31ms
Line 2181: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2182: D/dalvikvm( 491): GC_EXPLICIT freed 367K, 8% free 8445K/9095K, paused 3ms+4ms, total 34ms
Line 2185: D/dalvikvm( 491): GC_CONCURRENT freed 297K, 7% free 8535K/9095K, paused 15ms+3ms, total 44ms
Line 2186: D/dalvikvm( 491): GC_FOR_ALLOC freed 412K, 8% free 8507K/9159K, paused 15ms, total 16ms
Line 2187: D/dalvikvm( 491): GC_FOR_ALLOC freed 343K, 8% free 8506K/9159K, paused 15ms, total 16ms
Line 2188: D/dalvikvm( 491): GC_FOR_ALLOC freed 333K, 8% free 8513K/9159K, paused 15ms, total 16ms
Line 2189: D/dalvikvm( 491): GC_FOR_ALLOC freed 333K, 7% free 8520K/9159K, paused 15ms, total 16ms
Line 2190: D/dalvikvm( 491): GC_FOR_ALLOC freed 334K, 7% free 8528K/9159K, paused 15ms, total 16ms
Line 2191: D/dalvikvm( 491): GC_FOR_ALLOC freed 333K, 7% free 8535K/9159K, paused 18ms, total 18ms
Line 2192: D/dalvikvm( 491): GC_FOR_ALLOC freed 327K, 7% free 8544K/9159K, paused 18ms, total 18ms
Line 2193: D/skia ( 491): --- SkImageDecoder::Factory returned null
Line 2196: D/dalvikvm( 491): GC_CONCURRENT freed 324K, 7% free 8605K/9159K, paused 11ms+3ms, total 33ms
Line 2197: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2198: D/dalvikvm( 491): GC_EXPLICIT freed 87K, 7% free 8529K/9159K, paused 2ms+2ms, total 26ms
Line 2209: D/dalvikvm( 491): GC_CONCURRENT freed 232K, 6% free 8681K/9159K, paused 12ms+3ms, total 34ms
Line 2212: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2213: D/dalvikvm( 491): GC_EXPLICIT freed 237K, 6% free 8630K/9159K, paused 2ms+4ms, total 38ms
Line 2218: D/dalvikvm( 491): GC_CONCURRENT freed 286K, 5% free 8739K/9159K, paused 11ms+4ms, total 37ms
Line 2219: D/dalvikvm( 491): WAIT_FOR_CONCURRENT_GC blocked 0ms
Line 2220: D/dalvikvm( 491): GC_EXPLICIT freed 247K, 7% free 8570K/9159K, paused 2ms+3ms, total 28ms
Line 2223: D/dalvikvm( 491): GC_CONCURRENT freed 212K, 5% free 8742K/9159K, paused 11ms+3ms, total 35ms
Line 2226: F/<unknown>( 491): stack corruption detected: aborted
Line 2227: D/Zygote ( 88): Process 491 terminated by signal (6)
Line 2228: I/ActivityManager( 270): Process android.process.media (pid 491) has died.
W/ActivityManager( 270): Scheduling restart of crashed service com.android.providers.media/.MediaScannerService in 315258ms

Also I found some suspicious lines, such as

E/ID3 ( 90): skipping huge ID3 metadata of size 3488105
E/ID3 ( 90): skipping huge ID3 metadata of size 3488119
E/ID3 ( 90): skipping huge ID3 metadata of size 3488119
I/SampleTable( 90): There are reordered frames present.
I/SampleTable( 90): There are reordered frames present.
I/SampleTable( 90): There are reordered frames present.

Process with this PID is marked with I/mediaserver, I/AudioFlinger, I/CameraService, I/AudioMixer, D/AudioHardware etc.

I'm not an Android developer, and cannot clearly understand what's going on. But from log I think that this is maybe a corrupted audio file?