Repository: davemorrissey/subsampling-scale-image-view

Issue #213: Crash happened at:com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.onDraw(SubsamplingScaleImageView.java:1010)
Created: 2016-05-04T04:58:19Z
Canvas: trying to use a recycled bitmap android.graphics.Bitmap@2abda1a1 java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@2abda1a1 at android.graphics.Canvas.throwIfCannotDraw(Canvas.java:1225) at android.view.GLES20Canvas.drawBitmap(GLES20Canvas.java:589) at com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.onDraw(SubsamplingScaleImageView.java:1010) at android.view.View.draw(View.java:16209)
I use this lib like below:
Glide.with(this).load(mGalleryItem.getStanderImageUrl()).asBitmap().into(new SimpleTarget<Bitmap>() { @Override public void onResourceReady(Bitmap resource, GlideAnimation<? super Bitmap> glideAnimation) { mThumbBmp = resource; mIv.setImage(ImageSource.bitmap(resource)); } });
when I finish this Activity and turn in this Activity again and again whth loading the same picture,crash happened.
This happened on Samsung Note 4,android 5.0.1

Duplicate issue #288: Exception java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap
Created: 2017-01-23T18:26:35Z
hi, i've had a problem, maybe is it a failure with this lib?:
android.graphics.Canvas.throwIfCannotDraw (Canvas.java:1282)
android.view.GLES20Canvas.drawBitmap (GLES20Canvas.java:589)
com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.onDraw (SubsamplingScaleImageView.java:1073)
android.view.View.draw (View.java:15321)
android.view.View.updateDisplayListIfDirty (View.java:14257)
android.view.View.getDisplayList (View.java:14279)
android.view.View.draw (View.java:15049)
android.view.ViewGroup.drawChild (ViewGroup.java:3406)
android.view.ViewGroup.dispatchDraw (ViewGroup.java:3199)
android.view.View.draw (View.java:15324)
android.view.View.updateDisplayListIfDirty (View.java:14257)
android.view.View.getDisplayList (View.java:14279)
android.view.View.draw (View.java:15049)
android.view.ViewGroup.drawChild (ViewGroup.java:3406)
android.view.ViewGroup.dispatchDraw (ViewGroup.java:3199)
android.view.View.updateDisplayListIfDirty (View.java:14252)
android.view.View.getDisplayList (View.java:14279)
android.view.View.draw (View.java:15049)
android.view.ViewGroup.drawChild (ViewGroup.java:3406)
android.view.ViewGroup.dispatchDraw (ViewGroup.java:3199)
android.view.View.updateDisplayListIfDirty (View.java:14252)
android.view.View.getDisplayList (View.java:14279)
android.view.View.draw (View.java:15049)
android.view.ViewGroup.drawChild (ViewGroup.java:3406)
android.view.ViewGroup.dispatchDraw (ViewGroup.java:3199)
android.view.View.updateDisplayListIfDirty (View.java:14252)
android.view.View.getDisplayList (View.java:14279)
android.view.View.draw (View.java:15049)
android.view.ViewGroup.drawChild (ViewGroup.java:3406)
android.view.ViewGroup.dispatchDraw (ViewGroup.java:3199)
android.view.View.updateDisplayListIfDirty (View.java:14252)
android.view.View.getDisplayList (View.java:14279)
android.view.View.draw (View.java:15049)
android.view.ViewGroup.drawChild (ViewGroup.java:3406)
android.view.ViewGroup.dispatchDraw (ViewGroup.java:3199)
android.view.View.updateDisplayListIfDirty (View.java:14252)
android.view.View.getDisplayList (View.java:14279)
android.view.View.draw (View.java:15049)
android.view.ViewGroup.drawChild (ViewGroup.java:3406)
android.view.ViewGroup.dispatchDraw (ViewGroup.java:3199)
android.view.View.draw (View.java:15324)
android.widget.FrameLayout.draw (FrameLayout.java:598)
com.android.internal.policy.impl.PhoneWindow$DecorView.draw (PhoneWindow.java:2653)
android.view.View.updateDisplayListIfDirty (View.java:14257)
android.view.View.getDisplayList (View.java:14279)
android.view.ThreadedRenderer.updateViewTreeDisplayList (ThreadedRenderer.java:273)
android.view.ThreadedRenderer.updateRootDisplayList (ThreadedRenderer.java:279)
android.view.ThreadedRenderer.draw (ThreadedRenderer.java:318)
android.view.ViewRootImpl.draw (ViewRootImpl.java:2540)
android.view.ViewRootImpl.performDraw (ViewRootImpl.java:2356)
android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:1986)
android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1065)
android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:5901)
android.view.Choreographer$CallbackRecord.run (Choreographer.java:767)
android.view.Choreographer.doCallbacks (Choreographer.java:580)
android.view.Choreographer.doFrame (Choreographer.java:550)
android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:753)
android.os.Handler.handleCallback (Handler.java:739)
android.os.Handler.dispatchMessage (Handler.java:95)
android.os.Looper.loop (Looper.java:211)
(Android 5.1.1, sony c6903)
I'm not sure what is at fault, have you any idea?
thx :)

Closing comment (2017-01-23T21:17:57Z): Duplicate of #213