bumptech / glide

An image loading and caching library for Android focused on smooth scrolling
https://bumptech.github.io/glide/
Other
34.59k stars 6.12k forks source link

使用gilde 4.12 获取U盘视频封面图,拔掉U盘后出现Channel is unrecoverably broken and will be disposed! #5130

Open 13760661144 opened 1 year ago

13760661144 commented 1 year ago

使用gilde 4.12 获取U盘视频封面图,拔掉U盘后出现Channel is unrecoverably broken and will be disposed!

Glide Version:

Integration libraries:

Device/Android Version:

Issue details / Repro steps / Use case background:

Glide load line / GlideModule (if any) / list Adapter code (if any):

Glide.with...

Layout XML:

<FrameLayout xmlns:android="...

Stack trace / LogCat:

paste stack trace and/or log here
13760661144 commented 1 year ago

RequestOptions requestOptions = new RequestOptions(); requestOptions.diskCacheStrategy(DiskCacheStrategy.ALL).frame(1 1000 1000).placeholder(R.drawable.main_grid_item_image_video).centerCrop(); Glide.with(mContext).setDefaultRequestOptions(requestOptions). load(mediaList.get(position).getPath()) .apply(new RequestOptions().transforms(new CenterCrop(), new RoundedCorners(10))) .into(viewHolder.image);