androidx / media

Jetpack Media3 support libraries for media use cases, including ExoPlayer, an extensible media player for Android
https://developer.android.com/media/media3
Apache License 2.0
1.74k stars 416 forks source link

evaluateMediaItemTransitionReason - IllegalStateException #713

Closed captain81 closed 1 year ago

captain81 commented 1 year ago

Version

ExoPlayer 2.14.0

More version details

java.lang.IllegalStateException at com.oplus.tbl.exoplayer2.ExoPlayerImpl.evaluateMediaItemTransitionReason(ExoPlayerImpl.java:18) at com.oplus.tbl.exoplayer2.ExoPlayerImpl.updatePlaybackInfo(ExoPlayerImpl.java:5) at com.oplus.tbl.exoplayer2.ExoPlayerImpl.handlePlaybackInfo(ExoPlayerImpl.java:19) at com.oplus.tbl.exoplayer2.ExoPlayerImpl.lambda$null$1(ExoPlayerImpl.java:1) at com.oplus.tbl.exoplayer2.ExoPlayerImpl.s(Unknown Source:0) at com.oplus.tbl.exoplayer2.s.run(Unknown Source:4) at android.os.Handler.handleCallback(Handler.java:942) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:240) at android.os.Looper.loop(Looper.java:351) at android.app.ActivityThread.main(ActivityThread.java:8422) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)

Devices that reproduce the issue

All

Devices that do not reproduce the issue

NO

Reproducible in the demo app?

Yes

Reproduction steps

Play video, I have seen many people asking this question before, but there has been no clear solution

Expected result

No crash

Actual result

crash

Media

No

Bug Report

captain81 commented 1 year ago

I have seen many people asking this question before, but there has been no clear solution。

https://github.com/google/ExoPlayer/issues/10244 https://github.com/google/ExoPlayer/issues/8639

tianyif commented 1 year ago

Hi @captain81,

Are you able to reliably reproduce this in some specific scenario? I've seen one issue (https://github.com/androidx/media/issues/480) on this question where the reporter said they saw this by setting the shuffle order, but I could just reproduce another exception with their steps at that time.

captain81 commented 1 year ago

I cannot able to reliably reproduce this issue.This stack is collected from customers' phone. I only have this crash stack

tonihei commented 1 year ago

I assume this is just the same issue as #480? The fix is only in release 1.1.1 (or ExoPlayer 2.19.1), so the 2.14.0 you are using won't have it yet. Will close the issue under this assumption. If you can reproduce after updating to the latest version, please file a new issue with the stack trace observed there.