Skip to content

Caused by android.view.WindowManager$BadTokenException #663

Description

@minhkwan

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions