android-slideshow icon indicating copy to clipboard operation
android-slideshow copied to clipboard

Handle IllegalArgumentException in Glide load/preload

Open ScreamingHawk opened this issue 7 years ago • 1 comments

java.lang.IllegalArgumentException: 
  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:657)
  at link.standen.michael.slideshow.strategy.image.GlideImageStrategy.preload (GlideImageStrategy.java:42)
  at link.standen.michael.slideshow.ImageActivity.loadImage (ImageActivity.java:501)
java.lang.IllegalArgumentException: 
 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:657)
  at link.standen.michael.slideshow.strategy.image.GlideImageStrategy.load (GlideImageStrategy.java:56)
  at link.standen.michael.slideshow.ImageActivity.loadImage (ImageActivity.java:506)

Not sure what state the application is in at the point that this becomes a problem.

ScreamingHawk avatar Feb 22 '18 18:02 ScreamingHawk

There are two instances of this error. Both in the load and preload calls.

ScreamingHawk avatar Feb 22 '18 18:02 ScreamingHawk