java.lang.RuntimeException

Canvas: trying to use a recycled bitmap android.graphics.Bitmap@21e6ac58

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web38569

  • Canvas: trying to use a recycled bitmap android.graphics.Bitmap@21e6ac58
  • via GitHub by andreyice
    , 1 year ago
    Canvas: trying to use a recycled bitmap android.graphics.Bitmap@427b7ed
  • Canvas: trying to use a recycled bitmap android.graphics.Bitmap@43180af8
  • Stack trace

    • java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@21e6ac58 at android.graphics.Canvas.throwIfCannotDraw(Canvas.java:1084) at android.view.GLES20Canvas.drawBitmap(GLES20Canvas.java:844) at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:490) at android.widget.ImageView.onDraw(ImageView.java:1037) at android.view.View.draw(View.java:14740) at android.view.View.getDisplayList(View.java:13636) at android.view.View.getDisplayList(View.java:13678) at android.view.View.draw(View.java:14457) at android.view.ViewGroup.drawChild(ViewGroup.java:3117) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2954) at android.view.View.draw(View.java:14743) at android.widget.FrameLayout.draw(FrameLayout.java:472) at com.balysv.materialripple.MaterialRippleLayout.draw(MaterialRippleLayout.java:479) at android.view.View.getDisplayList(View.java:13636) at android.view.View.getDisplayList(View.java:13678) at android.view.View.draw(View.java:14457) at android.view.ViewGroup.drawChild(ViewGroup.java:3117) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2954) at android.view.View.getDisplayList(View.java:13631) at android.view.View.getDisplayList(View.java:13678) at android.view.View.draw(View.java:14457) at android.view.ViewGroup.drawChild(ViewGroup.java:3117) at android.support.v7.widget.RecyclerView.drawChild(RecyclerView.java:3838) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2954) at android.view.View.draw(View.java:14743) at android.support.v7.widget.RecyclerView.draw(RecyclerView.java:3308) at android.view.View.getDisplayList(View.java:13636) at android.view.View.getDisplayList(View.java:13678) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3091) at android.view.View.getDisplayList(View.java:13574) at android.view.View.getDisplayList(View.java:13678) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3091) at android.view.View.getDisplayList(View.java:13574) at android.view.View.getDisplayList(View.java:13678) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3091) at android.view.View.getDisplayList(View.java:13574) at android.view.View.getDisplayList(View.java:13678) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3091) at android.view.View.getDisplayList(View.java:13574) at android.view.View.getDisplayList(View.java:13678) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3091) at android.view.View.getDisplayList(View.java:13574) at android.view.View.getDisplayList(View.java:13678) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3091) at android.view.View.getDisplayList(View.java:13574) at android.view.View.getDisplayList(View.java:13678) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3091) at android.view.View.getDisplayList(View.java:13574) at android.view.View.getDisplayList(View.java:13678) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3091) at android.view.View.getDisplayList(View.java:13574) at android.view.View.getDisplayList(View.java:13678) at android.view.HardwareRenderer$GlRenderer.buildDisplayList(HardwareRenderer.java:1570) at android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:1449) at android.view.ViewRootImpl.draw(ViewRootImpl.java:2401) at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2273) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1903) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1020) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5762) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:771) at android.view.Choreographer.doCallbacks(Choreographer.java:574) at android.view.Choreographer.doFrame(Choreographer.java:544) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:757) at android.os.Handler.handleCallback(Handler.java:733)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    7 times, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    4 times, 1 year ago
    2 more bugmates