androidx / androidx/media

Preload media period not prepared when onContinueLoadingRequested is called

Open
#2,315 4 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

Version

Media3 1.5.1

More version details

Devices that reproduce the issue

Android14 Redmi Note 13 Pro 5G

Devices that do not reproduce the issue

都复现

Reproducible in the demo app?

No

Reproduction steps

Expected result

无奔溃

Actual result
Fatal Exception: java.lang.IllegalStateException:
       at androidx.media3.common.util.Assertions.checkState(Assertions.java:85)
       at androidx.media3.exoplayer.source.ProgressiveMediaPeriod.assertPrepared(ProgressiveMediaPeriod.java:999)
       at androidx.media3.exoplayer.source.ProgressiveMediaPeriod.getBufferedPositionUs(ProgressiveMediaPeriod.java)
       at androidx.media3.exoplayer.source.preload.PreloadMediaPeriod.getBufferedPositionUs(PreloadMediaPeriod.java:264)
       at androidx.media3.exoplayer.source.preload.PreloadMediaSource$PreloadMediaPeriodCallback.lambda$onContinueLoadingRequested$1(PreloadMediaSource.java:508)
       at android.os.Handler.handleCallback(Handler.java:883)
       at android.os.Handler.dispatchMessage(Handler.java:100)
       at android.os.Looper.loop(Looper.java:224)
       at android.app.ActivityThread.main(ActivityThread.java:7562)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)

[com.android.thememanager_issue_2947d0273e7f29d94ddff2a6db7b788f_crash_session_67EE316A008700017C745A594FC6525D_DNE_0_v2_stacktrace.txt](https://github.com/user-attachments/files/19643871/com.android.thememanager_issue_2947d0273e7f29d94ddff2a6db7b788f_crash_session_67EE316A008700017C745A594FC6525D_DNE_0_v2_stacktrace.txt)

Media

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.