Android process died problem
<p>I have fallen in a problem about process died in android.</p>

<p>I have an app having a progress dialog which increase progressing using thread.</p>

<p>As usual mode the app acts well. But at the progress dialog running state when i press the home key the process of the app goes too died.</p>

<p>The logCat is given below:</p>

<pre><code>09-20 19:00:25.109: DEBUG/KeyguardViewMediator(111): wakeWhenReadyLocked(82)
09-20 19:00:25.117: DEBUG/KeyguardViewMediator(111): handleWakeWhenReady(82)
09-20 19:00:25.117: DEBUG/KeyguardViewMediator(111): pokeWakelock(5000)
09-20 19:00:25.117: INFO/power(111): *** set_screen_state 1
09-20 19:00:25.127: DEBUG/Sensors(111): sensors=00000001, real=00000001
09-20 19:00:25.127: DEBUG/AKMD(100): Compass OPEN 
09-20 19:00:25.227: DEBUG/WifiService(111): ACTION_SCREEN_ON
09-20 19:00:25.237: DEBUG/SurfaceFlinger(111): Screen about to return, flinger = 0x11f0e0
09-20 19:00:27.047: DEBUG/KeyguardViewMediator(111): pokeWakelock(5000)
09-20 19:00:27.187: DEBUG/KeyguardViewMediator(111): pokeWakelock(5000)
09-20 19:00:27.217: DEBUG/ViewFlipper(184): updateRunning() mVisible=false, mStarted=true, mUserPresent=true, mRunning=false
09-20 19:00:27.277: WARN/InputManagerService(111): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@43cc8880
09-20 19:00:31.387: INFO/NotificationService(111): enqueueToast pkg=com.android.shredder callback=android.app.ITransientNotification$Stub$Proxy@43df7a30 duration=0
09-20 19:00:32.817: DEBUG/ViewFlipper(184): updateRunning() mVisible=false, mStarted=true, mUserPresent=true, mRunning=false
09-20 19:00:32.897: DEBUG/ViewFlipper(184): updateRunning() mVisible=true, mStarted=true, mUserPresent=true, mRunning=true
09-20 19:00:33.547: ERROR/ActivityThread(2053): Activity com.android.shredder.ui.ShredUI has leaked ServiceConnection com.android.shredder.domain.ShreddingEngine$2@43c0a6e0 that was originally bound here
09-20 19:00:33.547: ERROR/ActivityThread(2053): android.app.ServiceConnectionLeaked: Activity com.android.shredder.ui.ShredUI has leaked ServiceConnection com.android.shredder.domain.ShreddingEngine$2@43c0a6e0 that was originally bound here
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at android.app.ActivityThread$PackageInfo$ServiceDispatcher.&lt;init&gt;(ActivityThread.java:977)
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at android.app.ActivityThread$PackageInfo.getServiceDispatcher(ActivityThread.java:872)
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at android.app.ApplicationContext.bindService(ApplicationContext.java:796)
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at android.content.ContextWrapper.bindService(ContextWrapper.java:337)
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at com.android.shredder.domain.ShreddingEngine.bindService(ShreddingEngine.java:116)
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at com.android.shredder.domain.ShreddingEngine.&lt;init&gt;(ShreddingEngine.java:109)
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at com.android.shredder.domain.ShreddingControl.&lt;init&gt;(ShreddingControl.java:29)
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at com.android.shredder.ui.ShredUI.initMainView(ShredUI.java:299)
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at com.android.shredder.ui.ShredUI.onCreate(ShredUI.java:106)
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at android.app.ActivityThread.access$2200(ActivityThread.java:119)
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at android.os.Handler.dispatchMessage(Handler.java:99)
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at android.os.Looper.loop(Looper.java:123)
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at android.app.ActivityThread.main(ActivityThread.java:4363)
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at java.lang.reflect.Method.invokeNative(Native Method)
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at java.lang.reflect.Method.invoke(Method.java:521)
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
09-20 19:00:33.547: ERROR/ActivityThread(2053):     at dalvik.system.NativeStart.main(Native Method)
09-20 19:00:33.607: WARN/ActivityManager(111): Unbind failed: could not find connection for android.os.BinderProxy@43d4aec8
09-20 19:00:35.177: INFO/ActivityManager(111): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.shredder/.Splash }
09-20 19:00:35.487: DEBUG/dalvikvm(2053): GC freed 2068 objects / 146416 bytes in 199ms
09-20 19:00:35.807: INFO/ActivityManager(111): Displayed activity com.android.shredder/.Splash: 566 ms (total 566 ms)
09-20 19:00:35.877: DEBUG/ViewFlipper(184): updateRunning() mVisible=false, mStarted=true, mUserPresent=true, mRunning=false
09-20 19:00:36.077: INFO/ActivityManager(111): Starting activity: Intent { cmp=com.android.shredder/.authentication.AuthenticationUI }
09-20 19:00:36.467: INFO/ActivityManager(111): Displayed activity com.android.shredder/.authentication.AuthenticationUI: 371 ms (total 371 ms)
09-20 19:00:40.407: INFO/NotificationService(111): enqueueToast pkg=com.android.shredder callback=android.app.ITransientNotification$Stub$Proxy@43f80da0 duration=0
09-20 19:00:40.857: DEBUG/dalvikvm(177): GC freed 802 objects / 60440 bytes in 335ms
09-20 19:00:40.937: INFO/ActivityManager(111): Starting activity: Intent { cmp=com.android.shredder/.ui.ShredUI }
09-20 19:00:41.547: INFO/ActivityManager(111): Displayed activity com.android.shredder/.ui.ShredUI: 585 ms (total 585 ms)
09-20 19:00:46.717: DEBUG/dalvikvm(184): GC freed 891 objects / 45520 bytes in 164ms
09-20 19:00:50.357: INFO/ActivityManager(111): Start proc android.process.media for content provider com.android.providers.media/.MediaProvider: pid=2068 uid=10022 gids={1015, 1006, 2001, 3003}
09-20 19:00:50.657: DEBUG/ddm-heap(2068): Got feature list request
09-20 19:00:50.917: DEBUG/dalvikvm(95): GC freed 292 objects / 11128 bytes in 520ms
09-20 19:00:50.997: INFO/ActivityThread(2068): Publishing provider media: com.android.providers.media.MediaProvider
09-20 19:00:51.197: VERBOSE/MediaProvider(2068): Attached volume: internal
09-20 19:00:51.217: VERBOSE/MediaProvider(2068): /sdcard volume ID: 352124749
09-20 19:00:51.227: DEBUG/dalvikvm(95): GC freed 52 objects / 2336 bytes in 267ms
09-20 19:00:51.377: DEBUG/dalvikvm(95): GC freed 2 objects / 56 bytes in 149ms
09-20 19:00:51.417: ERROR/JavaBinder(111): !!! FAILED BINDER TRANSACTION !!!
09-20 19:00:51.417: INFO/ActivityManager(111): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.android.launcher/.Launcher }
09-20 19:00:51.447: VERBOSE/MediaProvider(2068): Attached volume: external
09-20 19:00:51.457: DEBUG/ViewFlipper(184): updateRunning() mVisible=false, mStarted=true, mUserPresent=true, mRunning=false
09-20 19:00:51.477: INFO/ActivityThread(2068): Publishing provider downloads: com.android.providers.downloads.DownloadProvider
09-20 19:00:51.507: DEBUG/ViewFlipper(184): updateRunning() mVisible=true, mStarted=true, mUserPresent=true, mRunning=true
09-20 19:00:51.557: INFO/ActivityThread(2068): Publishing provider drm: com.android.providers.drm.DrmProvider
09-20 19:00:51.567: INFO/ActivityManager(111): Process com.android.settings (pid 2036) has died.
09-20 19:00:51.567: INFO/ActivityManager(111): Low Memory: No more background processes.
09-20 19:00:52.567: DEBUG/dalvikvm(2053): GC freed 7038 objects / 394128 bytes in 103ms
09-20 19:00:52.577: INFO/dalvikvm(2053): Uncaught exception thrown by finalizer (will be discarded):
09-20 19:00:52.587: INFO/dalvikvm(2053): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor@43c2b460 on password_info that has not been deactivated or closed
09-20 19:00:52.597: INFO/dalvikvm(2053):     at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:599)
09-20 19:00:52.607: INFO/dalvikvm(2053):     at dalvik.system.NativeStart.run(Native Method)
09-20 19:00:52.617: INFO/dalvikvm(2053): Uncaught exception thrown by finalizer (will be discarded):
09-20 19:00:52.617: INFO/dalvikvm(2053): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor@43c2a5e8 on password_info that has not been deactivated or closed
09-20 19:00:52.627: INFO/dalvikvm(2053):     at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:599)
09-20 19:00:52.637: INFO/dalvikvm(2053):     at dalvik.system.NativeStart.run(Native Method)
09-20 19:00:52.637: INFO/dalvikvm(2053): Uncaught exception thrown by finalizer (will be discarded):
09-20 19:00:52.647: INFO/dalvikvm(2053): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor@43c25790 on password_info that has not been deactivated or closed
09-20 19:00:52.647: INFO/dalvikvm(2053):     at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:599)
09-20 19:00:52.647: INFO/dalvikvm(2053):     at dalvik.system.NativeStart.run(Native Method)
09-20 19:00:52.677: INFO/dalvikvm(2053): Uncaught exception thrown by finalizer (will be discarded):
09-20 19:00:52.687: INFO/dalvikvm(2053): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor@43c26858 on password_info that has not been deactivated or closed
09-20 19:00:52.687: INFO/dalvikvm(2053):     at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:599)
09-20 19:00:52.687: INFO/dalvikvm(2053):     at dalvik.system.NativeStart.run(Native Method)
09-20 19:00:52.987: INFO/ActivityManager(111): Start proc com.android.browser for content provider com.android.browser/.BrowserProvider: pid=2081 uid=10032 gids={3003, 1015}
09-20 19:00:53.067: DEBUG/ddm-heap(2081): Got feature list request
09-20 19:00:53.207: INFO/ActivityThread(2081): Publishing provider browser: com.android.browser.BrowserProvider
09-20 19:00:54.587: INFO/ActivityManager(111): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.shredder/.Splash }
09-20 19:00:55.147: DEBUG/ViewFlipper(184): updateRunning() mVisible=false, mStarted=true, mUserPresent=true, mRunning=false
09-20 19:00:56.287: INFO/ActivityManager(111): Start proc com.android.settings for broadcast com.android.settings/.widget.SettingsAppWidgetProvider: pid=2093 uid=1000 gids={3003, 3002, 3001}
09-20 19:00:56.287: INFO/ActivityManager(111): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.android.launcher/.Launcher }
09-20 19:00:56.357: DEBUG/ViewFlipper(184): updateRunning() mVisible=false, mStarted=true, mUserPresent=true, mRunning=false
09-20 19:00:56.417: DEBUG/ViewFlipper(184): updateRunning() mVisible=true, mStarted=true, mUserPresent=true, mRunning=true
***09-20 19:00:56.867: WARN/InputManagerService(111): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@43e78d20
09-20 19:00:57.307: INFO/ActivityManager(111): Process com.android.shredder (pid 2053) has died.
09-20 19:00:57.307: INFO/WindowManager(111): WIN DEATH: Window{43f5ca30 com.android.shredder/com.android.shredder.ui.ShredUI paused=false}
09-20 19:00:57.397: INFO/WindowManager(111): WIN DEATH: Window{43f8fd18 Start Shredding paused=false}***


09-20 19:00:58.147: DEBUG/ddm-heap(2093): Got feature list request
09-20 19:01:05.038: DEBUG/skia(184): purging 55K from font cache [7 entries]
09-20 19:01:05.157: DEBUG/dalvikvm(184): GC freed 765 objects / 37624 bytes in 121ms
09-20 19:01:10.047: DEBUG/skia(111): purging 164K from font cache [18 entries]
09-20 19:01:10.297: DEBUG/dalvikvm(111): GC freed 11281 objects / 570408 bytes in 246ms
09-20 19:01:15.177: DEBUG/dalvikvm(180): GC freed 1720 objects / 72928 bytes in 127ms
09-20 19:01:20.177: DEBUG/dalvikvm(218): GC freed 18 objects / 760 bytes in 118ms
09-20 19:01:25.057: DEBUG/skia(177): purging 51K from font cache [5 entries]
09-20 19:01:25.157: DEBUG/dalvikvm(177): GC freed 612 objects / 36872 bytes in 99ms
09-20 19:01:30.207: DEBUG/dalvikvm(1657): GC freed 6 objects / 224 bytes in 138ms
09-20 19:01:45.817: DEBUG/dalvikvm(111): threadid=15: bogus mon 1+0&gt;0; adjusting
09-20 19:01:56.217: INFO/power(111): *** set_screen_state 0
09-20 19:01:56.217: DEBUG/Sensors(111): sensors=00000000, real=00000000
09-20 19:01:56.287: DEBUG/WifiService(111): ACTION_SCREEN_OFF
09-20 19:01:56.297: DEBUG/WifiService(111): setting ACTION_DEVICE_IDLE timer for 900000ms
09-20 19:01:56.357: DEBUG/ViewFlipper(184): updateRunning() mVisible=true, mStarted=true, mUserPresent=false, mRunning=false
09-20 19:01:56.387: DEBUG/AKMD(100): Compass CLOSE 
09-20 19:01:56.567: DEBUG/SurfaceFlinger(111): About to give-up screen, flinger = 0x11f0e0
09-20 19:02:01.627: DEBUG/dalvikvm(111): GC freed 5972 objects / 305272 bytes in 187ms
09-20 19:02:05.605: DEBUG/GpsLocationProvider(111): NetworkThread out of wake loop
09-20 19:02:05.605: DEBUG/GpsLocationProvider(111): Requesting time from NTP server north-america.pool.ntp.org
09-20 19:02:06.957: DEBUG/dalvikvm(2093): GC freed 1220 objects / 85520 bytes in 120ms
09-20 19:02:15.612: DEBUG/SntpClient(111): request time failed: java.net.SocketTimeoutException: The operation timed out
09-20 19:02:15.612: DEBUG/GpsLocationProvider(111): requestTime failed
09-20 19:02:15.612: DEBUG/GpsLocationProvider(111): NetworkThread wait for 300000ms
</code></pre>

<p>I think the problem is on the Bold Italic part of the logcat which i have added above.</p>

<p>How can i solve this problem?
Please help me if anyone know the solution.</p>

<p>BR,
gsmaker</p>
