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

DecorView@[MainActivity] not attached to window manager #488

Closed
huextrat opened this issue Sep 14, 2023 · 3 comments
Closed

DecorView@[MainActivity] not attached to window manager #488

huextrat opened this issue Sep 14, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@huextrat
Copy link

Bug summary

From 5.0.0 we are seeing this error on some Android devices.
The issue also occurred in 5.0.2.

From our perspective there is randomness, we've had users who've had the problem once but who haven't had the problem since.

java.lang.IllegalArgumentException: View=DecorView@b8ebeb6[MainActivity] not attached to window manager
    at android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:543)
    at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:450)
    at android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:208)
    at android.app.Dialog.dismissDialog(Dialog.java:404)
    at android.app.Dialog.dismiss(Dialog.java:386)
    at com.zoontek.rnbootsplash.RNBootSplashModuleImpl$5$2.onShow(RNBootSplashModuleImpl.java:5)
    at android.app.Dialog$ListenersHandler.handleMessage(Dialog.java:1475)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:205)
    at android.os.Looper.loop(Looper.java:294)
    at android.app.ActivityThread.main(ActivityThread.java:8170)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)

It has also been mentioned here: #456 (comment)

Unfornutaley, I don't have any repro it works fine on all my devices 😕, But here are some information about our monitoring:

  • Different devices (Samsung, Pixel 6, Pixel 4a, Redmi, Huawei)
  • Android 13, 12, 10, 9

Our implementation of RNBootSplash is the basic one, pretty close to the doc.

Library version

5.0.2

Environment info

/

Steps to reproduce

Android only, and it seems to occurred 2–3 seconds after AppStart.

Reproducible sample code

Cannot reproduce, but should occur with the basic implementation.
@huextrat huextrat added the bug Something isn't working label Sep 14, 2023
@zoontek
Copy link
Owner

zoontek commented Sep 14, 2023

Are you using fade: true?

@huextrat
Copy link
Author

Yes, we are using the fade await RNBootSplash.hide({ fade: true });

@zoontek
Copy link
Owner

zoontek commented Sep 16, 2023

I successfully reproduced it by starting the app when the screen is locked (+ playing with the Don’t Keep Activities developer setting).

Just published a new version, 5.0.3 that should solve the issue.

@zoontek zoontek closed this as completed Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants