MaterialViewPager icon indicating copy to clipboard operation
MaterialViewPager copied to clipboard

You cannot start a load for a destroyed activity

Open hmathur127 opened this issue 8 years ago • 5 comments

FATAL EXCEPTION: main Process: my.hollywood.data.collection, PID: 9225 java.lang.IllegalArgumentException: You cannot start a load for a destroyed activity at com.bumptech.glide.manager.RequestManagerRetriever.assertNotDestroyed(RequestManagerRetriever.java:134) at com.bumptech.glide.manager.RequestManagerRetriever.get(RequestManagerRetriever.java:102) at com.bumptech.glide.manager.RequestManagerRetriever.get(RequestManagerRetriever.java:87) at com.bumptech.glide.Glide.with(Glide.java:629) at com.github.florent37.materialviewpager.header.MaterialViewPagerImageHelper$1.onAnimationEnd(MaterialViewPagerImageHelper.java:42) at android.support.v4.view.ViewPropertyAnimatorCompatJB$1.onAnimationEnd(ViewPropertyAnimatorCompatJB.java:47) at android.view.ViewPropertyAnimator$AnimatorEventListener.onAnimationEnd(ViewPropertyAnimator.java:1114) at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1239) at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:766) at android.animation.ValueAnimator$AnimationHandler$1.run(ValueAnimator.java:801) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858) at android.view.Choreographer.doCallbacks(Choreographer.java:670) at android.view.Choreographer.doFrame(Choreographer.java:603) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844) at android.os.Handler.handleCallback(Handler.java:746) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5443) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)


due to Glide app crashing with above logcat.

after searching for solution i introduced to this " https://github.com/bumptech/glide/issues/803 " solution but i don't know how to implement this solution to MaterialViewPager

hmathur127 avatar Mar 26 '17 15:03 hmathur127

Use Glide.with(getApplicationContext())........

SwetabjaGit avatar Jun 18 '17 09:06 SwetabjaGit

not working for me :(

hmathur127 avatar Jun 18 '17 14:06 hmathur127

same problem someone help please!

Touchunit avatar Aug 29 '17 10:08 Touchunit

Someone with the same question please help!

zjxuzhj avatar Jan 15 '18 05:01 zjxuzhj

+1.Where is solutions?

arnyigor avatar Aug 16 '18 08:08 arnyigor