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

Bug: showing the dialog can crash the app #5

Open
AndroidDeveloperLB opened this issue Oct 23, 2016 · 5 comments
Open

Bug: showing the dialog can crash the app #5

AndroidDeveloperLB opened this issue Oct 23, 2016 · 5 comments

Comments

@AndroidDeveloperLB
Copy link

I got this exception :

10-23 13:09:45.316 28525-28525/uk.co.nickbutcher.animatordurationtile E/AndroidRuntime: FATAL EXCEPTION: main
Process: uk.co.nickbutcher.animatordurationtile, PID: 28525
android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@53b0d53 is not valid; is your activity running?
at android.view.ViewRootImpl.setView(ViewRootImpl.java:678)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:342)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:93)
at android.app.Dialog.show(Dialog.java:316)
at android.service.quicksettings.TileService.showDialog(TileService.java:232)
at uk.co.nickbutcher.animatordurationtile.SelectAnimatorDuration$1.run(SelectAnimatorDuration.java:69)
at android.service.quicksettings.TileService$H.handleMessage(TileService.java:401)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

It's a bit rare, but it happens.

@AndroidDeveloperLB
Copy link
Author

Actually now that I look at it, it seems like a crash on Android OS itself, right?

@sampalmer
Copy link

Someone has created an Android bug report for this here:
https://issuetracker.google.com/issues/37105965

@AndroidDeveloperLB
Copy link
Author

So... Why does it occur? Any way to handle it correctly?

@sampalmer
Copy link

I don't know, sorry. It's only happened a few times for me during development, and only for one user in Production.

@AndroidDeveloperLB
Copy link
Author

ok thanks

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

2 participants