Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

java.lang.OutOfMemoryError is occurred when play specific video

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

Maintainers usually reply within 4 days

@tianyif is already working on this.

Since Jun 18, 2026.

Assessment

This issue has not been assessed yet.

Description

bug needs triage
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 [email protected] after filing this issue.
Dominant language
Java
Stars
3.1k
Forks
998
Avg merge
6d 8h
Merged PRs (30d)
2

Getting set up

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.

More from androidx/media

All issues in androidx/media

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.