koral-- / android-gif-drawable

Views and Drawable for displaying animated GIFs on Android
Other
9.56k stars 1.78k forks source link

Canvas: trying to use a recycled bitmap android.graphics.Bitmap #808

Closed tianxia-- closed 1 year ago

tianxia-- commented 2 years ago

java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@422a755 at android.graphics.BaseCanvas.throwIfCannotDraw(BaseCanvas.java:87) at android.graphics.RecordingCanvas.throwIfCannotDraw(RecordingCanvas.java:264) at android.graphics.BaseRecordingCanvas.drawBitmap(BaseRecordingCanvas.java:97) at pl.droidsonroids.gif.GifDrawable.draw(SourceFile:4) at android.widget.ImageView.onDraw(ImageView.java:1462) at android.view.View.draw(View.java:23898) at android.view.View.updateDisplayListIfDirty(View.java:22767) at android.view.View.draw(View.java:23628) at android.view.ViewGroup.drawChild(ViewGroup.java:5355) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:5112) at android.view.View.draw(View.java:23901) at android.view.View.updateDisplayListIfDirty(View.java:22767) at android.view.View.draw(View.java:23628) at android.view.ViewGroup.drawChild(ViewGroup.java:5355) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:5112) at com.blue.baseui.widget.InterceptLinearLayout.dispatchDraw(SourceFile:3)

koral-- commented 2 years ago

Attach the code which reproduces your issue.

koral-- commented 1 year ago

Closing due to lack of repro steps.