-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NullPointerException #2025
Comments
I played the provided stream in the demo app and it didn't crash. Does this issue always occur for you, or only occasionally? Please can you provide more info about how we can reproduce the problem? Without this, it's hard to investigate any further. The stack trace looks like |
已经成功收到您的邮件
|
感谢您的回复
感谢您的回复 |
Thanks for the reply - I'm just including your reply here after I ran it through google translate:
Given that this happens with very low probability I'm afraid it's hard for us to investigate. I'll assign it to the HLS expert to see if there's an obvious race condition problem with the way HLS periods are prepared and released. |
Version
Media3 1.5.0
More version details
java.lang.NullPointerException: Attempt to invoke interface method 'void androidx.media3.exoplayer.source.MediaPeriod$Callback.onPrepared(androidx.media3.exoplayer.source.MediaPeriod)' on a null object reference
at androidx.media3.exoplayer.hls.HlsMediaPeriod$SampleStreamWrapperCallback.onPrepared(HlsMediaPeriod.java:942)
at androidx.media3.exoplayer.hls.HlsSampleStreamWrapper.maybeFinishPrepare(HlsSampleStreamWrapper.java:1332)
at androidx.media3.exoplayer.hls.HlsSampleStreamWrapper.$r8$lambda$n_MpjkbSugVnCnE8WpH6RrpZ5gA(Unknown Source:0)
at androidx.media3.exoplayer.hls.HlsSampleStreamWrapper$$ExternalSyntheticLambda2.run(Unknown Source:2)
at android.os.Handler.handleCallback(Handler.java:900)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:219)
at android.os.HandlerThread.run(HandlerThread.java:67)
Devices that reproduce the issue
huawei C3 Android 10
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
No
Reproduction steps
使用代码如下:
Expected result
功能逻辑正常
Actual result
报了一个java.lang.NullPointerException,概率非常低,只遇到过一次,无法复现
Media
https://hls.media.yangcong345.com/fullHigh/fullHigh_8ff4741e-3b25-4a25-baaf-8f01bb5d77c7.m3u8
Bug Report
adb bugreport
to [email protected] after filing this issue.The text was updated successfully, but these errors were encountered: