Open
Description
Glide Version:4.3.0
Integration libraries:okhttp3
Device/Android Version:Android Emulator P 27
Issue details / Repro steps / Use case background:
In a weak network (3G), the local picture is displayed only after the network picture fails to load.
Glide load line / GlideModule
(if any) / list Adapter code (if any):
Glide.with(this).load("http://img5.imgtn.bdimg.com/it/u=4054007864,2464688467&fm=27&gp=0.jpg").into(addImageView("Network Image"));
Glide.with(this).load("http://img.zcool.cn/community/01f17956138a5832f875a132eb1d85.jpg@1280w_1l_2o_100sh.jpg").into(addImageView("Network Image"));
Glide.with(this).load("http://img.zcool.cn/community/01ad9a56f29a3832f875a9448d2d7c.jpg").into(addImageView("Network Image"));
Glide.with(this).load("http://pic.58pic.com/58pic/13/76/61/33N58PICRdp_1024.jpg").into(addImageView("Network Image"));
Glide.with(this).load("http://img3.redocn.com/tupian/20150204/qingxinsuyashuyebiankuangppt_3868316.jpg").into(addImageView("Network Image"));
Glide.with(this).load("http://pic31.nipic.com/20130804/12906030_061954811000_2.png").into(addImageView("Network Image"));
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
Glide.with(TestBitmapActivity.this).load("/mnt/sdcard/temp.jpg").into(addImageView("local Image"));
}
},2000);
Layout XML:
no xml
Stack trace / LogCat:
03-30 05:19:05.127 5057-5057/com.paisheng.example.pslib I/ViewTarget: Glide treats LayoutParams.WRAP_CONTENT as a request for an image the size of this device's screen dimensions. If you want to load the original image and are ok with the corresponding memory cost and OOMs (depending on the input size), use .override(Target.SIZE_ORIGINAL). Otherwise, use LayoutParams.MATCH_PARENT, set layout_width and layout_height to fixed dimension, or use .override() with fixed dimensions.
03-30 05:19:05.129 5057-5057/com.paisheng.example.pslib I/ViewTarget: Glide treats LayoutParams.WRAP_CONTENT as a request for an image the size of this device's screen dimensions. If you want to load the original image and are ok with the corresponding memory cost and OOMs (depending on the input size), use .override(Target.SIZE_ORIGINAL). Otherwise, use LayoutParams.MATCH_PARENT, set layout_width and layout_height to fixed dimension, or use .override() with fixed dimensions.
03-30 05:19:06.780 5057-5057/com.paisheng.example.pslib I/ViewTarget: Glide treats LayoutParams.WRAP_CONTENT as a request for an image the size of this device's screen dimensions. If you want to load the original image and are ok with the corresponding memory cost and OOMs (depending on the input size), use .override(Target.SIZE_ORIGINAL). Otherwise, use LayoutParams.MATCH_PARENT, set layout_width and layout_height to fixed dimension, or use .override() with fixed dimensions.
03-30 05:19:06.780 5057-5057/com.paisheng.example.pslib I/ViewTarget: Glide treats LayoutParams.WRAP_CONTENT as a request for an image the size of this device's screen dimensions. If you want to load the original image and are ok with the corresponding memory cost and OOMs (depending on the input size), use .override(Target.SIZE_ORIGINAL). Otherwise, use LayoutParams.MATCH_PARENT, set layout_width and layout_height to fixed dimension, or use .override() with fixed dimensions.
03-30 05:19:15.202 5057-5057/com.paisheng.example.pslib W/Glide: Load failed for http://pic.58pic.com/58pic/13/76/61/33N58PICRdp_1024.jpg with size [2392x2392]
class com.bumptech.glide.load.engine.GlideException: Failed to load resource
03-30 05:19:19.633 5057-5057/com.paisheng.example.pslib W/Glide: Load failed for http://img3.redocn.com/tupian/20150204/qingxinsuyashuyebiankuangppt_3868316.jpg with size [2392x2392]
class com.bumptech.glide.load.engine.GlideException: Failed to load resource
03-30 05:19:29.641 5057-5057/com.paisheng.example.pslib W/Glide: Load failed for http://pic31.nipic.com/20130804/12906030_061954811000_2.png with size [2392x2392]
class com.bumptech.glide.load.engine.GlideException: Failed to load resource
03-30 05:19:31.668 5057-5057/com.paisheng.example.pslib W/Glide: Load failed for http://img5.imgtn.bdimg.com/it/u=4054007864,2464688467&fm=27&gp=0.jpg with size [2392x2392]
class com.bumptech.glide.load.engine.GlideException: Failed to load resource
03-30 05:19:41.684 5057-5057/com.paisheng.example.pslib W/Glide: Load failed for http://img.zcool.cn/community/01ad9a56f29a3832f875a9448d2d7c.jpg with size [2392x2392]
class com.bumptech.glide.load.engine.GlideException: Failed to load resource
03-30 05:19:47.693 5057-5057/com.paisheng.example.pslib W/Glide: Load failed for http://img.zcool.cn/community/01f17956138a5832f875a132eb1d85.jpg@1280w_1l_2o_100sh.jpg with size [2392x2392]
class com.bumptech.glide.load.engine.GlideException: Failed to load resource