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

[REPORT] Crash report d4f2a69c2a352f089d78a740abe3a099 #565

Closed
K1rakishou opened this issue Feb 5, 2020 · 4 comments
Closed

[REPORT] Crash report d4f2a69c2a352f089d78a740abe3a099 #565

K1rakishou opened this issue Feb 5, 2020 · 4 comments
Assignees
Labels
bug Something isn't working report/crash report Report made via the in-app reporter (auto or manual)

Comments

@K1rakishou
Copy link

android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@7a2a740 is not valid; is your activity running?
	at android.view.ViewRootImpl.setView(ViewRootImpl.java:679)
	at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:342)
	at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:94)
	at android.widget.Toast$TN.handleShow(Toast.java:459)
	at android.widget.Toast$TN$2.handleMessage(Toast.java:342)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:154)
	at android.app.ActivityThread.main(ActivityThread.java:6186)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)

@K1rakishou K1rakishou added bug Something isn't working report/crash report Report made via the in-app reporter (auto or manual) labels Feb 5, 2020
@K1rakishou K1rakishou changed the title Crash report d4f2a69c2a352f089d78a740abe3a099 [REPORT] Crash report d4f2a69c2a352f089d78a740abe3a099 Feb 5, 2020
@K1rakishou
Copy link
Author

K1rakishou commented Feb 5, 2020

So this is the price we have to pay for having toasts use app context.

@Adamantcheese Adamantcheese self-assigned this Feb 6, 2020
@Adamantcheese
Copy link
Owner

Guess I'm going to not be clever and fix that then.

@K1rakishou
Copy link
Author

I wonder if we could just check for this thing outselves, whether we can add a window or not. But your fix should be even better.

@Adamantcheese
Copy link
Owner

I considered checking it and then just said nah, just do it how it should be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working report/crash report Report made via the in-app reporter (auto or manual)
Projects
None yet
Development

No branches or pull requests

2 participants