java.lang.OutOfMemoryError is occurred when play specific video
@tianyif is already working on this.
Since Jun 18, 2026.
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
Version
Media3 main branch
More version details
Not
Devices that reproduce the issue
Samsung S24 Ultra
Devices that do not reproduce the issue
Not
Reproducible in the demo app?
Yes
Reproduction steps
- Play local video: https://drive.google.com/file/d/1ICSjdRrwtMWyQ7bO8sLuypTa8uk9iki3/view?usp=sharing
Expected result
Video is playing
Actual result
Crash is occurred:
java.lang.OutOfMemoryError: Failed to allocate a 24 byte allocation with 224864 free bytes and 219KB until OOM, target footprint 268435456, growth limit 268435456; giving up on allocation because <1% of heap free after GC.
at com.android.internal.os.BinderInternal$GcWatcher.finalize(BinderInternal.java:64)
at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:389)
at java.lang.Daemons$FinalizerDaemon.processReference(Daemons.java:369)
at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:354)
at java.lang.Daemons$Daemon.run(Daemons.java:135)
Media
Bug Report
- You will email the zip file produced by
adb bugreportto android-media-github@google.com after filing this issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.