Skip to content
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

Go IllegalStateException when playing a HLS. #183

Closed
dodocat opened this issue Dec 4, 2014 · 3 comments
Closed

Go IllegalStateException when playing a HLS. #183

dodocat opened this issue Dec 4, 2014 · 3 comments

Comments

@dodocat
Copy link

dodocat commented Dec 4, 2014

Most time it work fine. this error seems happend randomly, mostly like with seeking.

12-04 17:22:37.680  24640-24640/com.readboy.example.qiniuvideo D/EventLogger﹕ state [274.55, true, B]
12-04 17:22:51.940  24640-24646/com.readboy.example.qiniuvideo D/dalvikvm﹕ Debugger has detached; object registry had 1 entries
12-04 17:22:53.060  24640-24644/com.readboy.example.qiniuvideo D/dalvikvm﹕ GC_CONCURRENT freed 5057K, 21% free 19980K/25084K, paused 5ms+4ms, total 135ms
12-04 17:22:53.060  24640-24861/com.readboy.example.qiniuvideo D/dalvikvm﹕ WAIT_FOR_CONCURRENT_GC blocked 59ms
12-04 17:22:53.200  24640-24861/com.readboy.example.qiniuvideo E/LoadTask﹕ Unexpected error loading stream
    java.lang.IllegalStateException
            at com.google.android.exoplayer.util.Assertions.checkState(Assertions.java:66)
            at com.google.android.exoplayer.hls.TsExtractor$PesReader.read(TsExtractor.java:432)
            at com.google.android.exoplayer.hls.TsExtractor.read(TsExtractor.java:276)
            at com.google.android.exoplayer.hls.TsChunk.load(TsChunk.java:115)
            at com.google.android.exoplayer.upstream.Loader$LoadTask.run(Loader.java:206)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
            at java.util.concurrent.FutureTask.run(FutureTask.java:237)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
            at java.lang.Thread.run(Thread.java:841)
12-04 17:22:54.620  24640-24861/com.readboy.example.qiniuvideo E/LoadTask﹕ Unexpected error loading stream
    java.lang.IllegalStateException
            at com.google.android.exoplayer.util.Assertions.checkState(Assertions.java:66)
            at com.google.android.exoplayer.hls.TsExtractor$PesReader.read(TsExtractor.java:432)
            at com.google.android.exoplayer.hls.TsExtractor.read(TsExtractor.java:276)
            at com.google.android.exoplayer.hls.TsChunk.load(TsChunk.java:115)
            at com.google.android.exoplayer.upstream.Loader$LoadTask.run(Loader.java:206)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
            at java.util.concurrent.FutureTask.run(FutureTask.java:237)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
            at java.lang.Thread.run(Thread.java:841)
12-04 17:22:54.630  24640-24854/com.readboy.example.qiniuvideo E/ExoPlayerImplInternal﹕ Internal track renderer error.
    com.google.android.exoplayer.ExoPlaybackException: com.google.android.exoplayer.upstream.Loader$UnexpectedLoaderException: Unexpected IllegalStateException: null
            at com.google.android.exoplayer.MediaCodecTrackRenderer.doSomeWork(MediaCodecTrackRenderer.java:428)
            at com.google.android.exoplayer.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:398)
            at com.google.android.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:203)
            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.util.PriorityHandlerThread.run(PriorityHandlerThread.java:40)
     Caused by: com.google.android.exoplayer.upstream.Loader$UnexpectedLoaderException: Unexpected IllegalStateException: null
            at com.google.android.exoplayer.upstream.Loader$LoadTask.run(Loader.java:218)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
            at java.util.concurrent.FutureTask.run(FutureTask.java:237)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
            at java.lang.Thread.run(Thread.java:841)
     Caused by: java.lang.IllegalStateException
            at com.google.android.exoplayer.util.Assertions.checkState(Assertions.java:66)
            at com.google.android.exoplayer.hls.TsExtractor$PesReader.read(TsExtractor.java:432)
            at com.google.android.exoplayer.hls.TsExtractor.read(TsExtractor.java:276)
            at com.google.android.exoplayer.hls.TsChunk.load(TsChunk.java:115)
            at com.google.android.exoplayer.upstream.Loader$LoadTask.run(Loader.java:206)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
            at java.util.concurrent.FutureTask.run(FutureTask.java:237)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
            at java.lang.Thread.run(Thread.java:841)
12-04 17:22:54.700  24640-24640/com.readboy.example.qiniuvideo E/EventLogger﹕ playerFailed [291.57]
    com.google.android.exoplayer.ExoPlaybackException: com.google.android.exoplayer.upstream.Loader$UnexpectedLoaderException: Unexpected IllegalStateException: null
            at com.google.android.exoplayer.MediaCodecTrackRenderer.doSomeWork(MediaCodecTrackRenderer.java:428)
            at com.google.android.exoplayer.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:398)
            at com.google.android.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:203)
            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.util.PriorityHandlerThread.run(PriorityHandlerThread.java:40)
     Caused by: com.google.android.exoplayer.upstream.Loader$UnexpectedLoaderException: Unexpected IllegalStateException: null
            at com.google.android.exoplayer.upstream.Loader$LoadTask.run(Loader.java:218)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
            at java.util.concurrent.FutureTask.run(FutureTask.java:237)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
            at java.lang.Thread.run(Thread.java:841)
     Caused by: java.lang.IllegalStateException
            at com.google.android.exoplayer.util.Assertions.checkState(Assertions.java:66)
            at com.google.android.exoplayer.hls.TsExtractor$PesReader.read(TsExtractor.java:432)
            at com.google.android.exoplayer.hls.TsExtractor.read(TsExtractor.java:276)
            at com.google.android.exoplayer.hls.TsChunk.load(TsChunk.java:115)
            at com.google.android.exoplayer.upstream.Loader$LoadTask.run(Loader.java:206)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
            at java.util.concurrent.FutureTask.run(FutureTask.java:237)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
            at java.lang.Thread.run(Thread.java:841)
12-04 17:22:54.710  24640-24640/com.readboy.example.qiniuvideo D/EventLogger﹕ state [291.58, true, I]
@crossle
Copy link

crossle commented Dec 4, 2014

Similar to #171

@dodocat
Copy link
Author

dodocat commented Dec 5, 2014

I have prepared a sample video here http:// quanqi.org/v/test.m3u8. (caution white space after http)

It may cost some time seeking to Reappear this bug.

@ojw28
Copy link
Contributor

ojw28 commented Dec 8, 2014

This is caused by a bug that results in the same data being fed to the extractor twice in the case where a chunk fetch fails half way through.

ojw28 added a commit that referenced this issue Dec 8, 2014
@ojw28 ojw28 closed this as completed Dec 8, 2014
@google google locked and limited conversation to collaborators Jun 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants