martinbonnin / ExoPlayer

Apache License 2.0
22 stars 3 forks source link

Can not create MediaCodec error, when currentEntry.width and height equal 0 #32

Open crossle opened 10 years ago

crossle commented 10 years ago

When HLS not contain resolution, on Galaxy nexus 4.4.4 have this issue, but Nexus 5 ok.

 ACodec  E  Failed to allocate buffers after transitioning to IDLE state (error 0x80000000)
                        E  [OMX.TI.DUCATI1.VIDEO.DECODER] ERROR(0x80001000)
            MediaCodec  E  Codec reported an error. (omx error 0x80001001, internalError -2147483648)
                        E  Codec reported an error. (omx error 0x80001000, internalError -2147483648)
 ExoPlayerImplInternal  E  Internal track renderer error.
                        E  com.google.android.exoplayer.ExoPlaybackException: com.google.android.exoplayer.MediaCodecTrackRenderer$DecoderInitializationExcepti
                           on: Decoder init failed: OMX.TI.DUCATI1.VIDEO.DECODER, MediaFormat(video/avc, -1, 0, 0, -1, -1, -1, -1)
                        E      at com.google.android.exoplayer.MediaCodecTrackRenderer.maybeInitCodec(MediaCodecTrackRenderer.java:275)
                        E      at com.google.android.exoplayer.MediaCodecTrackRenderer.doSomeWork(MediaCodecTrackRenderer.java:389)
                        E      at com.google.android.exoplayer.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:407)
                        E      at com.google.android.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:203)
                        E      at android.os.Handler.dispatchMessage(Handler.java:98)
                        E      at android.os.Looper.loop(Looper.java:136)
                        E      at android.os.HandlerThread.run(HandlerThread.java:61)
                        E      at com.google.android.exoplayer.ExoPlayerImplInternal$1.run(ExoPlayerImplInternal.java:109)
                        E  Caused by: com.google.android.exoplayer.MediaCodecTrackRenderer$DecoderInitializationException: Decoder init failed: OMX.TI.DUCATI1.
                           VIDEO.DECODER, MediaFormat(video/avc, -1, 0, 0, -1, -1, -1, -1)
                        E      at com.google.android.exoplayer.MediaCodecTrackRenderer.maybeInitCodec(MediaCodecTrackRenderer.java:272)
                        E      ... 7 more
                        E  Caused by: java.lang.IllegalStateException: start failed
                        E      at android.media.MediaCodec.start(Native Method)
                        E      at com.google.android.exoplayer.MediaCodecTrackRenderer.maybeInitCodec(MediaCodecTrackRenderer.java:268)
                        E      ... 7 more
           EventLogger  E  internalError [1.37, decoderInitializationError]
                        E  com.google.android.exoplayer.MediaCodecTrackRenderer$DecoderInitializationException: Decoder init failed: OMX.TI.DUCATI1.VIDEO.DECOD
                           ER, MediaFormat(video/avc, -1, 0, 0, -1, -1, -1, -1)
                        E      at com.google.android.exoplayer.MediaCodecTrackRenderer.maybeInitCodec(MediaCodecTrackRenderer.java:272)
                        E      at com.google.android.exoplayer.MediaCodecTrackRenderer.doSomeWork(MediaCodecTrackRenderer.java:389)
                        E      at com.google.android.exoplayer.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:407)
                        E      at com.google.android.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:203)
                        E      at android.os.Handler.dispatchMessage(Handler.java:98)
                        E      at android.os.Looper.loop(Looper.java:136)
                        E      at android.os.HandlerThread.run(HandlerThread.java:61)
                        E      at com.google.android.exoplayer.ExoPlayerImplInternal$1.run(ExoPlayerImplInternal.java:109)
                        E  Caused by: java.lang.IllegalStateException: start failed
                        E      at android.media.MediaCodec.start(Native Method)
                        E      at com.google.android.exoplayer.MediaCodecTrackRenderer.maybeInitCodec(MediaCodecTrackRenderer.java:268)
                        E      ... 7 more
                   ion  E  ioctl -1073460991 failed with code -1: Bad file number
                  libc  F  invalid address or address of corrupt block 0x40d1b390 passed to dlfree
                        F  Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 22046 (mediaserver)
           EventLogger  E  playerFailed [1.39]
                        E  com.google.android.exoplayer.ExoPlaybackException: com.google.android.exoplayer.MediaCodecTrackRenderer$DecoderInitializationExcepti
                           on: Decoder init failed: OMX.TI.DUCATI1.VIDEO.DECODER, MediaFormat(video/avc, -1, 0, 0, -1, -1, -1, -1)
                        E      at com.google.android.exoplayer.MediaCodecTrackRenderer.maybeInitCodec(MediaCodecTrackRenderer.java:275)
                        E      at com.google.android.exoplayer.MediaCodecTrackRenderer.doSomeWork(MediaCodecTrackRenderer.java:389)
                        E      at com.google.android.exoplayer.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:407)
                        E      at com.google.android.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:203)
                        E      at android.os.Handler.dispatchMessage(Handler.java:98)
                        E      at android.os.Looper.loop(Looper.java:136)
                        E      at android.os.HandlerThread.run(HandlerThread.java:61)
                        E      at com.google.android.exoplayer.ExoPlayerImplInternal$1.run(ExoPlayerImplInternal.java:109)
                        E  Caused by: com.google.android.exoplayer.MediaCodecTrackRenderer$DecoderInitializationException: Decoder init failed: OMX.TI.DUCATI1.
                           VIDEO.DECODER, MediaFormat(video/avc, -1, 0, 0, -1, -1, -1, -1)
                        E      at com.google.android.exoplayer.MediaCodecTrackRenderer.maybeInitCodec(MediaCodecTrackRenderer.java:272)
                        E      ... 7 more
                        E  Caused by: java.lang.IllegalStateException: start failed
                        E      at android.media.MediaCodec.start(Native Method)
                        E      at com.google.android.exoplayer.MediaCodecTrackRenderer.maybeInitCodec(MediaCodecTrackRenderer.java:268)
                        E      ... 7 more
                 DEBUG  I  *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***