You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to stream audio using HlsMediaSource and using setAllowChunklessPreparation(true) causes an NPE when buffering. If not using chunkless preparation, the same audio stream plays perfectly. (It also used to play with no problems on exoplayer 2.9.x with the chunkless preparation.)
[REQUIRED] Reproduction steps
Download the exoplayer demo app, search up the HlsMediaSource.Factory use, add .setAllowChunklessPreparation(true) before .createMediaSource(uri) and run the demo.
[REQUIRED] Link to test content
I reproduced this with a streaming audio .m3u8 file that I cannot post a link to here. Will send email. I reduced the exolist.json file to this:
Provide a JSON snippet for the demo app’s media.exolist.json file, or a link to
media that reproduces the issue. If you don't wish to post it publicly, please
submit the issue, then email the link to dev.exoplayer@gmail.com using a subject
in the format "Issue #1234". Provide all the metadata we'd need to play the
content like drm license urls or similar. If the content is accessible only in
certain countries or regions, please say so.
[REQUIRED] A full bug report captured from the device
While you wait for my email with an included bug report, here's a little stack trace:
2019-05-10 11:19:56.597 19396-19933/com.google.android.exoplayer2.demo E/ExoPlayerImplInternal: Internal runtime error.
java.lang.NullPointerException: Attempt to read from field 'int com.google.android.exoplayer2.Format.roleFlags' on a null object reference
at com.google.android.exoplayer2.source.hls.HlsMediaPeriod.deriveAudioFormat(HlsMediaPeriod.java:805)
at com.google.android.exoplayer2.source.hls.HlsMediaPeriod.buildAndPrepareMainSampleStreamWrapper(HlsMediaPeriod.java:626)
at com.google.android.exoplayer2.source.hls.HlsMediaPeriod.buildAndPrepareSampleStreamWrappers(HlsMediaPeriod.java:458)
at com.google.android.exoplayer2.source.hls.HlsMediaPeriod.prepare(HlsMediaPeriod.java:146)
at com.google.android.exoplayer2.ExoPlayerImplInternal.maybeUpdateLoadingPeriod(ExoPlayerImplInternal.java:1619)
at com.google.android.exoplayer2.ExoPlayerImplInternal.updatePeriods(ExoPlayerImplInternal.java:1482)
at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:552)
at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:326)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:214)
at android.os.HandlerThread.run(HandlerThread.java:65)
2019-05-10 11:19:56.599 19396-19396/com.google.android.exoplayer2.demo E/EventLogger: playerFailed [1.04, 0.00, window=0, period=0]
com.google.android.exoplayer2.ExoPlaybackException: java.lang.NullPointerException: Attempt to read from field 'int com.google.android.exoplayer2.Format.roleFlags' on a null object reference
at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:397)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:214)
at android.os.HandlerThread.run(HandlerThread.java:65)
Caused by: java.lang.NullPointerException: Attempt to read from field 'int com.google.android.exoplayer2.Format.roleFlags' on a null object reference
at com.google.android.exoplayer2.source.hls.HlsMediaPeriod.deriveAudioFormat(HlsMediaPeriod.java:805)
at com.google.android.exoplayer2.source.hls.HlsMediaPeriod.buildAndPrepareMainSampleStreamWrapper(HlsMediaPeriod.java:626)
at com.google.android.exoplayer2.source.hls.HlsMediaPeriod.buildAndPrepareSampleStreamWrappers(HlsMediaPeriod.java:458)
at com.google.android.exoplayer2.source.hls.HlsMediaPeriod.prepare(HlsMediaPeriod.java:146)
at com.google.android.exoplayer2.ExoPlayerImplInternal.maybeUpdateLoadingPeriod(ExoPlayerImplInternal.java:1619)
at com.google.android.exoplayer2.ExoPlayerImplInternal.updatePeriods(ExoPlayerImplInternal.java:1482)
at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:552)
at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:326)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:214)
at android.os.HandlerThread.run(HandlerThread.java:65)
[REQUIRED] Version of ExoPlayer being used
2.10.0
[REQUIRED] Device(s) and version(s) of Android being used
Samsung Galaxy S9 running android 9. The error happens consistently.
The text was updated successfully, but these errors were encountered:
[REQUIRED] Issue description
Trying to stream audio using HlsMediaSource and using setAllowChunklessPreparation(true) causes an NPE when buffering. If not using chunkless preparation, the same audio stream plays perfectly. (It also used to play with no problems on exoplayer 2.9.x with the chunkless preparation.)
[REQUIRED] Reproduction steps
Download the exoplayer demo app, search up the HlsMediaSource.Factory use, add .setAllowChunklessPreparation(true) before .createMediaSource(uri) and run the demo.
[REQUIRED] Link to test content
I reproduced this with a streaming audio .m3u8 file that I cannot post a link to here. Will send email. I reduced the exolist.json file to this:
Provide a JSON snippet for the demo app’s media.exolist.json file, or a link to
media that reproduces the issue. If you don't wish to post it publicly, please
submit the issue, then email the link to dev.exoplayer@gmail.com using a subject
in the format "Issue #1234". Provide all the metadata we'd need to play the
content like drm license urls or similar. If the content is accessible only in
certain countries or regions, please say so.
[REQUIRED] A full bug report captured from the device
While you wait for my email with an included bug report, here's a little stack trace:
[REQUIRED] Version of ExoPlayer being used
2.10.0
[REQUIRED] Device(s) and version(s) of Android being used
Samsung Galaxy S9 running android 9. The error happens consistently.
The text was updated successfully, but these errors were encountered: