Signal-Android icon indicating copy to clipboard operation
Signal-Android copied to clipboard

has leaked ServiceConnection Exception - relevant?

Open McLoo opened this issue 12 years ago • 2 comments

While playing with themes I reproducibly encounter the exception after changing themes in settings and returning to the conversation list. (latest master branch - no modifications) This happens on the Emulator (4.4.2) and Android x86 in a VM but not on my CM11 phone (at least it is not logged there) Nothing bad is happening in the UI but exceptions always make me nervous...

W/ConversationListActivity( 1699): onDestroy...
E/ActivityThread( 1699): Activity org.thoughtcrime.securesms.ConversationListActivity has leaked ServiceConnection org.thoughtcrime.securesms.PassphraseRequiredMixin$KeyCachingServiceConnection@b3ff2b48 that was originally bound here
E/ActivityThread( 1699): android.app.ServiceConnectionLeaked: Activity org.thoughtcrime.securesms.ConversationListActivity has leaked ServiceConnection org.thoughtcrime.securesms.PassphraseRequiredMixin$KeyCachingServiceConnection@b3ff2b48 that was originally bound here
E/ActivityThread( 1699):    at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:979)
E/ActivityThread( 1699):    at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:873)
E/ActivityThread( 1699):    at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1561)
E/ActivityThread( 1699):    at android.app.ContextImpl.bindService(ContextImpl.java:1544)
E/ActivityThread( 1699):    at android.content.ContextWrapper.bindService(ContextWrapper.java:517)
E/ActivityThread( 1699):    at org.thoughtcrime.securesms.PassphraseRequiredMixin.initializeServiceConnection(PassphraseRequiredMixin.java:72)
E/ActivityThread( 1699):    at org.thoughtcrime.securesms.PassphraseRequiredMixin.onResume(PassphraseRequiredMixin.java:27)
E/ActivityThread( 1699):    at org.thoughtcrime.securesms.PassphraseRequiredSherlockFragmentActivity.onResume(PassphraseRequiredSherlockFragmentActivity.java:22)
E/ActivityThread( 1699):    at org.thoughtcrime.securesms.ConversationListActivity.onResume(ConversationListActivity.java:85)
E/ActivityThread( 1699):    at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1192)
E/ActivityThread( 1699):    at android.app.Activity.performResume(Activity.java:5310)
E/ActivityThread( 1699):    at android.app.ActivityThread.performNewIntents(ActivityThread.java:2329)
E/ActivityThread( 1699):    at android.app.ActivityThread.handleNewIntent(ActivityThread.java:2336)
E/ActivityThread( 1699):    at android.app.ActivityThread.access$1600(ActivityThread.java:135)
E/ActivityThread( 1699):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1267)
E/ActivityThread( 1699):    at android.os.Handler.dispatchMessage(Handler.java:102)
E/ActivityThread( 1699):    at android.os.Looper.loop(Looper.java:136)
E/ActivityThread( 1699):    at android.app.ActivityThread.main(ActivityThread.java:5017)
E/ActivityThread( 1699):    at java.lang.reflect.Method.invokeNative(Native Method)
E/ActivityThread( 1699):    at java.lang.reflect.Method.invoke(Method.java:515)
E/ActivityThread( 1699):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
E/ActivityThread( 1699):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
E/ActivityThread( 1699):    at dalvik.system.NativeStart.main(Native Method)

McLoo avatar Apr 04 '14 05:04 McLoo

I was able to reproduce this. It also happens when you change the language preference. I am going to submit a fix for it soon.

patheticpat avatar Apr 08 '14 14:04 patheticpat

i like soons that only take 20 minutes :-) nice fix - thanks!

McLoo avatar Apr 08 '14 15:04 McLoo