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

Crash in AuthenticationActivity.displaySpinner() during sign-in on OneDrive app #360

Closed
hanselip opened this issue Mar 31, 2015 · 6 comments

Comments

@hanselip
Copy link

java.lang.IllegalArgumentException: View not attached to window manager
at android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:383)
at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:285)
at android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:79)
at android.app.Dialog.dismissDialog(Dialog.java:323)
at android.app.Dialog.dismiss(Dialog.java:306)
at com.microsoft.aad.adal.AuthenticationActivity.displaySpinner()
at com.microsoft.aad.adal.AuthenticationActivity.access$300()
at com.microsoft.aad.adal.AuthenticationActivity$CustomWebViewClient.onPageFinished()
at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:323)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5039)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(NativeStart.java)

@omercs
Copy link
Contributor

omercs commented Mar 31, 2015

What version of adal are you using? Can you include the log?

@hanselip
Copy link
Author

We're using version 1.0.9. Unfortunately I don't have the ADAL logs since we don't collect them in our app yet, I only have the trace above from Crashlytics. From the crash data, this has only been seen on devices running Android 4.

@omercs
Copy link
Contributor

omercs commented Apr 1, 2015

Is it Android 4.0? What is the device type? I need to repro on a device if possible.

Adal checks if activity is finishing or not before dismissing the dialog. I will play with developer options for activity lifecycle to repro this.

@hanselip
Copy link
Author

hanselip commented Apr 1, 2015

We've seen hits on Android 4.0.4, 4.1.2, 4.2.2 and across devices (mostly Samsung S3, Samsung Ace). Thanks for taking a look, I'll try and get a live repro as well.

@omercs
Copy link
Contributor

omercs commented Apr 7, 2015

@weijjia
Copy link
Contributor

weijjia commented Mar 8, 2016

Please re-open if you see the issue again.

@weijjia weijjia closed this as completed Mar 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants