bumptech / bumptech/glide

com.bumptech.glide.load.engine.GlideException

Open
#5,158 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
35k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
8

Description

**Glide Version**: 4.14.2

**Integration libraries**: com.github.bumptech.glide:glide:4.14.2
com.squareup.retrofit2:retrofit:2.9.0
com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.3

**Device/Android Version**: All device and 6 to 13 android version

**Issue details / Repro steps / Use case background**:
Non-fatal Exception: com.bumptech.glide.load.engine.GlideException: Failed to load resource
There was 1 root cause:
com.bumptech.glide.load.HttpException(Failed to connect or obtain data, status code: -1)
call GlideException#logRootCauses(String) for more detail

Non-fatal Exception: com.bumptech.glide.load.engine.GlideException: Failed to load resource
There were 4 root causes:
java.io.IOException(File unsuitable for memory mapping)
java.lang.RuntimeException(setDataSource failed: status = 0xFFFFFFEA)
java.io.IOException(File unsuitable for memory mapping)
java.lang.RuntimeException(setDataSource failed: status = 0xFFFFFFEA)
call GlideException#logRootCauses(String) for more detail

**Glide load line / `GlideModule` (if any) / list Adapter code (if any)**:
```java
Glide.with...
url?.let {
Glide.with(MyApplication.instance.applicationContext).setDefaultRequestOptions( RequestOptions()
.timeout(60000))
.asBitmap()
.load(thumb).listener(requestListener)
// .apply(RequestOptions.diskCacheStrategyOf(DiskCacheStrategy.AUTOMATIC))
.diskCacheStrategy(DiskCacheStrategy.AUTOMATIC).placeholder(placeHolder)
.error(url)
.into(imageView)
//
}
```

**Layout XML**:
```xml

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.