本文所有线程堆栈来源于Monkey的标准错误流中提取,涉及的线程堆栈全部包含代码混淆加密,另外本文中提及到的应用包名为虚构,请勿对号入座
// CRASH: com.cmcm.shorts (pid 7002)
// Short Msg: android.content.res.Resources$NotFoundException
// Long Msg: android.content.res.Resources$NotFoundException: String resource ID #0x7f0f0602
// Build Label: OPPO/PACM00/PACM00:8.1.0/O11019/1527000058:user/release-keys
// Build Changelist: 1529729031
// Build Time: 1529729031000
// android.content.res.Resources$NotFoundException: String resource ID #0x7f0f0602
// at android.content.res.Resources.getText(Resources.java:380)
// at android.content.res.Resources.getString(Resources.java:474)
// at android.content.Context.getString(Context.java:562)
// at com.cmcm.syncfriends.InviteFriendsAdapter.b(InviteFriendsAdapter.java:6247)
// at com.cmcm.syncfriends.InviteFriendsAdapter$3.onClick(InviteFriendsAdapter.java:107)
// at android.view.View.performClick(View.java:6387)
// at android.view.View$PerformClick.run(View.java:25217)
// at android.os.Handler.handleCallback(Handler.java:790)
// at android.os.Handler.dispatchMessage(Handler.java:99)
// at android.os.Looper.loop(Looper.java:183)
// at android.app.ActivityThread.main(ActivityThread.java:7014)
// at java.lang.reflect.Method.invoke(Native Method)
// at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:514)
// at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:888)
当从资源文件中无法读取到内存中时,就会看到Resource$NotFoundException对象,这个NotFoundException类书写在Resource类下面,是一个静态内部类,所以中间有个美元符号分隔开
类型:CRASH
进程名:com.cmcm.shorts
进程id:7002
短信息:android.content.res.Resource$NotFoundException
长信息:省略重复的,resource ID ,String类型的找不到,通过资源id获取1个String
构建标签:oppo、设备名称、系统版本,签名类型:用户/release-keys
构建改变List:1529729031
构建时间:也是一个时间戳
异常名称:Resource&NotFoundException
异常描述:String resource ID #0x7f0f0602
通过resource的id,根本找不到resource文件
// CRASH: com.cmcm.shorts (pid 14660)
// Short Msg: java.lang.IllegalStateException
// Long Msg: java.lang.IllegalStateException: View com.color.internal.widget.ColorToastLayout{19da0e5 V.E...... ......I. 0,0-0,0 #c0204f9 oppo:id/color_toast_layout} has already been added to the window manager.
// Build Label: OPPO/PACM00/PACM00:8.1.0/O11019/1527000058:user/release-keys
// Build Changelist: 1529729031
// Build Time: 1529729031000
// java.lang.IllegalStateException: View com.color.internal.widget.ColorToastLayout{19da0e5 V.E...... ......I. 0,0-0,0 #c0204f9 oppo:id/color_toast_layout} has already been added to the window manager.
// at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:340)
// at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:93)
// at android.widget.Toast$TN.handleShow(Toast.java:527)
// at android.widget.Toast$TN$1.handleMessage(Toast.java:420)
// at android.os.Handler.dispatchMessage(Handler.java:106)
// at android.os.Looper.loop(Looper.java:183)
// at android.app.ActivityThread.main(ActivityThread.java:7014)
// at java.lang.reflect.Method.invoke(Native Method)
// at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:514)
// at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:888)
// CRASH: com.cmcm.shorts (pid 7491)
// Short Msg: java.lang.RuntimeException
// Long Msg: java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@b0ce46e
// Build Label: OPPO/PACM00/PACM00:8.1.0/O11019/1527000058:user/release-keys
// Build Changelist: 1529729031
// Build Time: 1529729031000
// java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@b0ce46e
// at android.graphics.BaseCanvas.throwIfCannotDraw(BaseCanvas.java:55)
// at android.view.DisplayListCanvas.throwIfCannotDraw(DisplayListCanvas.java:230)
// at android.view.RecordingCanvas.drawBitmap(RecordingCanvas.java:97)
// at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:529)
// at android.widget.ImageView.onDraw(ImageView.java:1349)
// at android.view.View.draw(View.java:19514)
// at android.view.View.updateDisplayListIfDirty(View.java:18431)
// at android.view.View.draw(View.java:19229)
// at android.view.ViewGroup.drawChild(ViewGroup.java:4350)
// at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4136)
// at android.view.View.updateDisplayListIfDirty(View.java:18422)
// at android.view.View.draw(View.java:19229)
// at android.view.ViewGroup.drawChild(ViewGroup.java:4350)
// at android.support.design.widget.CollapsingToolbarLayout.drawChild(CollapsingToolbarLayout.java:324)
// at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4136)
// at android.view.View.draw(View.java:19522)
// at android.support.design.widget.CollapsingToolbarLayout.draw(CollapsingToolbarLayout.java:286)
// at android.view.View.updateDisplayListIfDirty(View.java:18431)
// at android.view.View.draw(View.java:19229)
// at android.view.ViewGroup.drawChild(ViewGroup.java:4350)
// at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4136)
// at android.view.View.draw(View.java:19522)
// at android.view.View.updateDisplayListIfDirty(View.java:18431)
// at android.view.View.draw(View.java:19229)
// at android.view.ViewGroup.drawChild(ViewGroup.java:4350)
// at android.support.design.widget.CoordinatorLayout.drawChild(CoordinatorLayout.java:1254)
// at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4136)
// at android.view.View.updateDisplayListIfDirty(View.java:18422)
// at android.view.View.draw(View.java:19229)
// at android.view.ViewGroup.drawChild(ViewGroup.java:4350)
// at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4136)
// at android.view.View.draw(View.java:19522)
// at android.view.View.updateDisplayListIfDirty(View.java:18431)
// at android.view.View.draw(View.java:19229)
// at android.view.ViewGroup.drawChild(ViewGroup.java:4350)
// at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4136)
// at android.view.View.updateDisplayListIfDirty(View.java:18422)
// at android.view.View.draw(View.java:19229)
// at android.view.ViewGroup.drawChild(ViewGroup.java:4350)
// at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4136)
// at android.view.View.updateDisplayListIfDirty(View.java:18422)
// at android.view.View.draw(View.java:19229)
// at android.view.ViewGroup.drawChild(ViewGroup.java:4350)
// at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4136)
// at android.view.View.updateDisplayListIfDirty(View.java:18422)
// at android.view.View.draw(View.java:19229)
// at android.view.ViewGroup.drawChild(ViewGroup.java:4350)
// at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4136)
// at android.view.View.updateDisplayListIfDirty(View.java:18422)
// at android.view.View.draw(View.java:19229)
// at android.view.ViewGroup.drawChild(ViewGroup.java:4350)
// at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4136)
// at android.view.View.draw(View.java:19522)
// at com.android.internal.policy.DecorView.draw(DecorView.java:845)
// at android.view.View.updateDisplayListIfDirty(View.java:18431)
// at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:669)
// at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:675)
// at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:783)
// at android.view.ViewRootImpl.draw(ViewRootImpl.java:3472)
// at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:3262)
// at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2757)
// at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1650)
// at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7579)
// at android.view.Choreographer$CallbackRecord.run(Choreographer.java:920)
// at android.view.Choreographer.doCallbacks(Choreographer.java:732)
// at android.view.Choreographer.doFrame(Choreographer.java:664)
// at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:906)
// at android.os.Handler.handleCallback(Handler.java:790)
// at android.os.Handler.dispatchMessage(Handler.java:99)
// at android.os.Looper.loop(Looper.java:183)
// at android.app.ActivityThread.main(ActivityThread.java:7014)
// at java.lang.reflect.Method.invoke(Native Method)
// at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:514)
// at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:888)
// CRASH: com.cmcm.shorts (pid 15503)
// Short Msg: java.lang.OutOfMemoryError
// Long Msg: java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: Try again
// Build Label: OPPO/PACM00/PACM00:8.1.0/O11019/1527000058:user/release-keys
// Build Changelist: 1529729031
// Build Time: 1529729031000
// java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: Try again
// at java.lang.Thread.nativeCreate(Native Method)
// at java.lang.Thread.start(Thread.java:733)
// at com.ksy.recordlib.service.model.processor.Mp4InputProcessor.onStop(Mp4InputProcessor.java:1808)
// at com.ksy.recordlib.service.model.processor.BaseProcessor.stop(BaseProcessor.java:45)
// at com.ksy.recordlib.service.model.processor.GenerateScreenShots.release(GenerateScreenShots.java:277)
// at com.ksy.recordlib.service.model.processor.GenerateScreenShots.generateScreenshotsFinish(GenerateScreenShots.java:267)
// at com.ksy.recordlib.service.model.processor.GenerateScreenShots.access$400(GenerateScreenShots.java:23)
// at com.ksy.recordlib.service.model.processor.GenerateScreenShots$3.onProcessorError(GenerateScreenShots.java:239)
// at com.ksy.recordlib.service.model.processor.Mp4InputProcessor$2.run(Mp4InputProcessor.java:1520)
// at java.lang.Thread.run(Thread.java:764)
堆内存空间不足时,会抛出该异常,GC程序已经不能再帮你了
// CRASH: com.cmcm.shorts (pid 22934)
// Short Msg: java.lang.IndexOutOfBoundsException
// Long Msg: java.lang.IndexOutOfBoundsException: setSpan (-1 ... -1) starts before 0
// Build Label: samsung/c7proltezh/c7proltechn:7.0/NRD90M/C7010ZHU1BRE4:user/release-keys
// Build Changelist: C7010ZHU1BRE4
// Build Time: 1526978811000
// java.lang.IndexOutOfBoundsException: setSpan (-1 ... -1) starts before 0
// at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1270)
// at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:684)
// at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:677)
// at android.text.Selection.setSelection(Selection.java:76)
// at android.text.method.ArrowKeyMovementMethod.onTouchEvent(ArrowKeyMovementMethod.java:284)
// at android.widget.TextView.onTouchEvent(TextView.java:10123)
// at android.view.View.dispatchTouchEvent(View.java:10779)
// at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2864)
// at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2549)
// at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2864)
// at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2549)
// at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2864)
// at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2549)
// at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2864)
// at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2549)
// at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2864)
// at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2549)
// at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2864)
// at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2549)
// at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:605)
// at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1895)
// at android.app.Dialog.dispatchTouchEvent(Dialog.java:894)
// at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:567)
// at android.view.View.dispatchPointerEvent(View.java:11008)
// at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5155)
// at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5007)
// at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4532)
// at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4585)
// at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4551)
// at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4684)
// at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4559)
// at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4741)
// at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4532)
// at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4585)
// at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4551)
// at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4559)
// at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4532)
// at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7092)
// at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:7024)
// at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6985)
// at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:7202)
// at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
// at android.os.MessageQueue.nativePollOnce(Native Method)
// at android.os.MessageQueue.next(MessageQueue.java:323)
// at android.os.Looper.loop(Looper.java:136)
// at android.app.ActivityThread.main(ActivityThread.java:6776)
// at java.lang.reflect.Method.invoke(Native Method)
// at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1518)
// at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
数组的最小下标是0,这个异常对象用于提示数组下标小于0,或者超过当前数组最后一个元素的下标
// CRASH: com.cmcm.shorts (pid 30606)
// Short Msg: java.lang.OutOfMemoryError
// Long Msg: java.lang.OutOfMemoryError: OutOfMemoryError thrown while trying to throw OutOfMemoryError; no stack trace available
// Build Label: samsung/c7proltezh/c7proltechn:7.0/NRD90M/C7010ZHU1BRE4:user/release-keys
// Build Changelist: C7010ZHU1BRE4
// Build Time: 1526978811000
// java.lang.OutOfMemoryError: OutOfMemoryError thrown while trying to throw OutOfMemoryError; no stack trace available
没有stack trace available
// CRASH: com.cmcm.shorts (pid 32761)
// Short Msg: java.lang.IllegalStateException
// Long Msg: java.lang.IllegalStateException: titleLayoutWhite must not be null
// Build Label: OPPO/PACM00/PACM00:8.1.0/O11019/1527000058:user/release-keys
// Build Changelist: 1529729031
// Build Time: 1529729031000
// java.lang.IllegalStateException: titleLayoutWhite must not be null
// at com.cmcm.pullnew.fragment.DayTaskFragment.a(DayTaskFragment.kt:4199)
// at com.cmcm.pullnew.presenter.SignInPresenter$a.run(SignInPresenter.kt:43)
// at android.os.Handler.handleCallback(Handler.java:790)
// at android.os.Handler.dispatchMessage(Handler.java:99)
// at android.os.Looper.loop(Looper.java:183)
// at android.app.ActivityThread.main(ActivityThread.java:7014)
// at java.lang.reflect.Method.invoke(Native Method)
// at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:514)
// at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:888)
混淆包的缺点,方法名称都变了,不能定位到具体是哪一行代码
// CRASH: com.crush.gogo (pid 390)
// Short Msg: java.lang.IllegalArgumentException
// Long Msg: java.lang.IllegalArgumentException: Failed to find configured root that contains /
// Build Label: HUAWEI/EML-AL00/HWEML:8.1.0/HUAWEIEML-AL00/109(SP5C00):user/release-keys
// Build Changelist: 109(SP5C00)
// Build Time: 1525893945000
// java.lang.IllegalArgumentException: Failed to find configured root that contains /
// at android.support.v4.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:738)
// at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:417)
// at com.crush.gogo.utils.ShareUtil.shareImage(ShareUtil.kt:101)
// at com.crush.gogo.login.fragment.MyRatingFragment$initEvent$4.onClick(MyRatingFragment.kt:239)
// at android.view.View.performClick(View.java:6329)
// at android.view.View$PerformClick.run(View.java:25004)
// at android.os.Handler.handleCallback(Handler.java:809)
// at android.os.Handler.dispatchMessage(Handler.java:102)
// at android.os.Looper.loop(Looper.java:166)
// at android.app.ActivityThread.main(ActivityThread.java:7367)
// at java.lang.reflect.Method.invoke(Native Method)
// at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469)
// at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963)
应该用未混淆的debug包,继续跑Monkey?应该两个版本都跑就对了……
// CRASH: com.crush.gogo (pid 1146)
// Short Msg: java.lang.IndexOutOfBoundsException
// Long Msg: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
// Build Label: HUAWEI/EML-AL00/HWEML:8.1.0/HUAWEIEML-AL00/109(SP5C00):user/release-keys
// Build Changelist: 109(SP5C00)
// Build Time: 1525893945000
// java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
// at java.util.LinkedList.checkElementIndex(LinkedList.java:555)
// at java.util.LinkedList.get(LinkedList.java:476)
// at com.crush.gogo.homecenter.fragment.MainCardFragment$initListener$6.onClick(MainCardFragment.kt:234)
// at android.view.View.performClick(View.java:6329)
// at android.view.View$PerformClick.run(View.java:25004)
// at android.os.Handler.handleCallback(Handler.java:809)
// at android.os.Handler.dispatchMessage(Handler.java:102)
// at android.os.Looper.loop(Looper.java:166)
// at android.app.ActivityThread.main(ActivityThread.java:7367)
// at java.lang.reflect.Method.invoke(Native Method)
// at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469)
// at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963)