florent37 / MaterialViewPager

A Material Design ViewPager easy to use library

Home Page:https://www.fiches-plateau-moto.fr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

You cannot start a load for a destroyed activity

hmathur127 opened this issue · 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 " bumptech/glide#803 "
solution but i don't know how to implement this solution to MaterialViewPager

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

not working for me :(

same problem someone help please!

Someone with the same question please help!

+1.Where is solutions?