android-notes / Cockroach

降低Android非必要crash
MIT License
3.25k stars 449 forks source link

关于自定义View的Crash Catch,小米5S,安卓8.0,没有catch住 #44

Closed HLUO18-ford closed 4 years ago

HLUO18-ford commented 4 years ago

2020-07-02 13:30:52.496 1544-3461/system_process E/ActivityTrigger: activityStartTrigger: not whiteListedcom.aiyang.android_crashx/com.aiyang.crash_catch.FourActivity/1 2020-07-02 13:30:52.498 1544-3461/system_process E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.aiyang.android_crashx/com.aiyang.crash_catch.FourActivity/1 2020-07-02 13:30:52.507 1544-3471/system_process E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.aiyang.android_crashx/com.aiyang.crash_catch.FourActivity/1 2020-07-02 13:30:52.664 15676-15676/com.aiyang.android_crashx E/AndroidRuntime: FATAL EXCEPTION: main Process: com.aiyang.android_crashx, PID: 15676 java.lang.RuntimeException **at com.aiyang.crash_catch.MyView.onDraw(MyView.java:29)** at android.view.View.draw(View.java:19145) at android.view.View.updateDisplayListIfDirty(View.java:18095) at android.view.View.draw(View.java:18873) at android.view.ViewGroup.drawChild(ViewGroup.java:4218) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4002) at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw(ConstraintLayout.java:2023) at android.view.View.updateDisplayListIfDirty(View.java:18086) at android.view.View.draw(View.java:18873) at android.view.ViewGroup.drawChild(ViewGroup.java:4218) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4002) at android.view.View.updateDisplayListIfDirty(View.java:18086) at android.view.View.draw(View.java:18873) at android.view.ViewGroup.drawChild(ViewGroup.java:4218) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4002) at android.view.View.updateDisplayListIfDirty(View.java:18086) at android.view.View.draw(View.java:18873) at android.view.ViewGroup.drawChild(ViewGroup.java:4218) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4002) at android.view.View.updateDisplayListIfDirty(View.java:18086) at android.view.View.draw(View.java:18873) at android.view.ViewGroup.drawChild(ViewGroup.java:4218) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4002) at android.view.View.updateDisplayListIfDirty(View.java:18086) at android.view.View.draw(View.java:18873) at android.view.ViewGroup.drawChild(ViewGroup.java:4218) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4002) at android.view.View.draw(View.java:19148) at com.android.internal.policy.DecorView.draw(DecorView.java:788) at android.view.View.updateDisplayListIfDirty(View.java:18095) at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:643) at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:649) at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:757) at android.view.ViewRootImpl.draw(ViewRootImpl.java:3035) at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2830) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2383) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1422) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6834) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1029) at android.view.Choreographer.doCallbacks(Choreographer.java:841) at android.view.Choreographer.doFrame(Choreographer.java:772) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1015) at android.os.Handler.handleCallback(Handler.java:793) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:173) at android.app.ActivityThread.main(ActivityThread.java:6698) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782) 2020-07-02 13:30:52.699 1544-3461/system_process E/ActivityTrigger: activityStartTrigger: not whiteListedcom.aiyang.android_crashx/com.aiyang.crash_catch.MainActivity/1 2020-07-02 13:30:52.700 1544-3461/system_process E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.aiyang.android_crashx/com.aiyang.crash_catch.MainActivity/1 2020-07-02 13:30:53.197 1544-1631/system_process E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.aiyang.android_crashx/com.aiyang.crash_catch.MainActivity/1