box / box/box-android-browse-sdk

Crash happened when the app was closing

Open
#192 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
13
Forks
24
PR merge metrics
No merged PRs in 30d

Description

android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@7e2116f is not valid; is your activity running?
at android.view.ViewRootImpl.setView(ViewRootImpl.java:954)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:381)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:100)
at android.app.Dialog.show(Dialog.java:420)
at com.box.androidsdk.content.auth.OAuthWebView$OAuthWebViewClient.onReceivedSslError(OAuthWebView.java:329)
at yk.a(PG:494)
at ajX.run(Unknown Source:2)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6944)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with OAuthWebView.java at OAuthWebViewClient.onReceivedSslError, line 329, and trace how the dialog is shown while the activity is closing. Reproduce the shutdown-time SSL-error path and verify that closing the app no longer produces WindowManager$BadTokenException.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.