Activity com.uber.sdk.android.core.auth.LoginActivity has leaked ServiceConnection
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 293
- Forks
- 132
- PR merge metrics
- No merged PRs in 30d
Description
com.onusrides.onus.dev E/ActivityThread: Activity com.uber.sdk.android.core.auth.LoginActivity has leaked ServiceConnection com.uber.sdk.android.core.utils.CustomTabsHelper$1@138a1c2 that was originally bound here
android.app.ServiceConnectionLeaked: Activity com.uber.sdk.android.core.auth.LoginActivity has leaked ServiceConnection com.uber.sdk.android.core.utils.CustomTabsHelper$1@138a1c2 that was originally bound here
at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:1336)
at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:1231)
at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1478)
at android.app.ContextImpl.bindService(ContextImpl.java:1450)
at android.content.ContextWrapper.bindService(ContextWrapper.java:636)
at androidx.browser.customtabs.CustomTabsClient.bindCustomTabsService(CustomTabsClient.java:73)
at com.uber.sdk.android.core.utils.CustomTabsHelper.openCustomTab(CustomTabsHelper.java:84)
at com.uber.sdk.android.core.auth.LoginActivity.loadChrometab(LoginActivity.java:281)
at com.uber.sdk.android.core.auth.LoginActivity.loadWebPage(LoginActivity.java:244)
at com.uber.sdk.android.core.auth.LoginActivity.loadUrl(LoginActivity.java:230)
at com.uber.sdk.android.core.auth.LoginActivity.init(LoginActivity.java:198)
at com.uber.sdk.android.core.auth.LoginActivity.onCreate(LoginActivity.java:169)
at android.app.Activity.performCreate(Activity.java:6672)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1140)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2612)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2724)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1473)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6123)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at CustomTabsHelper.openCustomTab(CustomTabsHelper.java:84) and follow its call from LoginActivity.loadChrometab(LoginActivity.java:281). Review the binding lifecycle through LoginActivity.onCreate and determine how the connection is released when the activity ends. Done means reproducing the flow without the ServiceConnectionLeaked error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100