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

Caused by android.view.WindowManager$BadTokenException #663

Open
minhkwan opened this issue Jan 22, 2025 · 0 comments
Open

Caused by android.view.WindowManager$BadTokenException #663

minhkwan opened this issue Jan 22, 2025 · 0 comments

Comments

@minhkwan
Copy link

Caused by android.view.WindowManager$BadTokenException
Unable to add window -- token android.os.BinderProxy@12bad08 is not valid; is your activity running?
android.view.ViewRootImpl.setView (ViewRootImpl.java:1173)
android.view.WindowManagerGlobal.addView (WindowManagerGlobal.java:399)
android.view.WindowManagerImpl.addView (WindowManagerImpl.java:134)
android.app.Dialog.show (Dialog.java:345)
org.devio.rn.splashscreen.SplashScreen$1.run (SplashScreen.java:39)
android.app.Activity.runOnUiThread (Activity.java:7203)
org.devio.rn.splashscreen.SplashScreen.show (SplashScreen.java:28)
MainActivity.onCreate (MainActivity.kt:14)

Currently, I'm using React Native 0.73.1 and this error is reported to me on firebase crashlytics. Only 1 user crashed from this bug. Can anyone explain for me why this happening? I tried some solutions from StackOverflow like check if activity isFinishing,... but I read the code of this library and see that it already implemented checking like above.
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

1 participant