Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeException at drawChild(SwipeBackLayout.java) #18

Open
githubtongdu opened this issue Nov 21, 2017 · 0 comments
Open

RuntimeException at drawChild(SwipeBackLayout.java) #18

githubtongdu opened this issue Nov 21, 2017 · 0 comments

Comments

@githubtongdu
Copy link

githubtongdu commented Nov 21, 2017

非常谢谢提供了这么好的控件,一直使用没问题
可是最近在友盟统计中发现如下2条错误日志(Android 6.0和7.1.1,控件版本0.3.0),似乎是由SwipeBackLayout.drawChild()引起的,可是看源码看不出啥问题,麻烦给点思路:

java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@81a0edf
	at android.graphics.Canvas.throwIfCannotDraw(Canvas.java:1271)
	at android.view.DisplayListCanvas.throwIfCannotDraw(DisplayListCanvas.java:257)
	at android.graphics.Canvas.drawBitmap(Canvas.java:1415)
	at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:528)
	at android.widget.ImageView.onDraw(ImageView.java:1298)
	at android.view.View.draw(View.java:17268)
	at android.view.View.updateDisplayListIfDirty(View.java:16250)
	at android.view.View.draw(View.java:17034)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3784)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3570)
	at android.view.View.draw(View.java:17271)
	at android.view.View.updateDisplayListIfDirty(View.java:16250)
	at android.view.View.draw(View.java:17034)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3784)
	at android.widget.ListView.drawChild(ListView.java:3527)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3570)
	at android.widget.AbsListView.dispatchDraw(AbsListView.java:2677)
	at android.widget.ListView.dispatchDraw(ListView.java:3522)
	at android.view.View.draw(View.java:17271)
	at android.widget.AbsListView.draw(AbsListView.java:4504)
	at android.view.View.updateDisplayListIfDirty(View.java:16250)
	at android.view.View.draw(View.java:17034)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3784)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3570)
	at android.view.View.draw(View.java:17271)
	at android.view.View.updateDisplayListIfDirty(View.java:16250)
	at android.view.View.draw(View.java:17034)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3784)
	at me.yokeyword.swipebackfragment.SwipeBackLayout.drawChild(SwipeBackLayout.java)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3570)
	at android.view.View.draw(View.java:17271)
	at android.view.View.updateDisplayListIfDirty(View.java:16250)
	at android.view.View.draw(View.java:17034)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3784)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3570)
	at android.view.View.draw(View.java:17271)
	at android.support.v4.view.ViewPager.draw(ViewPager.java)
	at android.view.View.updateDisplayListIfDirty(View.java:16250)
	at android.view.View.draw(View.java:17034)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3784)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3570)
	at android.view.View.draw(View.java:17271)
	at android.view.View.updateDisplayListIfDirty(View.java:16250)
	at android.view.View.draw(View.java:17034)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3784)
	at me.yokeyword.swipebackfragment.SwipeBackLayout.drawChild(SwipeBackLayout.java)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3570)
	at android.view.View.draw(View.java:17271)
	at android.view.View.updateDisplayListIfDirty(View.java:16250)
	at android.view.View.draw(View.java:17034)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3784)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3570)
	at android.view.View.draw(View.java:17271)
	at android.support.v4.view.ViewPager.draw(ViewPager.java)
	at android.view.View.updateDisplayListIfDirty(View.java:16250)
	at android.view.View.draw(View.java:17034)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3784)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3570)
	at android.view.View.updateDisplayListIfDirty(View.java:16245)
	at android.view.View.draw(View.java:17034)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3784)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3570)
	at android.view.View.updateDisplayListIfDirty(View.java:16245)
	at android.view.View.draw(View.java:17034)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3784)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3570)
	at android.view.View.updateDisplayListIfDirty(View.java:16245)
	at android.view.View.draw(View.java:17034)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3784)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3570)
	at android.view.View.updateDisplayListIfDirty(View.java:16245)
	at android.view.View.draw(View.java:17034)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3784)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3570)
	at android.view.View.draw(View.java:17271)
	at android.view.View.updateDisplayListIfDirty(View.java:16250)
	at android.view.View.draw(View.java:17034)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3784)
	at me.yokeyword.swipebackfragment.SwipeBackLayout.drawChild(SwipeBackLayout.java)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3570)
	at android.view.View.updateDisplayListIfDirty(View.java:16245)
	at android.view.View.draw(View.java:17034)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3784)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3570)
	at android.view.View.updateDisplayListIfDirty(View.java:16245)
	at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:648)
	at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:654)
	at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:762)
	at android.view.ViewRootImpl.draw(ViewRootImpl.java:3090)
	at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2887)
	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2449)
	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1414)
	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6846)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:878)
	at android.view.Choreographer.doCallbacks(Choreographer.java:690)
	at android.view.Choreographer.doFrame(Choreographer.java:625)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:864)
	at android.os.Handler.handleCallback(Handler.java:751)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:186)
	at android.app.ActivityThread.main(ActivityThread.java:6491)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:914)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:804)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant