Activity killed in background and ClassCastException when resumed? - android

This only happens after the activity has been in the background for some time. It does not happen if I press the "home" button and then a few seconds later reopen the app, restoring the previous state. It does happen when I press the"home" button and then maybe an hour later reopen the app, trying to restore the previous state.
I think the WIN DEATH is causing it. I think it's the activity being garbage collected, but I'm not sure why it doesn't just restart.
Any insights into why this is happening?
note: Game implements Parcelable
05-22 20:43:14.343 I/ActivityManager(401): Start proc com.example.test for activity com.example.test/.ui.MainActivity: pid=12767 uid=10117 gids={50117, 3003, 1028}
05-22 20:48:22.914 I/ActivityManager(401): 43942 kB: com.example.test (pid 12767)
05-22 20:48:22.914 I/ActivityManager(401): 12767 62632K 62488K 44006K 40068K com.example.test
05-22 20:58:39.593 I/WindowState(401): WIN DEATH: Window{41b13370 u0 com.example.test/com.example.test.ui.MainActivity}
05-22 20:58:39.593 I/ActivityManager(401): Process com.example.test (pid 12767) has died.
05-23 11:12:25.469 I/ActivityManager(401): Start proc com.example.test for activity com.example.test/.ui.MainActivity: pid=6450 uid=10117 gids={50117, 3003, 1028}
05-23 11:12:25.696 E/AndroidRuntime(6450): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.test/com.example.test.ui.MainActivity}: java.lang.ClassCastException: java.lang.Object[] cannot be cast to java.util.ArrayList[]
05-23 11:12:25.696 E/AndroidRuntime(6450): at com.example.test.model.Game.(Game.java:241)
05-23 11:12:25.696 E/AndroidRuntime(6450): at com.example.test.model.Game.(Game.java:235)
05-23 11:12:25.696 E/AndroidRuntime(6450): at com.example.test.model.Game$1.createFromParcel(Game.java:228)
05-23 11:12:25.696 E/AndroidRuntime(6450): at com.example.test.model.Game$1.createFromParcel(Game.java:1)
05-23 11:12:25.696 E/AndroidRuntime(6450): at com.example.test.ui.MainActivity.onCreate(MainActivity.java:237)
05-23 11:12:25.798 W/ActivityManager(401): Force finishing activity com.example.test/.ui.MainActivity
05-23 11:12:26.352 W/ActivityManager(401): Activity pause timeout for ActivityRecord{4161a520 u0 com.example.test/.ui.MainActivity}
05-23 11:12:27.438 I/ActivityManager(401): Process com.example.test (pid 6450) has died.

Related

Why is Unity 3d game closing after splash screen?

I was using Unity 3D 2018. But 2018 doesn't support Android SDK API 29. Because of that I upgraded my version to 2019.2.9f1
I created my project in 2018 version. And now, I'm using 2019 version for my project.
My problem started after the update. Game closes after the splash screen.
I've been trying for a long day for fix this problem.
I tried those things;
il2cpp and mono both of them doesn't help. Problem is not because of the il2cpp. (All the Internet are saying because of il2cpp but not for me, mono doesn't work to)
Trying Android backup to false (with Android manifest file)
Trying update all assets
I tried everything I saw in the Internet. But nothing works.
10-24 22:12:28.810: D/Launcher.CellLayout(2146): touch item:ShortcutInfo, id=246, itemType=0, user=UserHandle{0}, mIconType=0, mTitle=Şahin Uzayda, mLabel=Şahin Uzayda, pkgName=com.DeviserSoft.SahinUzayda, className=com.unity3d.player.UnityPlayerActivity, screenId=6, container=-100, cellX=1, cellY=0, spanX=1, spanY=1, isLandscapePos=false
10-24 22:12:28.926: I/Timeline(2146): Timeline: Activity_launch_request time:15228423 intent:Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity bnds=[331,101][499,269] (has extras) }
10-24 22:12:28.929: I/ActivityManager(1663): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity bnds=[331,101][499,269] (has extras)} from uid 10028 on display 0
10-24 22:12:28.937: I/ANDR-IOP(1663): MIUI-IOP pkg_name = com.DeviserSoft.SahinUzayda PID = -1
10-24 22:12:28.959: I/ActivityManager(1663): Start proc 22887:com.DeviserSoft.SahinUzayda/u0a241 for activity com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity caller=com.miui.home
10-24 22:12:28.960: D/PowerKeeper.Event(3220): notifyAMProcStart processName: 10241 reason: com.DeviserSoft.SahinUzayda, pid:0
10-24 22:12:28.960: I/ANDR-IOP(1663): MIUI-IOP pkg_name = com.DeviserSoft.SahinUzayda PID = 22887
10-24 22:12:29.048: D/GameBoosterService(2606): onGameStatusChange foreground:ForegroundInfo{mForegroundPackageName='com.DeviserSoft.SahinUzayda', mForegroundUid=10241, mForegroundPid=22887, mLastForegroundPackageName='com.miui.home', mLastForegroundUid=10028, mLastForegroundPid=2146, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=1}
10-24 22:12:29.133: D/AccessibilityManager(22887): current package=com.DeviserSoft.SahinUzayda, accessibility manager mIsFinalEnabled=false, mOptimizeEnabled=false, mIsUiAutomationEnabled=false, mIsInterestedPackage=false
10-24 22:12:29.264: I/ActivityManager(1663): Displayed com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity: +317ms
10-24 22:12:29.265: I/Timeline(1663): Timeline: Activity_windows_visible id: ActivityRecord{216ffa0 u0 com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity t136} time:15228762
10-24 22:12:29.265: D/PowerKeeper.Event(3220): notifyActivityLaunchTime: com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity totalTime: 317
10-24 22:12:29.273: I/Unity(22887): ApplicationInfo com.DeviserSoft.SahinUzayda version 2.5 build 0682396a-d6c8-44ad-b159-8749835ed3df
10-24 22:12:29.280: I/WindowManager(1663): Destroying surface Surface(name=Starting com.DeviserSoft.SahinUzayda) called by com.android.server.wm.WindowStateAnimator.destroySurface:2045 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:897 com.android.server.wm.WindowState.removeLocked:1460 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2635 com.android.server.wm.WindowManagerService.removeWindowLocked:2593 com.android.server.wm.WindowManagerService.removeWindowLocked:2462 com.android.server.wm.WindowManagerService.removeWindow:2457 com.android.server.wm.Session.remove:202
10-24 22:12:29.295: I/WindowManager(1663): Screen frozen for +329ms due to Window{288d3f7 u0 Starting com.DeviserSoft.SahinUzayda}
10-24 22:12:32.156: E/AndroidRuntime(22887): Process: com.DeviserSoft.SahinUzayda, PID: 22887
10-24 22:12:32.163: W/ActivityManager(1663): Force finishing activity com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity
10-24 22:12:32.238: I/WindowManager(1663): WIN DEATH: Window{fd0a70b u0 com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity}
10-24 22:12:32.238: I/ActivityManager(1663): Process com.DeviserSoft.SahinUzayda (pid 22887) has died: vis +99T
10-24 22:12:32.238: W/WindowManager(1663): Force-removing child win Window{203d6b5 u0 SurfaceView - com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity} from container Window{fd0a70b u0 com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity}
10-24 22:12:32.238: I/WindowManager(1663): Destroying surface Surface(name=SurfaceView - com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2045 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:897 com.android.server.wm.WindowState.removeLocked:1460 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2635 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2614 com.android.server.wm.WindowManagerService.removeWindowLocked:2593 com.android.server.wm.WindowState$DeathRecipient.binderDied:1791 android.os.BinderProxy.sendDeathNotice:701
10-24 22:12:32.239: D/PowerKeeper.Event(3220): notifyAMProcDied pacakageName: com.DeviserSoft.SahinUzayda, pid:22887
10-24 22:12:32.241: I/WindowManager(1663): Destroying surface Surface(name=com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2045 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:897 com.android.server.wm.WindowState.removeLocked:1460 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2635 com.android.server.wm.WindowManagerService.removeWindowLocked:2593 com.android.server.wm.WindowState$DeathRecipient.binderDied:1791 android.os.BinderProxy.sendDeathNotice:701 <bottom of call stack>
10-24 22:12:32.315: D/GameBoosterService(2606): onGameStatusChange foreground:ForegroundInfo{mForegroundPackageName='com.miui.home', mForegroundUid=10028, mForegroundPid=2146, mLastForegroundPackageName='com.DeviserSoft.SahinUzayda', mLastForegroundUid=10241, mLastForegroundPid=22887, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=0}

SMS BroadcastReceiver not triggered when phone hasn't been used for a while?

I have an app that registers a BroadcastReceiver in the manifest
<receiver
android:name=".smsprocessing.SmsBroadcastReceiver"
android:exported="true"
android:permission="android.permission.BROADCAST_SMS">
<intent-filter android:priority="999">
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
<action android:name="android.provider.Telephony.SMS_DELIVER" />
<action android:name="android.provider.Telephony.SMS_DELIVER_ACTION" />
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
It has always been working perfectly fine when I'm testing it, but today I tried sending an SMS to a phone with the app installed which I hadn't touched for a few hours. The app has been working fine on this phone before while testing, but I've always tested it with the display on or within a few minutes after locking the screen.
It seems that my BroadcastReceiver wasn't triggered today when I hadn't used the phone for a few hours. The SMS was received and triggered the stock Messaging app, but my BroadcastReceiver was not triggered (or at least, the foreground service I'm starting from onReceive() wasn't started).
The phone in question is a Motorola Moto G running Android 4.4.4.
EDIT
When I connect the phone via USB minutes after it was supposed to have triggered the BroadcastReceiver, I see only two logs related to my app:
10-12 22:33:28.438 1039-1053/? I/ActivityManager: Start proc com.example.myapp for broadcast com.example.myapp/com.example.myapp.smsprocessing.SmsBroadcastReceiver: pid=3554 uid=10230 gids={50230, 3003}
10-12 22:33:28.961 1039-4323/? I/ActivityManager: Process com.example.myapp (pid 3554) has died.
Here is the full log from when (I think) the SMS was received (I have prefixed the above two lines with ###):
10-12 22:33:28.235 1039-1186/? I/PackageManager: Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
10-12 22:33:28.271 1039-4323/? I/PackageManager: Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
10-12 22:33:28.291 1039-1401/? I/PackageManager: Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
10-12 22:33:28.312 1039-1100/? I/PackageManager: Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
10-12 22:33:28.345 1039-1053/? I/ActivityManager: Start proc com.android.mms for broadcast com.android.mms/.transaction.PrivilegedSmsReceiver: pid=3524 uid=10030 gids={50030, 3003, 1028, 1015}10-12 22:33:28.345 1039-1053/? I/ActivityManager: Start proc com.android.mms for broadcast com.android.mms/.transaction.PrivilegedSmsReceiver: pid=3524 uid=10030 gids={50030, 3003, 1028, 1015}
### 10-12 22:33:28.438 1039-1053/? I/ActivityManager: Start proc com.example.myapp for broadcast com.example.myapp/com.example.myapp.smsprocessing.SmsBroadcastReceiver: pid=3554 uid=10230 gids={50230, 3003}
10-12 22:33:28.635 1039-1093/? D/WifiService: Client connection lost with reason: 4
10-12 22:33:28.644 1039-1050/? I/ActivityManager: Start proc android.process.acore for content provider com.android.providers.contacts/.ContactsProvider2: pid=3571 uid=10010 gids={50010, 3003, 1028, 1015, 1023}
10-12 22:33:28.645 1039-4321/? I/ActivityManager: Process com.google.android.gms (pid 2593) has died.
10-12 22:33:28.648 1039-4321/? W/ActivityManager: Service ServiceRecord{43d5d0e0 u0 com.google.android.gms/.chimera.GmsApiService} in process ProcessRecord{425f9028 2593:com.google.android.gms/u0a22} not same as in map: null
10-12 22:33:28.649 1039-4321/? W/ActivityManager: Scheduling restart of crashed service com.google.android.gms/.chimera.GmsIntentOperationService in 26259ms
Scheduling restart of crashed service com.google.android.gms/.checkin.CheckinService in 26259ms
Service ServiceRecord{43116f88 u0 com.google.android.gms/.chimera.GmsBoundBrokerService} in process ProcessRecord{425f9028 2593:com.google.android.gms/u0a22} not same as in map: null
10-12 22:33:28.848 1039-1290/? I/ActivityManager: Start proc com.google.android.gms for service com.google.android.gms/.ads.identifier.service.AdvertisingIdService: pid=3618 uid=10022 gids={50022, 3003, 1007, 1028, 1015, 3002, 3001, 3007, 2001, 3006}
### 10-12 22:33:28.961 1039-4323/? I/ActivityManager: Process com.example.myapp (pid 3554) has died.
10-12 22:33:29.279 1039-1313/? I/ActivityManager: Process com.google.android.apps.photos (pid 3476) has died.
10-12 22:33:29.998 1039-1049/? I/ActivityManager: Process com.google.android.gms.unstable (pid 3285) has died.
10-12 22:33:30.227 1039-1093/? D/WifiService: New client listening to asynchronous messages
10-12 22:33:30.422 263-349/? W/Vold: Returning OperationFailed - no handler for errno 30
10-12 22:33:30.425 263-349/? W/Vold: Returning OperationFailed - no handler for errno 30
10-12 22:33:30.483 1039-1100/? I/ActivityManager: Start proc com.google.android.gms.unstable for service com.google.android.gms/.droidguard.DroidGuardService: pid=3693 uid=10022 gids={50022, 3003, 1007, 1028, 1015, 3002, 3001, 3007, 2001, 3006}
10-12 22:33:30.847 1039-4323/? I/ActivityManager: Process android.process.acore (pid 3571) has died.
10-12 22:33:31.308 1039-3556/? I/ActivityManager: Process com.android.mms (pid 3524) has died.

Android new project app crashes in debug mode

I just created a new empty project in Android Studio, and right away ran the app on my phone - it worked perfectly fine. But when I debug the project, it crashes as soon as the breakpoint reaches the end of the code.
Here's the code:
package app.harc.zhp.delete2;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
Could anyone help, or at least try to debug a new project on Android Studio 2.2 and tell if it's any different?
Everything is fine on a Virtual Device though.
Log:
10-06 23:43:52.029 D/DefContainer(32406): Copying /data/local/tmp/app.harc.zhp.delete2 to base.apk
10-06 23:43:52.466 I/PackageManager.DexOptimizer(894): Running dexopt (dex2oat) on: /data/app/vmdl735784381.tmp/base.apk pkg=app.harc.zhp.delete2 isa=arm vmSafeMode=false debuggable=true oatDir = /data/app/vmdl735784381.tmp/oat bootComplete=true
10-06 23:43:52.670 I/ActivityManager(894): Force stopping app.harc.zhp.delete2 appid=10166 user=-1: uninstall pkg
10-06 23:43:52.845 I/PackageManager(894): Package app.harc.zhp.delete2 codePath changed from /data/app/app.harc.zhp.delete2-1 to /data/app/app.harc.zhp.delete2-2; Retaining data and using new
10-06 23:43:52.845 I/ActivityManager(894): Force stopping app.harc.zhp.delete2 appid=10166 user=-1: replace pkg
10-06 23:43:52.846 W/PackageManager(894): Code path for app.harc.zhp.delete2 changing from /data/app/app.harc.zhp.delete2-1 to /data/app/app.harc.zhp.delete2-2
10-06 23:43:52.846 W/PackageManager(894): Resource path for app.harc.zhp.delete2 changing from /data/app/app.harc.zhp.delete2-1 to /data/app/app.harc.zhp.delete2-2
10-06 23:43:53.242 W/PackageManager(894): Couldn't remove dex file for package: at location /data/app/app.harc.zhp.delete2-1/base.apk, retcode=-1
10-06 23:43:53.254 I/ActivityManager(894): Force stopping app.harc.zhp.delete2 appid=10166 user=0: pkg removed
10-06 23:43:54.974 E/Drive.UninstallOperation(1390): Package still installed app.harc.zhp.delete2
10-06 23:43:55.261 I/ActivityManager(894): Force stopping app.harc.zhp.delete2 appid=10166 user=-1: set debug app
10-06 23:43:55.262 I/ActivityManager(894): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=app.harc.zhp.delete2/.MainActivity} from uid 2000 on display 0
10-06 23:43:55.591 I/ActivityManager(894): Start proc 32594:app.harc.zhp.delete2/u0a166 for activity app.harc.zhp.delete2/.MainActivity
10-06 23:43:55.659 W/ActivityThread(32594): Application app.harc.zhp.delete2 is waiting for the debugger on port 8100...
10-06 23:43:57.327 W/System (32594): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:43:57.332 I/InstantRun(32594): Instant Run Runtime started. Android package is app.harc.zhp.delete2, real application class is null.
10-06 23:43:58.147 I/Finsky (22410): [1] com.google.android.finsky.utils.PermissionPolicies$PermissionPolicyService.onStartCommand(117): post-install permissions check for app.harc.zhp.delete2
10-06 23:43:58.158 I/Finsky (22410): [1] com.google.android.finsky.utils.bn.run(1302): Package state data is missing for app.harc.zhp.delete2
10-06 23:43:58.368 W/System (32594): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:43:59.414 V/ApplicationReceiver:onReceive(32675): 2016-10-06 21:43:59-null-ApplicationReceiver detectes the installation of package:app.harc.zhp.delete2 ver:1.2.0
10-06 23:43:59.509 I/UpdateIcingCorporaServi(31885): Updating corpora: APPS=app.harc.zhp.delete2, CONTACTS=MAYBE
10-06 23:44:02.550 D/OnUpgrade(585): onReceive --- > package name (data string): package:app.harc.zhp.delete2
10-06 23:44:34.162 I/ActivityManager(894): Process app.harc.zhp.delete2 (pid 32594) has died
10-06 23:44:34.201 I/ActivityManager(894): Start proc 1898:app.harc.zhp.delete2/u0a166 for activity app.harc.zhp.delete2/.MainActivity
10-06 23:44:34.332 W/System (1898): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:44:34.334 I/InstantRun(1898): Instant Run Runtime started. Android package is app.harc.zhp.delete2, real application class is null.
10-06 23:44:34.493 W/System (1898): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:44:35.208 I/ActivityManager(894): Displayed app.harc.zhp.delete2/.MainActivity: +39s636ms
10-06 23:44:35.594 I/ActivityManager(894): Force stopping app.harc.zhp.delete2 appid=10166 user=0: from pid 1895
10-06 23:44:35.594 I/ActivityManager(894): Killing 1898:app.harc.zhp.delete2/u0a166 (adj 0): stop app.harc.zhp.delete2
10-06 23:44:35.606 I/WindowState(894): WIN DEATH: Window{92da02e u0 app.harc.zhp.delete2/app.harc.zhp.delete2.MainActivity}
10-06 23:44:35.694 W/ActivityManager(894): Force removing ActivityRecord{5907531 u0 app.harc.zhp.delete2/.MainActivity t2575}: app died, no saved state
10-06 23:44:35.726 W/ActivityManager(894): Spurious death for ProcessRecord{984b1eb 0:app.harc.zhp.delete2/u0a166}, curProc for 1898: null
10-06 23:44:44.631 I/ActivityManager(894): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=app.harc.zhp.delete2/.MainActivity (has extras)} from uid 10070 on display 0
10-06 23:44:44.700 I/ActivityManager(894): Start proc 2259:app.harc.zhp.delete2/u0a166 for activity app.harc.zhp.delete2/.MainActivity
10-06 23:44:44.853 W/System (2259): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:44:44.861 I/InstantRun(2259): Instant Run Runtime started. Android package is app.harc.zhp.delete2, real application class is null.
10-06 23:44:45.085 W/System (2259): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:44:45.774 I/ActivityManager(894): Displayed app.harc.zhp.delete2/.MainActivity: +1s100ms
10-06 23:44:48.343 I/WindowState(894): WIN DEATH: Window{cded2e4 u0 app.harc.zhp.delete2/app.harc.zhp.delete2.MainActivity EXITING}
10-06 23:44:48.383 I/ActivityManager(894): Process app.harc.zhp.delete2 (pid 2259) has died
10-06 23:45:20.869 I/ActivityManager(894): Force stopping app.harc.zhp.delete2 appid=10166 user=-1: set debug app
10-06 23:45:20.869 I/ActivityManager(894): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=app.harc.zhp.delete2/.MainActivity} from uid 2000 on display 0
10-06 23:45:20.909 I/ActivityManager(894): Start proc 3464:app.harc.zhp.delete2/u0a166 for activity app.harc.zhp.delete2/.MainActivity
10-06 23:45:20.963 W/ActivityThread(3464): Application app.harc.zhp.delete2 is waiting for the debugger on port 8100...
10-06 23:45:22.785 W/System (3464): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:45:22.790 I/InstantRun(3464): Instant Run Runtime started. Android package is app.harc.zhp.delete2, real application class is null.
10-06 23:45:22.971 W/System (3464): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:45:39.892 I/ActivityManager(894): Process app.harc.zhp.delete2 (pid 3464) has died
10-06 23:45:39.931 I/ActivityManager(894): Start proc 3892:app.harc.zhp.delete2/u0a166 for activity app.harc.zhp.delete2/.MainActivity
10-06 23:45:40.016 W/System (3892): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:45:40.021 I/InstantRun(3892): Instant Run Runtime started. Android package is app.harc.zhp.delete2, real application class is null.
10-06 23:45:40.166 W/System (3892): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:45:40.845 I/ActivityManager(894): Displayed app.harc.zhp.delete2/.MainActivity: +19s949ms
10-06 23:45:40.931 I/ActivityManager(894): Force stopping app.harc.zhp.delete2 appid=10166 user=0: from pid 3889
10-06 23:45:40.931 I/ActivityManager(894): Killing 3892:app.harc.zhp.delete2/u0a166 (adj 0): stop app.harc.zhp.delete2
10-06 23:45:40.946 I/WindowState(894): WIN DEATH: Window{39b6bfc u0 app.harc.zhp.delete2/app.harc.zhp.delete2.MainActivity}
10-06 23:45:40.983 W/ActivityManager(894): Force removing ActivityRecord{2ef5a72 u0 app.harc.zhp.delete2/.MainActivity t2577}: app died, no saved state
10-06 23:45:40.992 W/ActivityManager(894): Spurious death for ProcessRecord{481683 0:app.harc.zhp.delete2/u0a166}, curProc for 3892: null
10-06 23:46:02.406 I/ActivityManager(894): Force stopping app.harc.zhp.delete2 appid=10166 user=-1: set debug app
10-06 23:46:02.406 I/ActivityManager(894): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=app.harc.zhp.delete2/.MainActivity} from uid 2000 on display 0
10-06 23:46:02.425 I/ActivityManager(894): Start proc 4463:app.harc.zhp.delete2/u0a166 for activity app.harc.zhp.delete2/.MainActivity
10-06 23:46:02.473 W/ActivityThread(4463): Application app.harc.zhp.delete2 is waiting for the debugger on port 8100...
10-06 23:46:04.288 W/System (4463): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:46:04.291 I/InstantRun(4463): Instant Run Runtime started. Android package is app.harc.zhp.delete2, real application class is null.
10-06 23:46:04.533 W/System (4463): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:46:31.003 I/ActivityManager(894): Process app.harc.zhp.delete2 (pid 4463) has died
10-06 23:46:31.021 I/ActivityManager(894): Start proc 4979:app.harc.zhp.delete2/u0a166 for activity app.harc.zhp.delete2/.MainActivity
10-06 23:46:31.113 W/System (4979): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:46:31.115 I/InstantRun(4979): Instant Run Runtime started. Android package is app.harc.zhp.delete2, real application class is null.
10-06 23:46:31.297 W/System (4979): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:46:31.882 I/ActivityManager(894): Displayed app.harc.zhp.delete2/.MainActivity: +29s467ms
10-06 23:46:31.996 I/ActivityManager(894): Force stopping app.harc.zhp.delete2 appid=10166 user=0: from pid 4992
10-06 23:46:31.996 I/ActivityManager(894): Killing 4979:app.harc.zhp.delete2/u0a166 (adj 0): stop app.harc.zhp.delete2
10-06 23:46:32.011 I/WindowState(894): WIN DEATH: Window{7271944 u0 app.harc.zhp.delete2/app.harc.zhp.delete2.MainActivity}
10-06 23:46:32.083 W/ActivityManager(894): Force removing ActivityRecord{b4396be u0 app.harc.zhp.delete2/.MainActivity t2578}: app died, no saved state
10-06 23:46:32.098 W/ActivityManager(894): Spurious death for ProcessRecord{dabc29 0:app.harc.zhp.delete2/u0a166}, curProc for 4979: null
add this in dependencies --
'compile 'com.android.support:multidex:1.0.1'
and also add below code in application class --
MultiDex.install(this);

NullPointer exception when resuming app on android

I am currently testing an app. This is the test case. Load the app and then go to google leader board. Then press home button and do some other tasks. Then come back to the app again by clicking on the app icon. When I do this I still see the previously loaded leaderboard. Afterwards if I click back button on the leaderboard to resume the app following exception occurs.
I have also listed the logcat output. I can't debug this to see whats null because dubug has been detached before this event. What can I do to solve this?
ava.lang.RuntimeException: Unable to start activity ComponentInfo{XXX: java.lang.NullPointerException
11-03 16:30:04.877: E/AndroidRuntime(619): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
u=0} from pid 13361
11-09 22:51:02.015 3677-3677/? D/ChimeraCfgMgr﹕ Loading module com.google.android.gms.games from APK com.google.android.play.games
11-09 22:51:02.019 3677-3677/? D/ChimeraModuleLdr﹕ Module APK com.google.android.play.games already loaded
11-09 22:51:02.105 3677-13641/? V/BaseAuthAsyncOperation﹕ All scopes had been granted in the past, skip access token fetching
11-09 22:51:02.160 3677-13641/? V/BaseAuthAsyncOperation﹕ access token request successful
11-09 22:51:02.187 249-283/? I/ActivityManager﹕ Displayed invalid entry.
11-09 22:51:09.750 249-943/? I/WindowState﹕ WIN DEATH: Window{41fda2b8 com.champ/com.champ.controllers.MainActivity paused=false}
11-09 22:51:09.750 249-494/? I/ActivityManager﹕ Process com.champ (pid 13361) has died.
11-09 22:51:13.836 3677-3677/? D/ChimeraCfgMgr﹕ Loading module com.google.android.gms.games from APK com.google.android.play.games
11-09 22:51:13.836 3677-3677/? D/ChimeraModuleLdr﹕ Module APK com.google.android.play.games already loaded
11-09 22:51:14.773 456-456/? D/dalvikvm﹕ WAIT_FOR_CONCURRENT_GC blocked 0ms
11-09 22:51:21.773 249-943/? D/dalvikvm﹕ GC_FOR_ALLOC freed 1448K, 17% free 19437K/23303K, paused 82ms, total 91ms
11-09 22:51:21.804 13789-13789/? D/dalvikvm﹕ Late-enabling CheckJNI
11-09 22:51:21.816 249-953/? I/ActivityManager﹕ Start proc com.champ for activity com.champ/.controllers.MainActivity: pid=13789 uid=10063 gids={1015, 1028, 3003}
11-09 22:51:25.586 249-835/? I/ActivityManager﹕ Process com.champ (pid 13789) has died.
11-09 22:51:25.590 249-835/? W/ActivityManager﹕ Force removing ActivityRecord{415b2150 com.champ/.controllers.ErrorActivity}: app died, no saved state
11-09 22:51:25.617 13857-13857/? D/dalvikvm﹕ Late-enabling CheckJNI
11-09 22:51:25.621 249-835/? I/ActivityManager﹕ Start proc com.champ for activity com.champ/.controllers.MainActivity: pid=13857 uid=10063 gids={1015, 1028, 3003}
11-09 22:51:25.687 249-953/? W/InputMethodManagerService﹕ Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#41db2610 attribute=null
Use try catch to get more info.
Did You save some Data in Application or Static Utils?
Because the page before You leader board is kill by System. When you back from Leader board,System rebuild it.
But some data become null.
In this case , you may use some data is null.
Simplely:
Add a check before you get data from Util.
public getA(){
if(a = null){a = b;}
return a;
}

Android - foreground Activity being killed when background system service scheduling restart by ActivityManager

I have a viewer application, implement with ImageView and ViewPager from Android Compatibility Package. For each page, I render some Bitmap and put them into ViewPager. It works fine, but sometimes the application just crashed without exception nor register dump. I noticed that, normally, the application didn't crash, just log many GC messages. But when system ActivityManager start to schedule restart some background system Service, the application get a big chance to crash when switching between pages.
I searched some questions, but they are about Service being killed because of low memory, restart failed because of state inconsistency, or something. But in my case, It's foreground Activity being killed, just because some system Services were scheduled restart. How could a foreground Activity being killed "by background Service"?
Although in log, the Services seem to restart failed because of low memory, but my Activity just being killed without OutOfMemoryError. I can't figure out what is the real problem caused my application being killed...
PS. If I don't switch between pages, the application lives, but system is scheduling restart Services repeatedly. In this situation, the application is easy to crash when switching between pages.
PS2. device is: ASUS Transformer TF101, Android 3.2, Kernel version: 2.6.36.3-00003-g9baf8f7
Here is the log, mycompany.viewer.MagazineActivity is the main Activity:
10-21 15:18:47.260: INFO/ActivityManager(135): Process com.google.android.apps.maps:NetworkLocationService (pid 14583) has died.
10-21 15:18:47.260: WARN/ActivityManager(135): Scheduling restart of crashed service com.google.android.apps.maps/com.google.android.location.internal.server.NetworkLocationService in 56367ms
10-21 15:18:47.260: INFO/ActivityManager(135): Low Memory: No more background processes.
10-21 15:18:47.360: INFO/ActivityManager(135): Process com.google.android.music (pid 14500) has died.
10-21 15:18:47.360: WARN/ActivityManager(135): Scheduling restart of crashed service com.google.android.music/.dl.DownloadManager$DownloadManagerService in 66267ms
10-21 15:18:47.360: INFO/ActivityManager(135): Low Memory: No more background processes.
10-21 15:18:47.560: INFO/ActivityManager(135): Process android.process.media (pid 14482) has died.
10-21 15:18:47.560: WARN/ActivityManager(135): Scheduling restart of crashed service com.android.providers.media/.MtpService in 76067ms
10-21 15:18:47.560: INFO/ActivityManager(135): Low Memory: No more background processes.
10-21 15:18:47.660: INFO/ActivityManager(135): Process net.smart.appstore.client (pid 14610) has died.
10-21 15:18:47.660: WARN/ActivityManager(135): Scheduling restart of crashed service net.smart.appstore.client/.service.LogSenderService in 85969ms
10-21 15:18:47.660: INFO/ActivityManager(135): Low Memory: No more background processes.
10-21 15:18:47.760: INFO/ActivityManager(135): Process com.asus.keyboard (pid 14617) has died.
10-21 15:18:47.760: WARN/ActivityManager(135): Scheduling restart of crashed service com.asus.keyboard/.KeyboardService in 95868ms
10-21 15:18:47.760: INFO/ActivityManager(135): Low Memory: No more background processes.
10-21 15:18:47.830: INFO/ActivityManager(135): Process com.asus.DLNA (pid 14634) has died.
10-21 15:18:47.830: WARN/ActivityManager(135): Scheduling restart of crashed service com.asus.DLNA/.MusicPlaybackService in 105803ms
10-21 15:18:47.830: INFO/ActivityManager(135): Low Memory: No more background processes.
10-21 15:18:48.230: DEBUG/dalvikvm(14526): GC_FOR_ALLOC freed 431K, 31% free 19826K/28615K, paused 23ms
10-21 15:18:52.480: DEBUG/dalvikvm(14526): GC_CONCURRENT freed 1293K, 29% free 20566K/28615K, paused 2ms+3ms
10-21 15:18:52.840: DEBUG/skia(14526): purging 213K from font cache [14 entries]
10-21 15:18:52.870: DEBUG/dalvikvm(14526): GC_EXPLICIT freed 378K, 30% free 20189K/28615K, paused 2ms+3ms
10-21 15:18:53.640: INFO/ActivityManager(135): Start proc com.asus.DLNA for service com.asus.DLNA/com.asus.DMS.DLNAServerService: pid=14642 uid=10054 gids={3003, 1015}
10-21 15:18:53.690: INFO/DMS(14642): ===========================> onCreate()
10-21 15:18:54.040: INFO/ActivityManager(135): Process com.asus.DLNA (pid 14642) has died.
10-21 15:18:54.040: WARN/ActivityManager(135): Scheduling restart of crashed service com.asus.DLNA/com.asus.DMS.DLNAServerService in 137364ms
10-21 15:18:54.040: INFO/ActivityManager(135): Low Memory: No more background processes.
10-21 15:18:54.770: INFO/ActivityManager(135): Process com.google.process.gapps (pid 25767) has died.
10-21 15:18:54.770: WARN/ActivityManager(135): Scheduling restart of crashed service com.google.android.gsf/.gtalkservice.service.GTalkService in 108858ms
10-21 15:18:54.770: WARN/ActivityManager(135): Scheduling restart of crashed service com.google.android.location/.NetworkLocationService in 118858ms
10-21 15:18:54.780: DEBUG/LocationProviderProxy(135): LocationProviderProxy.onServiceDisconnected ComponentInfo{com.google.android.location/com.google.android.location.NetworkLocationService}
10-21 15:18:54.780: DEBUG/GeocoderProxy(135): onServiceDisconnected ComponentInfo{com.google.android.location/com.google.android.location.NetworkLocationService}
10-21 15:18:54.780: INFO/ActivityManager(135): Low Memory: No more background processes.
10-21 15:18:55.430: ERROR/InputDispatcher(135): channel '4110db70 mycompany.viewer/mycompany.viewer.MagazineActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x8
10-21 15:18:55.430: ERROR/InputDispatcher(135): channel '4110db70 mycompany.viewer/mycompany.viewer.MagazineActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
10-21 15:18:55.430: INFO/ActivityManager(135): Process mycompany.viewer (pid 14526) has died.
10-21 15:18:55.440: INFO/WindowManager(135): WIN DEATH: Window{4110db70 mycompany.viewer/mycompany.viewer.MagazineActivity paused=false}
10-21 15:18:55.440: INFO/WindowManager(135): WINDOW DIED Window{4110db70 mycompany.viewer/mycompany.viewer.MagazineActivity paused=false}
10-21 15:18:55.470: INFO/ActivityManager(135): Start proc com.android.launcher for activity com.android.launcher/com.android.launcher2.Launcher: pid=14649 uid=10037 gids={}
10-21 15:18:55.470: INFO/ActivityManager(135): Low Memory: No more background processes.
10-21 15:18:55.660: DEBUG/dalvikvm(135): GC_EXPLICIT freed 875K, 22% free 26097K/33415K, paused 29ms+15ms
10-21 15:18:55.670: DEBUG/WindowManager(135): adjustConfigurationLw, config:{1.0 0mcc0mnc (no locale) sw800dp w1280dp h752dp xlrg land ?uimode ?night finger -keyb/v/h -nav/v} mLidOpen:-1 mHasDockFeature:true mHasHallSensorFeature:true config.hardKeyboardHidden:2
10-21 15:18:55.710: INFO/ActivityThread(14649): Pub com.android.launcher2.settings: com.android.launcher2.LauncherProvider
10-21 15:18:56.250: DEBUG/dalvikvm(14649): GC_FOR_ALLOC freed 132K, 4% free 6513K/6727K, paused 34ms
10-21 15:18:56.350: DEBUG/dalvikvm(14649): GC_CONCURRENT freed 40K, 2% free 6953K/7047K, paused 2ms+2ms
10-21 15:18:56.870: INFO/ActivityManager(135): Start proc com.asus.mygazine for broadcast com.asus.mygazine/.UtilsReceiver: pid=14659 uid=10027 gids={1015}
10-21 15:18:56.910: DEBUG/TabletStatusBar(186): lights on
10-21 15:18:56.940: DEBUG/dalvikvm(14649): GC_CONCURRENT freed 197K, 4% free 7231K/7495K, paused 6ms+2ms
10-21 15:18:56.960: DEBUG/dalvikvm(87): GC_EXPLICIT freed 11K, 5% free 6298K/6595K, paused 3ms+2ms
10-21 15:18:56.980: DEBUG/libEGL(14649): loaded /system/lib/egl/libGLES_android.so
10-21 15:18:57.000: DEBUG/dalvikvm(87): GC_EXPLICIT freed <1K, 5% free 6298K/6595K, paused 2ms+2ms
10-21 15:18:57.030: DEBUG/dalvikvm(87): GC_EXPLICIT freed <1K, 5% free 6298K/6595K, paused 2ms+3ms
10-21 15:18:57.060: DEBUG/libEGL(14649): loaded /system/lib/egl/libEGL_tegra.so
10-21 15:18:57.160: DEBUG/libEGL(14649): loaded /system/lib/egl/libGLESv1_CM_tegra.so
10-21 15:18:57.190: DEBUG/libEGL(14649): loaded /system/lib/egl/libGLESv2_tegra.so
10-21 15:18:57.240: DEBUG/OpenGLRenderer(14649): Creating OpenGL renderer caches
10-21 15:18:57.250: DEBUG/OpenGLRenderer(14649): Enabling debug mode 0
10-21 15:18:57.250: DEBUG/OpenGLRenderer(14649): Layers will be composited as regions
10-21 15:18:57.250: DEBUG/dalvikvm(14649): GC_CONCURRENT freed 252K, 5% free 7430K/7815K, paused 3ms+2ms
10-21 15:18:57.260: INFO/TextType(212): TextType = 0x0
10-21 15:18:57.260: WARN/InputManagerService(135): Got RemoteException sending setActive(false) notification to pid 14526 uid 10065
PS3. some other log to describe the crash progress
After crash, those background services can start:
10-24 14:06:00.099: INFO/ActivityManager(135): Start proc com.asus.DLNA for service com.asus.DLNA/com.asus.DMS.DLNAServerService: pid=6482 uid=10054 gids={3003, 1015}
10-24 14:06:44.319: INFO/ActivityManager(135): Start proc com.android.bluetooth for service com.android.bluetooth/.pbap.BluetoothPbapService: pid=6495 uid=10061 gids={3003, 3002, 3001, 1015}
10-24 14:06:44.359: INFO/ActivityThread(6495): Pub com.android.bluetooth.opp: com.android.bluetooth.opp.BluetoothOppProvider
10-24 14:07:04.319: INFO/ActivityManager(135): Start proc com.rechild.advancedtaskkiller for service com.rechild.advancedtaskkiller/.BackService: pid=6502 uid=10077 gids={1007, 3003, 1015}
10-24 14:07:14.849: INFO/ActivityManager(135): Start proc android.process.acore for content provider com.android.providers.contacts/.ContactsProvider2: pid=6512 uid=10009 gids={3003, 1015}
10-24 14:07:14.889: INFO/ActivityThread(6512): Pub user_dictionary: com.android.providers.userdictionary.UserDictionaryProvider
10-24 14:07:14.899: INFO/ActivityThread(6512): Pub com.android.social: com.android.providers.contacts.SocialProvider
10-24 14:07:14.919: INFO/ActivityThread(6512): Pub applications: com.android.providers.applications.ApplicationsProvider
10-24 14:07:14.949: INFO/ActivityThread(6512): Pub contacts;com.android.contacts: com.android.providers.contacts.ContactsProvider2
10-24 14:07:14.959: INFO/ActivityThread(6512): Pub call_log: com.android.providers.contacts.CallLogProvider
Open the viewer again, load some pages, background services begin to die,
10-24 14:08:22.269: INFO/ActivityManager(135): Process android.process.media (pid 6422) has died.
10-24 14:08:22.329: INFO/ActivityManager(135): Process com.asus.mygazine (pid 6385) has died.
10-24 14:08:22.429: INFO/ActivityManager(135): Process com.google.android.apps.maps:FriendService (pid 6460) has died.
10-24 14:08:22.529: INFO/ActivityManager(135): Process android.process.acore (pid 6512) has died.
10-24 14:08:22.539: INFO/ActivityManager(135): Low Memory: No more background processes.
10-24 14:08:33.839: INFO/ActivityManager(135): Process com.android.launcher (pid 6375) has died.
10-24 14:08:33.839: INFO/WindowManager(135): WIN DEATH: Window{40e07160 com.android.launcher/com.android.launcher2.Launcher paused=false}
10-24 14:08:33.839: INFO/ActivityManager(135): Low Memory: No more background processes.
and scheduling restart.
10-24 14:08:51.279: INFO/ActivityManager(135): Process com.google.android.music (pid 6398) has died.
10-24 14:08:51.279: WARN/ActivityManager(135): Scheduling restart of crashed service com.google.android.music/.dl.DownloadManager$DownloadManagerService in 5000ms
10-24 14:08:51.279: INFO/ActivityManager(135): Low Memory: No more background processes.
10-24 14:08:51.369: INFO/ActivityManager(135): Process com.google.android.apps.maps:NetworkLocationService (pid 6452) has died.
10-24 14:08:51.369: WARN/ActivityManager(135): Scheduling restart of crashed service com.google.android.apps.maps/com.google.android.location.internal.server.NetworkLocationService in 14904ms
10-24 14:08:51.369: INFO/ActivityManager(135): Low Memory: No more background processes.
10-24 14:08:51.469: INFO/ActivityManager(135): Process com.android.bluetooth (pid 6495) has died.
10-24 14:08:51.469: WARN/ActivityManager(135): Scheduling restart of crashed service com.android.bluetooth/.pbap.BluetoothPbapService in 24806ms
10-24 14:08:51.469: INFO/ActivityManager(135): Low Memory: No more background processes.
10-24 14:08:51.569: INFO/ActivityManager(135): Process com.asus.DLNA (pid 6482) has died.
10-24 14:08:51.569: WARN/ActivityManager(135): Scheduling restart of crashed service com.asus.DLNA/.MusicPlaybackService in 34707ms
10-24 14:08:51.569: WARN/ActivityManager(135): Scheduling restart of crashed service com.asus.DLNA/com.asus.DMS.DLNAServerService in 44707ms
10-24 14:08:51.569: INFO/ActivityManager(135): Low Memory: No more background processes.
10-24 14:08:51.669: INFO/ActivityManager(135): Process com.rechild.advancedtaskkiller (pid 6502) has died.
10-24 14:08:51.669: WARN/ActivityManager(135): Scheduling restart of crashed service com.rechild.advancedtaskkiller/.BackService in 54607ms
10-24 14:08:51.669: INFO/ActivityManager(135): Low Memory: No more background processes.
10-24 14:08:56.299: INFO/ActivityManager(135): Start proc com.google.android.music for service com.google.android.music/.dl.DownloadManager$DownloadManagerService: pid=6528 uid=10029 gids={3003, 1015}
10-24 14:08:56.409: INFO/ActivityThread(6528): Pub com.google.android.music.MusicContent: com.google.android.music.store.MusicContentProvider
10-24 14:08:56.439: INFO/MusicStore(6528): Database version: 31
10-24 14:08:56.439: WARN/AndroidMusic(6528): Need to wait for MusicPreferences to be created
10-24 14:08:56.639: WARN/AndroidMusic(6528): MusicPreferences still not made, creating on UI thread
Sometimes, some of them would start successfully.
10-24 14:09:16.299: INFO/ActivityManager(135): Start proc com.android.bluetooth for service com.android.bluetooth/.pbap.BluetoothPbapService: pid=6580 uid=10061 gids={3003, 3002, 3001, 1015}
10-24 14:09:16.329: INFO/ActivityThread(6580): Pub com.android.bluetooth.opp: com.android.bluetooth.opp.BluetoothOppProvider
10-24 14:09:26.309: INFO/ActivityManager(135): Start proc com.asus.DLNA for service com.asus.DLNA/.MusicPlaybackService: pid=6588 uid=10054 gids={3003, 1015}
10-24 14:09:36.289: INFO/DMS(6588): ===========================> onCreate()
10-24 14:09:46.299: INFO/ActivityManager(135): Start proc com.rechild.advancedtaskkiller for service com.rechild.advancedtaskkiller/.BackService: pid=6595 uid=10077 gids={1007, 3003, 1015}
10-24 14:09:56.299: INFO/ActivityManager(135): Start proc com.google.android.music for service com.google.android.music/.dl.DownloadManager$DownloadManagerService: pid=6602 uid=10029 gids={3003, 1015}
10-24 14:09:56.419: INFO/ActivityThread(6602): Pub com.google.android.music.MusicContent: com.google.android.music.store.MusicContentProvider
10-24 14:09:56.439: DEBUG/dalvikvm(6602): GC_CONCURRENT freed 165K, 4% free 6637K/6855K, paused 2ms+2ms
10-24 14:09:56.449: INFO/MusicStore(6602): Database version: 31
10-24 14:09:56.459: WARN/AndroidMusic(6602): Need to wait for MusicPreferences to be created
10-24 14:09:56.659: WARN/AndroidMusic(6602): MusicPreferences still not made, creating on UI thread
10-24 14:09:56.699: DEBUG/MusicPreferences(6602): New Active account: null
10-24 14:09:56.709: INFO/ActivityManager(135): Start proc android.process.media for content provider com.android.providers.media/.MediaProvider: pid=6616 uid=10031 gids={1015, 1023, 1024, 2001, 3003}
10-24 14:09:56.719: DEBUG/MusicStore(6602): Disabled WAL
10-24 14:09:56.719: DEBUG/MusicStore(6602): Database opened
10-24 14:09:56.739: INFO/ActivityThread(6616): Pub media: com.android.providers.media.MediaProvider
10-24 14:09:56.739: INFO/ActivityManager(135): Process com.google.android.apps.maps:NetworkLocationService (pid 6558) has died.
10-24 14:09:56.749: WARN/ActivityManager(135): Scheduling restart of crashed service com.google.android.apps.maps/com.google.android.location.internal.server.NetworkLocationService in 5000ms
10-24 14:09:56.749: INFO/ActivityManager(135): Low Memory: No more background processes.
10-24 14:09:57.099: INFO/MediaProvider(6616): Update ID=1, mount=/system, isMounted=1, VID = -1
10-24 14:09:57.139: INFO/MediaProvider(6616): Update ID=2, mount=/data, isMounted=1, VID = -1
10-24 14:09:57.509: INFO/MediaProvider(6616): Update ID=1, mount=/mnt/sdcard, isMounted=1, VID = -1
10-24 14:09:57.529: INFO/ActivityThread(6616): Pub downloads: com.android.providers.downloads.DownloadProvider
10-24 14:09:57.539: INFO/ActivityThread(6616): Pub drm: com.android.providers.drm.DrmProvider
Then the system begins to scheduling restart, success some, failed some, repeatedly. Btw, com.google.android.music/.dl.DownloadManager$DownloadManagerService and com.google.android.apps.maps/com.google.android.location.internal.server.NetworkLocationService always failed to restart.
Log looks like mix of "Scheduling restart...", "Start proc...", "GC ..."
If I switch between pages, more Services are killed, system still scheduling restart repeatedly.
10-24 14:11:04.619: INFO/ActivityManager(135): Process com.android.bluetooth (pid 6763) has died.
10-24 14:11:04.619: WARN/ActivityManager(135): Scheduling restart of crashed service com.android.bluetooth/.pbap.BluetoothPbapService in 77800ms
10-24 14:11:04.619: INFO/ActivityManager(135): Low Memory: No more background processes.
10-24 14:11:04.729: INFO/ActivityManager(135): Process com.asus.DLNA (pid 6588) has died.
10-24 14:11:04.729: WARN/ActivityManager(135): Scheduling restart of crashed service com.asus.DLNA/com.asus.DMS.DLNAServerService in 22273ms
10-24 14:11:04.729: WARN/ActivityManager(135): Scheduling restart of crashed service com.asus.DLNA/.MusicPlaybackService in 32273ms
10-24 14:11:04.729: INFO/ActivityManager(135): Low Memory: No more background processes.
10-24 14:11:04.849: INFO/ActivityManager(135): Process com.rechild.advancedtaskkiller (pid 6595) has died.
10-24 14:11:04.849: WARN/ActivityManager(135): Scheduling restart of crashed service com.rechild.advancedtaskkiller/.BackService in 42147ms
10-24 14:11:04.849: INFO/ActivityManager(135): Low Memory: No more background processes.
10-24 14:11:05.959: INFO/ActivityManager(135): Process com.google.process.gapps (pid 6410) has died.
10-24 14:11:05.959: WARN/ActivityManager(135): Scheduling restart of crashed service com.google.android.gsf/.gtalkservice.service.GTalkService in 51042ms
10-24 14:11:05.959: DEBUG/LocationProviderProxy(135): LocationProviderProxy.onServiceDisconnected ComponentInfo{com.google.android.location/com.google.android.location.NetworkLocationService}
10-24 14:11:05.959: DEBUG/GeocoderProxy(135): onServiceDisconnected ComponentInfo{com.google.android.location/com.google.android.location.NetworkLocationService}
10-24 14:11:05.959: WARN/ActivityManager(135): Scheduling restart of crashed service com.google.android.location/.NetworkLocationService in 61042ms
10-24 14:11:05.959: INFO/ActivityManager(135): Low Memory: No more background processes.
10-24 14:11:06.079: DEBUG/dalvikvm(6438): GC_FOR_ALLOC freed 431K, 27% free 21267K/28871K, paused 23ms
10-24 14:11:07.009: INFO/ActivityManager(135): Start proc com.google.android.music for service com.google.android.music/.dl.DownloadManager$DownloadManagerService: pid=6771 uid=10029 gids={3003, 1015}
10-24 14:11:07.129: INFO/ActivityThread(6771): Pub com.google.android.music.MusicContent: com.google.android.music.store.MusicContentProvider
10-24 14:11:07.149: DEBUG/dalvikvm(6771): GC_CONCURRENT freed 145K, 2% free 6739K/6855K, paused 8ms+2ms
10-24 14:11:07.149: INFO/MusicStore(6771): Database version: 31
10-24 14:11:07.159: WARN/AndroidMusic(6771): Need to wait for MusicPreferences to be created
10-24 14:11:07.229: DEBUG/dalvikvm(6438): GC_CONCURRENT freed 1293K, 24% free 22006K/28871K, paused 2ms+4ms
10-24 14:11:07.359: WARN/AndroidMusic(6771): MusicPreferences still not made, creating on UI thread
10-24 14:11:07.369: INFO/ActivityManager(135): Start proc com.google.process.gapps for content provider com.google.android.gsf/.gservices.GservicesProvider: pid=6783 uid=10025 gids={3003, 1015, 2001, 1007}
10-24 14:11:07.419: INFO/ActivityThread(6783): Pub com.google.settings: com.google.android.gsf.settings.GoogleSettingsProvider
10-24 14:11:07.419: INFO/ActivityThread(6783): Pub subscribedfeeds: com.google.android.gsf.subscribedfeeds.SubscribedFeedsProvider
10-24 14:11:07.439: INFO/ActivityThread(6783): Pub com.google.contacts.gal.provider: com.google.android.syncadapters.contacts.GalProvider
10-24 14:11:07.449: INFO/ActivityThread(6783): Pub com.google.android.gsf.gservices: com.google.android.gsf.gservices.GservicesProvider
10-24 14:11:07.449: INFO/GservicesProvider(6783): Gservices pushing to system: true; secure: true
10-24 14:11:07.449: INFO/ActivityThread(6783): Pub com.google.android.providers.talk: com.google.android.gsf.talk.TalkProvider
Switching some more pages, finally, the application crashed, as the top most log.

Categories

Resources