Play the video, will meet OutOfMemory
@tianyif is already working on this.
Since Oct 13, 2025.
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
Version
Media3 1.8.0
More version details
No response
Devices that reproduce the issue
VIVO S9
Devices that do not reproduce the issue
Reproducible in the demo app?
Yes
Reproduction steps
(1) play the video :
https://v26-dy.ixigua.com/f602eba236cdc4113aa93db39ef4971a/68ed633c/video/tos/cn/tos-cn-v-0015c003/oQITgQqISIsjFtmiZPPBUqAviagDANxJELENV/?a=2011&ch=0&cr=0&dr=0&net=5&cd=1|0|0|0&cv=1&br=993&bt=993&cs=0&ds=3&ft=k7Fz7VVywIiRZm8Zmo~pK7pswAp.L21UvrKtqj02do0g3cI&mime_type=video_mp4&qs=13&rc=ajZuNms5cjk1NjMzNGkzM0BpajZuNms5cjk1NjMzNGkzM0Aval5eMmRrLjZhLS1kLWFzYSMval5eMmRrLjZhLS1kLWFzcw%3D%3D&btag=80000e00038000&dy_q=1760085565&l=202510101639257B42019B3FA54C93853D
(2) wait 20S , will meet outofMemomy
Expected result
plays successfully
Actual result
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: Playback error
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: androidx.media3.exoplayer.ExoPlaybackException: Source error
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: at androidx.media3.exoplayer.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:927)
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:903)
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: at android.os.Handler.dispatchMessage(Handler.java:102)
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: at android.os.Looper.loopOnce(Looper.java:223)
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: at android.os.Looper.loop(Looper.java:324)
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: at android.os.HandlerThread.run(HandlerThread.java:67)
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: Caused by: androidx.media3.exoplayer.upstream.Loader$UnexpectedLoaderException: Unexpected OutOfMemoryError: Failed to allocate a 71696552 byte allocation with 15068056 free bytes and 14MB until OOM, target footprint 536870912, growth limit 536870912
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: at androidx.media3.exoplayer.upstream.Loader$LoadTask.run(Loader.java:482)
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: at java.lang.Thread.run(Thread.java:1015)
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: Caused by: java.lang.OutOfMemoryError: Failed to allocate a 71696552 byte allocation with 15068056 free bytes and 14MB until OOM, target footprint 536870912, growth limit 536870912
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: at androidx.media3.extractor.mp4.BoxParser.parseStbl(BoxParser.java:819)
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: at androidx.media3.extractor.mp4.BoxParser.parseTraks(BoxParser.java:181)
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: at androidx.media3.extractor.mp4.Mp4Extractor.processMoovAtom(Mp4Extractor.java:707)
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: at androidx.media3.extractor.mp4.Mp4Extractor.processAtomEnded(Mp4Extractor.java:651)
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: at androidx.media3.extractor.mp4.Mp4Extractor.readAtomPayload(Mp4Extractor.java:627)
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: at androidx.media3.extractor.mp4.Mp4Extractor.read(Mp4Extractor.java:405)
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: at androidx.media3.exoplayer.source.BundledExtractorsAdapter.read(BundledExtractorsAdapter.java:147)
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: at androidx.media3.exoplayer.source.ProgressiveMediaPeriod$ExtractingLoadable.load(ProgressiveMediaPeriod.java:1146)
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: at androidx.media3.exoplayer.upstream.Loader$LoadTask.run(Loader.java:453)
10-13 16:49:32.952 9490 9592 E ExoPlayerImplInternal: ... 3 more
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.