Open jeesk opened 1 year ago
报错调用栈: 红米和联想android13 机型出现。
依赖: // refersh implementation 'io.github.scwang90:refresh-layout-kernel:2.0.6' //核心必须依赖 implementation 'io.github.scwang90:refresh-header-classics:2.0.6' //经典刷新头
java.lang.RuntimeException
Canvas: trying to draw too large(256872448bytes) bitmap.
解析原始 1 android.graphics.RecordingCanvas.throwIfCannotDraw(RecordingCanvas.java:266) 2 android.graphics.BaseRecordingCanvas.drawBitmap(BaseRecordingCanvas.java:148) 3 android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:559) 4 android.widget.ImageView.onDraw(ImageView.java:1457) 5 android.view.View.draw(View.java:23560) 6 androidx.constraintlayout.utils.widget.ImageFilterView.void draw(android.graphics.Canvas)(ImageFilterView.java:810) 7 android.view.View.updateDisplayListIfDirty(View.java:22356) 8 android.view.View.draw(View.java:23259) 9 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 10 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 11 android.view.View.draw(View.java:23569) 12 android.view.View.updateDisplayListIfDirty(View.java:22356) 13 android.view.View.draw(View.java:23259) 14 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 15 androidx.recyclerview.widget.RecyclerView.boolean drawChild(android.graphics.Canvas,android.view.View,long)(RecyclerView.java:5204) 16 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 17 android.view.View.draw(View.java:23569) 18 androidx.recyclerview.widget.RecyclerView.void draw(android.graphics.Canvas)(RecyclerView.java:4603) 19 android.view.View.updateDisplayListIfDirty(View.java:22356) 20 android.view.View.draw(View.java:23259) 21 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 22 com.scwang.smart.refresh.layout.SmartRefreshLayout.boolean drawChild(android.graphics.Canvas,android.view.View,long)(SmartRefreshLayout.java:832) 23 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 24 android.view.View.updateDisplayListIfDirty(View.java:22345) 25 android.view.View.draw(View.java:23259) 26 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 27 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 28 androidx.constraintlayout.widget.ConstraintLayout.void dispatchDraw(android.graphics.Canvas)(ConstraintLayout.java:1994) 29 android.view.View.updateDisplayListIfDirty(View.java:22345) 30 android.view.View.draw(View.java:23259) 31 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 32 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 33 android.view.View.updateDisplayListIfDirty(View.java:22345) 34 android.view.View.draw(View.java:23259) 35 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 36 androidx.recyclerview.widget.RecyclerView.boolean drawChild(android.graphics.Canvas,android.view.View,long)(RecyclerView.java:5204) 37 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 38 android.view.View.draw(View.java:23569) 39 androidx.recyclerview.widget.RecyclerView.void draw(android.graphics.Canvas)(RecyclerView.java:4603) 40 android.view.View.updateDisplayListIfDirty(View.java:22356) 41 android.view.View.draw(View.java:23259) 42 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 43 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 44 android.view.View.updateDisplayListIfDirty(View.java:22345) 45 android.view.View.draw(View.java:23259) 46 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 47 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 48 androidx.constraintlayout.widget.ConstraintLayout.void dispatchDraw(android.graphics.Canvas)(ConstraintLayout.java:1994) 49 android.view.View.draw(View.java:23569) 50 android.view.View.updateDisplayListIfDirty(View.java:22356) 51 android.view.View.draw(View.java:23259) 52 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 53 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 54 android.view.View.updateDisplayListIfDirty(View.java:22345) 55 android.view.View.draw(View.java:23259) 56 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 57 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 58 android.view.View.updateDisplayListIfDirty(View.java:22345) 59 android.view.View.draw(View.java:23259) 60 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 61 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 62 android.view.View.updateDisplayListIfDirty(View.java:22345) 63 android.view.View.draw(View.java:23259) 64 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 65 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 66 android.view.View.updateDisplayListIfDirty(View.java:22345) 67 android.view.View.draw(View.java:23259) 68 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 69 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 70 android.view.View.draw(View.java:23569) 71 com.android.internal.policy.DecorView.draw(DecorView.java:901) 72 android.view.View.updateDisplayListIfDirty(View.java:22356) 73 android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:682) 74 android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:690) 75 android.view.ThreadedRenderer.draw(ThreadedRenderer.java:795) 76 android.view.ViewRootImpl.draw(ViewRootImpl.java:5037) 77 android.view.ViewRootImpl.performDraw(ViewRootImpl.java:4726) 78 android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3904) 79 android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2605) 80 android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9738) 81 android.view.Choreographer$CallbackRecord.run(Choreographer.java:1386) 82 android.view.Choreographer$CallbackRecord.run(Choreographer.java:1394) 83 android.view.Choreographer.doCallbacks(Choreographer.java:1013) 84 android.view.Choreographer.doFrame(Choreographer.java:911) 85 android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1366) 86 android.os.Handler.handleCallback(Handler.java:942) 87 android.os.Handler.dispatchMessage(Handler.java:99) 88 android.os.Looper.loopOnce(Looper.java:211) 89 android.os.Looper.loop(Looper.java:300) 90 android.app.ActivityThread.main(ActivityThread.java:8315) 91 java.lang.reflect.Method.invoke(Native Method) 92 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580) 93 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1028)
报错调用栈: 红米和联想android13 机型出现。
依赖: // refersh implementation 'io.github.scwang90:refresh-layout-kernel:2.0.6' //核心必须依赖 implementation 'io.github.scwang90:refresh-header-classics:2.0.6' //经典刷新头
main(2)
java.lang.RuntimeException
Canvas: trying to draw too large(256872448bytes) bitmap.
解析原始 1 android.graphics.RecordingCanvas.throwIfCannotDraw(RecordingCanvas.java:266) 2 android.graphics.BaseRecordingCanvas.drawBitmap(BaseRecordingCanvas.java:148) 3 android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:559) 4 android.widget.ImageView.onDraw(ImageView.java:1457) 5 android.view.View.draw(View.java:23560) 6 androidx.constraintlayout.utils.widget.ImageFilterView.void draw(android.graphics.Canvas)(ImageFilterView.java:810) 7 android.view.View.updateDisplayListIfDirty(View.java:22356) 8 android.view.View.draw(View.java:23259) 9 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 10 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 11 android.view.View.draw(View.java:23569) 12 android.view.View.updateDisplayListIfDirty(View.java:22356) 13 android.view.View.draw(View.java:23259) 14 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 15 androidx.recyclerview.widget.RecyclerView.boolean drawChild(android.graphics.Canvas,android.view.View,long)(RecyclerView.java:5204) 16 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 17 android.view.View.draw(View.java:23569) 18 androidx.recyclerview.widget.RecyclerView.void draw(android.graphics.Canvas)(RecyclerView.java:4603) 19 android.view.View.updateDisplayListIfDirty(View.java:22356) 20 android.view.View.draw(View.java:23259) 21 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 22 com.scwang.smart.refresh.layout.SmartRefreshLayout.boolean drawChild(android.graphics.Canvas,android.view.View,long)(SmartRefreshLayout.java:832) 23 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 24 android.view.View.updateDisplayListIfDirty(View.java:22345) 25 android.view.View.draw(View.java:23259) 26 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 27 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 28 androidx.constraintlayout.widget.ConstraintLayout.void dispatchDraw(android.graphics.Canvas)(ConstraintLayout.java:1994) 29 android.view.View.updateDisplayListIfDirty(View.java:22345) 30 android.view.View.draw(View.java:23259) 31 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 32 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 33 android.view.View.updateDisplayListIfDirty(View.java:22345) 34 android.view.View.draw(View.java:23259) 35 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 36 androidx.recyclerview.widget.RecyclerView.boolean drawChild(android.graphics.Canvas,android.view.View,long)(RecyclerView.java:5204) 37 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 38 android.view.View.draw(View.java:23569) 39 androidx.recyclerview.widget.RecyclerView.void draw(android.graphics.Canvas)(RecyclerView.java:4603) 40 android.view.View.updateDisplayListIfDirty(View.java:22356) 41 android.view.View.draw(View.java:23259) 42 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 43 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 44 android.view.View.updateDisplayListIfDirty(View.java:22345) 45 android.view.View.draw(View.java:23259) 46 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 47 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 48 androidx.constraintlayout.widget.ConstraintLayout.void dispatchDraw(android.graphics.Canvas)(ConstraintLayout.java:1994) 49 android.view.View.draw(View.java:23569) 50 android.view.View.updateDisplayListIfDirty(View.java:22356) 51 android.view.View.draw(View.java:23259) 52 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 53 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 54 android.view.View.updateDisplayListIfDirty(View.java:22345) 55 android.view.View.draw(View.java:23259) 56 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 57 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 58 android.view.View.updateDisplayListIfDirty(View.java:22345) 59 android.view.View.draw(View.java:23259) 60 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 61 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 62 android.view.View.updateDisplayListIfDirty(View.java:22345) 63 android.view.View.draw(View.java:23259) 64 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 65 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 66 android.view.View.updateDisplayListIfDirty(View.java:22345) 67 android.view.View.draw(View.java:23259) 68 android.view.ViewGroup.drawChild(ViewGroup.java:4643) 69 android.view.ViewGroup.dispatchDraw(ViewGroup.java:4401) 70 android.view.View.draw(View.java:23569) 71 com.android.internal.policy.DecorView.draw(DecorView.java:901) 72 android.view.View.updateDisplayListIfDirty(View.java:22356) 73 android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:682) 74 android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:690) 75 android.view.ThreadedRenderer.draw(ThreadedRenderer.java:795) 76 android.view.ViewRootImpl.draw(ViewRootImpl.java:5037) 77 android.view.ViewRootImpl.performDraw(ViewRootImpl.java:4726) 78 android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3904) 79 android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2605) 80 android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9738) 81 android.view.Choreographer$CallbackRecord.run(Choreographer.java:1386) 82 android.view.Choreographer$CallbackRecord.run(Choreographer.java:1394) 83 android.view.Choreographer.doCallbacks(Choreographer.java:1013) 84 android.view.Choreographer.doFrame(Choreographer.java:911) 85 android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1366) 86 android.os.Handler.handleCallback(Handler.java:942) 87 android.os.Handler.dispatchMessage(Handler.java:99) 88 android.os.Looper.loopOnce(Looper.java:211) 89 android.os.Looper.loop(Looper.java:300) 90 android.app.ActivityThread.main(ActivityThread.java:8315) 91 java.lang.reflect.Method.invoke(Native Method) 92 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580) 93 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1028)