androidx / androidx/media

java.lang.OutOfMemoryError is occurred when play specific video

Open
#3,274 0 comments 0 reactions 1 assignee View on GitHub

@tianyif is already working on this.

Since Jun 18, 2026.

bug needs triage
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
  1. 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

logs-media.txt

Bug Report
  • You will email the zip file produced by adb bugreport to android-media-github@google.com after filing this issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.