Not attached to Window Manager
See original GitHub issueHey, from time to time I get the following error in our logs:
java.lang.IllegalArgumentException View=com.android.internal.policy.PhoneWindow$DecorView{ffbac5a V.E...... R.....I. 0,0-720,1280} not attached to window manager
WindowManagerGlobal.java:451 android.view.WindowManagerGlobal.findViewLocked
WindowManagerGlobal.java:377 android.view.WindowManagerGlobal.removeView
WindowManagerImpl.java:140 android.view.WindowManagerImpl.removeViewImmediate
Dialog.java:701 android.app.Dialog.dismissDialog
Dialog.java:684 android.app.Dialog.dismiss
SplashScreen.java:58 com.cboy.rn.splashscreen.SplashScreen$2.run
Handler.java:739 android.os.Handler.handleCallback
Handler.java:95 android.os.Handler.dispatchMessage
Looper.java:148 android.os.Looper.loop
ActivityThread.java:7331 android.app.ActivityThread.main
Method.java:-2 java.lang.reflect.Method.invoke
ZygoteInit.java:1230 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
ZygoteInit.java:1120 com.android.internal.os.ZygoteInit.main
Android 6.0.1 / Samsung
Any idea how I could fix this issue?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:12
- Comments:7 (1 by maintainers)
Top Results From Across the Web
View not attached to window manager crash - Stack Overflow
This issue is because of your activity gets finished before the dismiss function gets called. Handle the exception and check your ADB log...
Read more >View not attached to window manager crash - Android
Android App is getting crashed on dismissing idle timeout dialog occasionally. Any idea how to fix? Visualizer plugin version: 7.2.1.
Read more >IllegalArgumentException - View not attached to window ...
java.lang.IllegalArgumentException : View=DecorView@861288[EditPostActivity] not attached to window manager at android.view.
Read more >java.lang.IllegalArgumentException - Pinterest
IllegalArgumentException: View=DecorView@b5fcc9b[DrawingActivity ] not attached to window manager at android.view.WindowManagerGlobal.
Read more >Android – View not attached to window manager crash
I was getting a View not attached to window manager error message and thought I had fixed it by wrapping the pDialog.dismiss(); in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m seeing something similar in my production crash reports from time to time.
Judging from telemetry, it appears to be happening at the time of calling
SplashScreen.hide()
within the react native part of the app. This likely leaves the user stuck on the splash screen until they force close the app.So far it has exhibited itself on two devices:
https://github.com/crazycodeboy/react-native-splash-screen/issues/32