Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net.openid.appauth.browser.CustomTabManager.getClient ANR triggered by main thread waiting for too long #1016

Open
5 of 6 tasks
MohsenAKareem opened this issue Oct 23, 2023 · 0 comments
Labels

Comments

@MohsenAKareem
Copy link

MohsenAKareem commented Oct 23, 2023

Checklist:

  • I am using the latest release
  • I searched for existing GitHub issues
  • I read the documentation
  • I verified the client configuration matches the information in the identity provider (or I am using dynamic client registration)
  • I am either using a custom URI scheme or https with App Links for client redirect.
  • I can reproduce the issue in the demo app (optional)

Configuration

  • Version: 0.11.1
  • Integration: (native(Java/Kotlin))
  • Identity provider: (Google, Okta, Gluu, Auth0, KeyCloack, etc)

Issue Description

net.openid.appauth.browser.CustomTabManager.getClient
ANR triggered by main thread waiting for too long

main (timed waiting):tid=1 systid=18973
at sun.misc.Unsafe.park(Native method)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:230)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1063)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1358)
at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:278)
at net.openid.appauth.browser.CustomTabManager.getClient(CustomTabManager.java:13)
at net.openid.appauth.browser.CustomTabManager.createSession(CustomTabManager.java:13)
at net.openid.appauth.browser.CustomTabManager.createTabBuilder(CustomTabManager.java:13)
at net.openid.appauth.AuthorizationService.createCustomTabsIntentBuilder(AuthorizationService.java:13)
at net.openid.appauth.AuthorizationService.getEndSessionRequestIntent(AuthorizationService.java:119)
at sa.org.monshaat.di.module.AuthModule.provideEndSessionIntent(AuthModule.java:119)
at sa.org.monshaat.di.component.DaggerAppComponent$AppComponentImpl.namedIntent(DaggerAppComponent.java:119)
at sa.org.monshaat.di.component.DaggerAppComponent$SAFBM_CWIF_WizardIntroFragmentSubcomponentImpl.injectWizardIntroFragment(DaggerAppComponent.java:59)
at sa.org.monshaat.di.component.DaggerAppComponent$SAFBM_CWIF_WizardIntroFragmentSubcomponentImpl.inject(DaggerAppComponent.java:59)
at sa.org.monshaat.di.component.DaggerAppComponent$SAFBM_CWIF_WizardIntroFragmentSubcomponentImpl.inject(DaggerAppComponent.java:59)
at dagger.android.DispatchingAndroidInjector.maybeInject(DispatchingAndroidInjector.java:43)
at dagger.android.DispatchingAndroidInjector.inject(DispatchingAndroidInjector.java:43)
at dagger.android.support.AndroidSupportInjection.inject(AndroidSupportInjection.java:111)
at dagger.android.support.AndroidSupportInjection.inject(AndroidSupportInjection.java:111)
at sa.org.monshaat.utils.MyLifecycleHandler$handleActivity$1.onFragmentAttached(MyLifecycleHandler.java:111)
at androidx.fragment.app.FragmentLifecycleCallbacksDispatcher.dispatchOnFragmentAttached(FragmentLifecycleCallbacksDispatcher.java:47)
at androidx.fragment.app.FragmentStateManager.attach(FragmentStateManager.java:156)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:210)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:13)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java)
at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:74)
at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7945)
at java.lang.reflect.Method.invoke(Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:603)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant