bumptech / bumptech/glide

ArrayIndexOutOfBoundsException in FactoryPools

Open
#2,919 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
35k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
8

Description

**Glide Version**: 4.6.1

**Integration libraries**: none

**Device/Android Version**: SM-N910C

**Issue details / Repro steps / Use case background**:
I recently got the below crash report (only once so far). What I do and how I use glide is written here: https://github.com/bumptech/glide/issues/2881

Mainly I don't do anything special, but I use `useUnlimitedSourceGeneratorsPool()` for nested glide calls in my custom loader. Based on the stacktrace I don't know what more I should write here, let me know if you have an idea what could cause this crash and what could be some relevant code to add

**Stack trace / LogCat**:
```ruby
java.lang.ArrayIndexOutOfBoundsException: length=150; index=150
at android.support.v4.util.Pools$SimplePool.acquire(Pools.java:106)
at com.bumptech.glide.util.pool.FactoryPools$FactoryPool.acquire(FactoryPools.java:157)
at com.bumptech.glide.load.engine.Engine$DecodeJobFactory.build(Engine.java:427)
at com.bumptech.glide.load.engine.Engine.load(Engine.java:209)
at com.bumptech.glide.request.SingleRequest.onSizeReady(SingleRequest.java:451)
at com.bumptech.glide.request.RequestFutureTarget.getSize(RequestFutureTarget.java:132)
at com.bumptech.glide.request.SingleRequest.begin(SingleRequest.java:264)
at com.bumptech.glide.manager.RequestTracker.runRequest(RequestTracker.java:42)
at com.bumptech.glide.RequestManager.track(RequestManager.java:634)
at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:618)
at com.bumptech.glide.RequestBuilder.into(RequestBuilder.java:583)
at com.bumptech.glide.RequestBuilder$1.run(RequestBuilder.java:743)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7225)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
```

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.