i have a service in second process.  I use it as a aidl Server. normally 
the program run well

but lately i found a really unexplainable question.

i try to kill my App serveral times. after a few times(about 5-10)。I get 
this error below


06-16 01:49:44.433 528-694/system_process I/ActivityManager: Killing 
31591:com.nd.smartcan.appfactory.imapp/u0a58 (adj 16): remove task
06-16 01:49:44.441 528-694/system_process I/ActivityManager: Killing 
31574:com.nd.smartcan.appfactory.imapp:coreService/u0a58 (adj 5): remove 
task
*06-16 01:49:44.465 528-696/system_process W/ActivityManager: Exception 
when unbinding service 
com.nd.smartcan.appfactory.imapp/com.nd.sdp.core.CoreService*
*                                                            
 android.os.DeadObjectException*
                                                                 at 
android.os.BinderProxy.transact(Native Method)
                                                                 at 
android.app.ApplicationThreadProxy.scheduleUnbindService(ApplicationThreadNative.java:874)
                                                                 at 
com.android.server.am.ActiveServices.removeConnectionLocked(ActiveServices.java:1713)
                                                                 at 
com.android.server.am.ActiveServices.killServicesLocked(ActiveServices.java:2061)
                                                                 at 
com.android.server.am.ActivityManagerService.cleanUpApplicationRecordLocked(ActivityManagerService.java:12427)
                                                                 at 
com.android.server.am.ActivityManagerService.handleAppDiedLocked(ActivityManagerService.java:3606)
                                                                 at 
com.android.server.am.ActivityManagerService.appDiedLocked(ActivityManagerService.java:3751)
                                                                 at 
com.android.server.am.ActivityManagerService$AppDeathRecipient.binderDied(ActivityManagerService.java:1026)
                                                                 at 
android.os.BinderProxy.sendDeathNotice(Binder.java:493)
                                                                 at 
dalvik.system.NativeStart.run(Native Method)
06-16 01:49:44.465 528-696/system_process W/ActivityManager: Scheduling 
restart of crashed service 
com.nd.smartcan.appfactory.imapp/com.erp.android.service.ERPMobileService 
in 180142080ms
06-16 01:49:44.465 528-696/system_process W/ActivityManager: Scheduling 
restart of crashed service 
com.nd.smartcan.appfactory.imapp/nd.sdp.android.im.notifyservice.NotifyService 
in 1000ms


and i would never ever bind  or start this remote service again. the only 
way to bring it back is to clean the data then restart.


the weird thing is the problem no gona show very offten. you must repeat 
killing and restart it , then sometime, the service just dead forever.

i googled a few hours, but doesn't get any usefull answer. could someone 
give me a explaination why this error happens, and how can i avoid this 
Error.

from the callstack, i presume that when system clean aidl service, need to 
check some condition. like the remote service exist or not. but before this 
Erorr happens , i saw the Service has been connected

see logs below


06-16 01:49:41.165 31591-31620/com.nd.smartcan.appfactory.imapp D/DOE: 
bindCoreService
06-16 01:49:41.165 31574-31574/com.nd.smartcan.appfactory.imapp:coreService 
D/CoreService: 
Processor:com.nd.sdp.im.transportlayer.crossprocess.operation.processor.StartIMProcessor@527efd58
 
Code:10001
06-16 01:49:41.165 31574-31574/com.nd.smartcan.appfactory.imapp:coreService 
D/TOKEN: uid:2107153584 
accessToken:3A7E8A5D8468658113F964B41B919F1E6A8033D7025294362571E8F606B366B8C2EAEE32520BFA87
 
loginTime:18340 currentTime:1466044904174 macKey:lTULPLqo53 encrypt:false
06-16 01:49:41.165 31574-31574/com.nd.smartcan.appfactory.imapp:coreService 
E/Trantor: startIM From Up layer, userid:2107153584
06-16 01:49:41.169 31591-31591/com.nd.smartcan.appfactory.imapp 
W/ComponentManager: triggerEvent not find the have register component the 
event is appfactory_data_analytics_event
06-16 01:49:41.169 31591-31591/com.nd.smartcan.appfactory.imapp 
W/ComponentManager: triggerEvent not find the have register component the 
event is appfactory_data_analytics_event
06-16 01:49:41.169 31591-31591/com.nd.smartcan.appfactory.imapp 
W/appPerformance:  end MainContainerActivity  onResume 
06-16 01:49:41.193 31591-31743/com.nd.smartcan.appfactory.imapp 
D/ColumnUtils.getColumnGetMethod(L:68): getETag not exist
06-16 01:49:41.193 31591-31743/com.nd.smartcan.appfactory.imapp 
D/ColumnUtils.getColumnSetMethod(L:89): setETag not exist
*06-16 01:49:41.197 31591-31591/com.nd.smartcan.appfactory.imapp 
E/CoreService: onServiceConnected*


So. why this error happened????

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/94a39c22-dada-4556-912b-ed5e40d5a312%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to