标签:
在跑Monkey测试的时候出现了一个比较特别的问题,先来看看Log:
1 // CRASH: com.meizu.media.painter (pid 12491) 2 3 // Short Msg: java.lang.IllegalArgumentException 4 5 // Long Msg: java.lang.IllegalArgumentException: View=com.android.internal.policy.impl.PhoneWindow$DecorView{21dd6762 V.ED.... R......D 0,0-538,105} not attached to window manager 6 7 // Build Label: *** 8 9 // Build Changelist: 1443062570 10 11 // Build Time: 1443062722000 12 13 // java.lang.IllegalArgumentException: View=com.android.internal.policy.impl.PhoneWindow$DecorView{21dd6762 V.ED.... R......D 0,0-538,105} not attached to window manager 14 15 // at android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:416) 16 17 // at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:342) 18 19 // at android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:116) 20 21 // at android.app.Dialog.dismissDialog(Dialog.java:354) 22 23 // at android.app.Dialog.dismiss(Dialog.java:337) 24 25 // at com.***.***.***.PainterDrawActivity.closeProgressDialog(PainterDrawActivity.java:60) 26 27 // at com.***.***.painter.PainterDrawActivity.access$000(PainterDrawActivity.java:28) 28 29 // at com.***.***.painter.PainterDrawActivity$1$2.run(PainterDrawActivity.java:49) 30 31 // at android.os.Handler.handleCallback(Handler.java:815) 32 33 // at android.os.Handler.dispatchMessage(Handler.java:104) 34 35 // at android.os.Looper.loop(Looper.java:194) 36 37 // at android.app.ActivityThread.main(ActivityThread.java:5741) 38 39 // at java.lang.reflect.Method.invoke(Native Method) 40 41 // at java.lang.reflect.Method.invoke(Method.java:372) 42 43 // at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:980) 44 45 // at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775) 46 47 //
从上面的Log可以看出是一个非法参数异常的问题。
那为什么会出现Long Msg: java.lang.IllegalArgumentException: View=com.android.internal.policy.impl.PhoneWindow$DecorView{21dd6762 V.ED.... R......D 0,0-538,105} not attached to window manager的问题呢?应用本身的崩溃怎么会联系到
PhoneWindow呢?
由于是Monkey测试出现一次的Log,我们很难复现,只能从网上遇到类似问题的人看看他们的看法。
标签:
原文地址:http://www.cnblogs.com/reverie/p/4846958.html