09-09 02:20:36.809052 1234 3101 D AES : onEndOfErrorDumpThread: system_app_crash Process: com.android.chrome
09-09 02:20:36.809052 1234 3101 D AES : Flags: 0x-573441bb
09-09 02:20:36.809052 1234 3101 D AES : Package: com.android.chrome v302908352 (58.0.3029.83)
09-09 02:20:36.809052 1234 3101 D AES : Foreground: No
09-09 02:20:36.809052 1234 3101 D AES : Build: A/B/C:7.0/NRD90M/170908V7:user/release-keys
09-09 02:20:36.809052 1234 3101 D AES :
09-09 02:20:36.809052 1234 3101 D AES : java.lang.IllegalArgumentException: View=android.support.v7.app.AppCompatDelegateImplV9$ListMenuDecorView{e3f1bbb V.E...... ......I. 0,0-0,0} not attached to window manager
09-09 02:20:36.809052 1234 3101 D AES : at android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:497)
09-09 02:20:36.809052 1234 3101 D AES : at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:404)
09-09 02:20:36.809052 1234 3101 D AES : at android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:119)
09-09 02:20:36.809052 1234 3101 D AES : at android.support.v7.app.AppCompatDelegateImplV9.closePanel(AppCompatDelegateImplV9.java:1437)
09-09 02:20:36.809052 1234 3101 D AES : at android.support.v7.app.AppCompatDelegateImplV9$PanelMenuPresenterCallback.onCloseMenu(AppCompatDelegateImplV9.java:1841)
09-09 02:20:36.809052 1234 3101 D AES : at android.support.v7.view.menu.ListMenuPresenter.onCloseMenu(ListMenuPresenter.java:155)
09-09 02:20:36.809052 1234 3101 D AES : at android.support.v7.view.menu.MenuBuilder.close(MenuBuilder.java:1017)
09-09 02:20:36.809052 1234 3101 D AES : at android.support.v7.view.menu.MenuBuilder.close(MenuBuilder.java:1025)
09-09 02:20:36.809052 1234 3101 D AES : at android.support.v7.app.AppCompatDelegateImplV9$4.onDetachedFromWindow(AppCompatDelegateImplV9.java:2764)
09-09 02:20:36.809052 1234 3101 D AES : at android.support.v7.widget.ContentFrameLayout.onDetachedFromWindow(ContentFrameLayout.java:212)
09-09 02:20:36.809052 1234 3101 D AES : at android.view.View.dispatchDetachedFromWindow(View.java:16221)
09-09 02:20:36.809052 1234 3101 D AES : at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3434)
09-09 02:20:36.809052 1234 3101 D AES : at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3426)
09-09 02:20:36.809052 1234 3101 D AES : at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3426)
09-09 02:20:36.809052 1234 3101 D AES : at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3426)
09-09 02:20:36.809052 1234 3101 D AES : at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3426)
09-09 02:20:36.809052 1234 3101 D AES : at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:3672)
09-09 02:20:36.809052 1234 3101 D AES : at android.view.ViewRootImpl.doDie(ViewRootImpl.java:6460)
09-09 02:20:36.809052 1234 3101 D AES : at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:4083)
09-09 02:20:36.809052 1234 3101 D AES : at android.os.Handler.dispatchMessage(Handler.java:110)
09-09 02:20:36.809052 1234 3101 D AES : at android.os.Looper.loop(Looper.java:203)
09-09 02:20:36.809052 1234 3101 D AES : at android.app.ActivityThread.main(ActivityThread.java:6251)
09-09 02:20:36.809052 1234 3101 D AES : at java.lang.reflect.Method.invoke(Native Method)
09-09 02:20:36.809052 1234 3101 D AES : at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1073)
09-09 02:20:36.809052 1234 3101 D AES : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:934)
发生IllegalArgumentException(传入不合法参数导致的异常),出现此问题原因主要是chrome发生了WindowLeaked
09-09 02:20:35.063994 7278 7278 E WindowManager: android.view.WindowLeaked: Activity org.chromium.chrome.browser.ChromeTabbedActivity has leaked window DecorView@e59c3b[] that was originally added here
09-09 02:20:35.063994 7278 7278 E WindowManager: at android.view.ViewRootImpl.<init>(ViewRootImpl.java:511)
09-09 02:20:35.063994 7278 7278 E WindowManager: at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:338)
09-09 02:20:35.063994 7278 7278 E WindowManager: at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:93)
09-09 02:20:35.063994 7278 7278 E WindowManager: at android.app.Dialog.show(Dialog.java:331)
09-09 02:20:35.063994 7278 7278 E WindowManager: at org.chromium.chrome.browser.webapps.AddToHomescreenManager.showDialog(AddToHomescreenManager.java:2134)
09-09 02:20:35.063994 7278 7278 E WindowManager: at org.chromium.chrome.browser.webapps.AddToHomescreenManager.nativeInitializeAndStart(Native Method)
09-09 02:20:35.063994 7278 7278 E WindowManager: at org.chromium.chrome.browser.webapps.AddToHomescreenManager.start(AddToHomescreenManager.java:45)
09-09 02:20:35.063994 7278 7278 E WindowManager: at org.chromium.chrome.browser.ChromeActivity.onMenuOrKeyboardAction(ChromeActivity.java:1864)
09-09 02:20:35.063994 7278 7278 E WindowManager: at org.chromium.chrome.browser.ChromeTabbedActivity.onMenuOrKeyboardAction(ChromeTabbedActivity.java:1445)
09-09 02:20:35.063994 7278 7278 E WindowManager: at org.chromium.chrome.browser.ChromeActivity.onOptionsItemSelected(ChromeActivity.java:1192)
09-09 02:20:35.063994 7278 7278 E WindowManager: at org.chromium.chrome.browser.appmenu.AppMenu.onItemClick(AppMenu.java:4192)
09-09 02:20:35.063994 7278 7278 E WindowManager: at org.chromium.chrome.browser.appmenu.AppMenuAdapter$3.onClick(AppMenuAdapter.java:301)
09-09 02:20:35.063994 7278 7278 E WindowManager: at android.view.View.performClick(View.java:6199)
09-09 02:20:35.063994 7278 7278 E WindowManager: at android.view.View$PerformClick.run(View.java:23235)
09-09 02:20:35.063994 7278 7278 E WindowManager: at android.os.Handler.handleCallback(Handler.java:836)
09-09 02:20:35.063994 7278 7278 E WindowManager: at android.os.Handler.dispatchMessage(Handler.java:103)
09-09 02:20:35.063994 7278 7278 E WindowManager: at android.os.Looper.loop(Looper.java:203)
09-09 02:20:35.063994 7278 7278 E WindowManager: at android.app.ActivityThread.main(ActivityThread.java:6251)
09-09 02:20:35.063994 7278 7278 E WindowManager: at java.lang.reflect.Method.invoke(Native Method)
由上可以知道当前Activity在showDialog的时候,Activity被monkey进行finish掉了,导致窗体管理器发生了泄露,
出现WindowLeaked事件,最终导致了IllegalArgumentException,以上是三方写的不严谨导致,需要当前Activity在finish之前,
需要判断当前是否弹框,需要三方进行修改