The Android application suddenly closes with an error. Could not open window.

I have been working on the project since last year. It worked fine, but from the last two days I have noticed wired behavior. My application closes suddenly without showing any ANR or Crash warnings. The application was not even found on the stack, it also cleared from there. In logcat I found this

WindowManager: Failed looking up window
                                java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@edac887 does not exist
                                    at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9100)
                                    at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9091)
                                    at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2296)
                                    at com.android.server.wm.Session.remove(Session.java:193)
                                    at android.view.IWindowSession$Stub.onTransact(IWindowSession.java:242)
                                    at com.android.server.wm.Session.onTransact(Session.java:136)
                                    at android.os.Binder.execTransact(Binder.java:565)
+4
source share

Source: https://habr.com/ru/post/1670379/


All Articles