I am trying to load image from a url but it is giving a blank screen. I have the following implementation
class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContent { ImageLoadTheme { Surface( modifier = Modifier.fillMaxSize() ) { Column { ComposablefunMyView(modifier = Modifier.padding(4.dp)) } } } @OptIn(ExperimentalGlideComposeApi::class) @Composable fun ComposablefunMyView(modifier: Modifier) { GlideImage( model = "", contentDescription = "img", // Crop, Fit, Inside, FillHeight, FillWidth, None contentScale = ContentScale.Crop) } This is what is showing in the log file
W/Glide: Load failed for [ with dimensions [720x1360] class com.bumptech.glide.load.engine.GlideException: Failed to load resource There were 10 root causes: java.lang.RuntimeException(setDataSourceCallback failed: status = 0x80000000) java.lang.RuntimeException(setDataSourceCallback failed: status = 0x80000000) java.lang.RuntimeException(setDataSourceCallback failed: status = 0x80000000) java.lang.RuntimeException(setDataSource failed: status = 0x80000000) java.lang.RuntimeException(setDataSource failed: status = 0x80000000) java.lang.RuntimeException(setDataSourceCallback failed: status = 0x80000000) java.lang.RuntimeException(setDataSourceCallback failed: status = 0x80000000) java.lang.RuntimeException(setDataSourceCallback failed: status = 0x80000000) java.lang.RuntimeException(setDataSource failed: status = 0x80000000) java.lang.RuntimeException(setDataSource failed: status = 0x80000000) call GlideException#logRootCauses(String) for more detail Cause (1 of 6): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{DirectByteBuffer->Object->Drawable}, DATA_DISK_CACHE, There were 3 root causes: java.lang.RuntimeException(setDataSourceCallback failed: status = 0x80000000) java.lang.RuntimeException(setDataSourceCallback failed: status = 0x80000000) java.lang.RuntimeException(setDataSourceCallback failed: status = 0x80000000) call GlideException#logRootCauses(String) for more detail Cause (1 of 4): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{DirectByteBuffer->Drawable->Drawable} There was 1 root cause: java.lang.RuntimeException(setDataSourceCallback failed: status = 0x80000000) call GlideException#logRootCauses(String) for more detail Cause (1 of 1): class java.lang.RuntimeException: setDataSourceCallback failed: status = 0x80000000 Cause (2 of 4): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{DirectByteBuffer->GifDrawable->Drawable} Cause (3 of 4): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{DirectByteBuffer->Bitmap->BitmapDrawable} There was 1 root cause: I have read and applied a few things but none have worked so far. It would be great help if I could find a solution.
3Related questions 8 How to retry image loading, if Glide fails? 1 Glide does not load images 131 Progress bar while loading image using Glide Related questions 8 How to retry image loading, if Glide fails? 1 Glide does not load images 131 Progress bar while loading image using Glide 238 How to round an image with Glide library? 0 picasso not loading all images from firebase url in android 1 Glide not loading some Image URL 6 How to catch Glide Exceptions Properly? 1 Loading image from firebase storage not loading image using glide using Kotlin 1 Loading an image URL into a Kotlin AppWidget using Glide 87 Glide image loading with application context Load 7 more related questions Show fewer related questions
Reset to default