bumptech / bumptech/glide

How to cancel readyAsyncCalls ? There are many AsyncCall in readyAsyncCalls,They take up alot of memory and cause OOM

Open
#4,566 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.11.0

**Integration libraries**: 'com.github.bumptech.glide:okhttp3-integration:4.11.0'

**Device/Android Version**: Android 9

**Issue details / Repro steps / Use case background**:
This problem appeared when running monkey test,when the network is not good, there is a large amount of memory leaks.
After analyzing the hprof file,I found that there are 40000+ AsyncCall objects and they occupy 80m+ memory。

so I want to know how to cancle these AsyncCalls when the memory is low.

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.