You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
12-21 11:01:14.045: E/AndroidRuntime(6819): java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@41801038
12-21 11:01:14.045: E/AndroidRuntime(6819): at android.graphics.Canvas.throwIfCannotDraw(Canvas.java:1084)
12-21 11:01:14.045: E/AndroidRuntime(6819): at android.view.GLES20Canvas.drawBitmap(GLES20Canvas.java:844)
12-21 11:01:14.045: E/AndroidRuntime(6819): at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:490)
12-21 11:01:14.045: E/AndroidRuntime(6819): at android.widget.ImageView.onDraw(ImageView.java:1037)
12-21 11:01:14.045: E/AndroidRuntime(6819): at android.view.View.draw(View.java:14465)
12-21 11:01:14.045: E/AndroidRuntime(6819): at android.view.View.getDisplayList(View.java:13362)
12-21 11:01:14.045: E/AndroidRuntime(6819): at android.view.View.getDisplayList(View.java:13404)
12-21 11:01:14.045: E/AndroidRuntime(6819): at android.view.View.draw(View.java:14182)
12-21 11:01:14.045: E/AndroidRuntime(6819): at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
12-21 11:01:14.045: E/AndroidRuntime(6819): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
12-21 11:01:14.045: E/AndroidRuntime(6819): at android.widget.AbsListView.dispatchDraw(AbsListView.java:2458)
I build a new class and make it extends BasePostprocessor, I do nothing in it. But when it ran, the sample throw the above exception; I just use imagepipeline to download the image, don't use the simpledraweeview.
I suppose you're not handling the lifecycle of the underlying bitmap correctly. You have to keep the CloseableReference around until the image is not needed any more, see http://frescolib.org/docs/closeable-references.html
I build a new class and make it extends BasePostprocessor, I do nothing in it. But when it ran, the sample throw the above exception; I just use imagepipeline to download the image, don't use the simpledraweeview.
The text was updated successfully, but these errors were encountered: