martinbonnin / ExoPlayer

Apache License 2.0
22 stars 3 forks source link

HLS Audio Only -- Null Pointer Exception #2

Closed nachtien closed 10 years ago

nachtien commented 10 years ago

Sometimes when streaming a HLS Audio Only song, we get a null pointer exception.

java.lang.NullPointerException
        at com.google.android.exoplayer.hls.HLSSampleSource.prepare(HLSSampleSource.java:218)
        at com.google.android.exoplayer.MediaCodecTrackRenderer.doPrepare(MediaCodecTrackRenderer.java:181)
        at com.google.android.exoplayer.TrackRenderer.prepare(TrackRenderer.java:116)
        at com.google.android.exoplayer.ExoPlayerImplInternal.incrementalPrepareInternal(ExoPlayerImplInternal.java:267)
        at com.google.android.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:195)
        at android.os.Handler.dispatchMessage(Handler.java:98)
        at android.os.Looper.loop(Looper.java:136)
        at android.os.HandlerThread.run(HandlerThread.java:61)
        at com.google.android.exoplayer.ExoPlayerImplInternal$1.run(ExoPlayerImplInternal.java:109)
martinbonnin commented 10 years ago

Can you give a bit more context ? Commit you are at and basic steps how to reproduce ? At first sight, this looks like a variant playlist could not be downloaded. I do not handle HTTP errors fetching the playlists yet. I added some logs with https://github.com/martinbonnin/ExoPlayer/commit/f02f3f99d7fbf7f27072afc94d8a6a1c32692863. If you have a HTTP error, you should see something like "cannot download playlist"

nachtien commented 10 years ago

Shoot, I think I am using 795a18d6cf7e44744ecee8e6e4f4f09424451dd2. I've had the best luck with that one so far. It looks like the song is downloading just fine. I'm not getting all 200's from the server. It broke on this url: https://api.beatgasm.com/v2/play/song/7484.m3u8?type=user&type_id=3032&X-Auth-Token=748be789-2116-4763-a4db-ea2a5725c69d

On Thu, Aug 14, 2014 at 3:23 AM, Martin Bonnin notifications@github.com wrote:

Can you give a bit more context ? Commit you are at and basic steps how to reproduce ? At first sight, this looks like a variant playlist could not be downloaded. I do not handle HTTP errors fetching the playlists yet. I added some logs with f02f3f9 https://github.com/martinbonnin/ExoPlayer/commit/f02f3f99d7fbf7f27072afc94d8a6a1c32692863 . If you have a HTTP error, you should see something like "cannot download playlist"

— Reply to this email directly or view it on GitHub https://github.com/martinbonnin/ExoPlayer/issues/2#issuecomment-52156004 .

martinbonnin commented 10 years ago

cannot reproduce this one with 516c811b4e87ed49403a59f17384e024e2a427b4

nachtien commented 10 years ago

fixed! woo hoo.