2
我向應用程序添加了幾個按鈕,並再次運行它,並在完成一次運行後崩潰。我不知道是什麼帶來了它有關,但是這是在調試模式下出現以下錯誤:由於「ServiceConnectionLeaked」導致應用程序崩潰
06-20 23:21:59.656 2323-2323/com.android.email E/ActivityThread﹕ Service com.android.email.service.EmailBroadcastProcessorService has leaked ServiceConnection [email protected]d40e8 that was originally bound here
android.app.ServiceConnectionLeaked: Service com.android.email.service.EmailBroadcastProcessorService has leaked ServiceConnection [email protected]d40e8 that was originally bound here
at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:1077)
at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:971)
at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1774)
at android.app.ContextImpl.bindService(ContextImpl.java:1757)
at android.content.ContextWrapper.bindService(ContextWrapper.java:539)
at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:181)
at com.android.emailcommon.service.ServiceProxy.test(ServiceProxy.java:224)
at com.android.email.service.EmailServiceUtils.isServiceAvailable(EmailServiceUtils.java:160)
at com.android.email.provider.AccountReconciler.reconcileAccountsInternal(AccountReconciler.java:171)
at com.android.email.provider.AccountReconciler.reconcileAccounts(AccountReconciler.java:115)
at com.android.email.service.EmailBroadcastProcessorService.reconcileAndStartServices(EmailBroadcastProcessorService.java:305)
at com.android.email.service.EmailBroadcastProcessorService.onBootCompleted(EmailBroadcastProcessorService.java:295)
at com.android.email.service.EmailBroadcastProcessorService.onHandleIntent(EmailBroadcastProcessorService.java:130)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)
所以我點擊第一LoadedApk(我沒有修改) ,這是我看到
代碼 ServiceDispatcher(ServiceConnection conn,
Context context, Handler activityThread, int flags) {
mIServiceConnection = new InnerConnection(this);
mConnection = conn;
mContext = context;
mActivityThread = activityThread;
mLocation = new ServiceConnectionLeaked(null);
mLocation.fillInStackTrace();
mFlags = flags;
}
閱讀後,我懷疑它可能是一個記憶問題,但我不太確定。在內存中時,通常分配〜22mb,空閒〜1mb。
這不是崩潰。再次檢查您的日誌。 – EE66