danikula / danikula/AndroidVideoCache
OutOfMemoryErrordeocache:2.7.0'
- Dominant language
- Java
- Stars
- 5.5k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
compile 'com.danikula:videocache:2.7.0'
Stack trace:
java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: Out of memory
at java.lang.Thread.nativeCreate(Native Method)
at java.lang.Thread.start(Thread.java:745)
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:941)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1348)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:89)
at com.danikula.videocache.HttpProxyCacheServer.waitForRequest(HttpProxyCacheServer.java:218)
at com.danikula.videocache.HttpProxyCacheServer.access$100(HttpProxyCacheServer.java:52)
at com.danikula.videocache.HttpProxyCacheServer$WaitRequestsRunnable.run(HttpProxyCacheServer.java:324)
at java.lang.Thread.run(Thread.java:776)
12-25 15:43:55.572 445-7493/? E/ion: set flags ioctrl failed!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at HttpProxyCacheServer.java, especially waitForRequest at line 218 and WaitRequestsRunnable at line 324, then trace how ThreadPoolExecutor creates workers in the reported stack trace. Reproduce the OutOfMemoryError with AndroidVideoCache 2.7.0 and establish a fix that prevents the reported thread-creation failure without breaking request handling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100