fgl27 / SmartTwitchTV

A Twitch web client that works on Android TVs and web base systems
GNU General Public License v3.0
366 stars 28 forks source link

[Device issue] ErrorCode: 1004 when playing a stream, reboot of device fixes the behaviour #139

Closed DooMMasteR closed 1 year ago

DooMMasteR commented 1 year ago

Describe the bug Playing back a channel fails with Error Code 1004 (the preview in the channel list fails with Error 4003) Rebooting the device fixes the issue... This behaviour started just within the last ~1-3 days but might still be unfixable on your end... so don't bother too much....

To Reproduce Steps to reproduce the behavior:

  1. Go to Channel list and wait for preview or select channel to view it

Expected behavior the channel should play back

Screenshots None

Device: Homatics Box R 4K Plus

Additional context

02-19 09:48:38.256 32726 32726 I ExoPlayerImpl: Init f17e0 [ExoPlayerLib/2.18.2] [YYJ, Box R 4K Plus, SEI Robotics, 30]
02-19 09:48:38.454 32726 32738 I om.fgl27.twitc: Background concurrent copying GC freed 47040(3239KB) AllocSpace objects, 195(11MB) LOS objects, 49% free, 9568KB/18MB, paused 290us total 182.222ms
02-19 09:48:38.818 32726  3737 I OMXClient: IOmx service obtained
02-19 09:48:38.854 32726  3736 D SurfaceUtils: connecting to surface 0xe7299318, reason connectToSurface
02-19 09:48:38.855 32726  3736 I MediaCodec: [OMX.amlogic.avc.decoder.awesome2] setting surface generation to 33511436
02-19 09:48:38.855 32726  3736 D SurfaceUtils: disconnecting from surface 0xe7299318, reason connectToSurface(reconnect)
02-19 09:48:38.855 32726  3736 D SurfaceUtils: connecting to surface 0xe7299318, reason connectToSurface(reconnect)
02-19 09:48:38.856 32726  3737 I AmAVUtils: AmAVUtils::getComponentRole isEncoder :0 mime:video/avc 
02-19 09:48:38.856 32726  3737 V MediaVendorExt: AVUtils::getComponentRole
02-19 09:48:38.856 32726  3737 I MediaVendorExt: AmAVUtils::getComponentRole isEncoder :0 mime:video/avc 
02-19 09:48:38.864 32726  3737 I AmAVUtils: AmAVUtils::isAudioExtendFormat input = video/avc
02-19 09:48:38.865 32726  3737 I AmAVUtils: AmAVUtils::isExtendFormat input = video/avc
02-19 09:48:38.865 32726  3737 I ACodec  : codec does not support config priority (err -1010)
02-19 09:48:38.866 32726  3737 I ACodec  : codec does not support config operating rate (err -1010)
02-19 09:48:38.900 32726  3737 D SurfaceUtils: set up nativeWindow 0xe7299318 for 1920x1080, color 0x11, rotation 0, usage 0xc02933
02-19 09:48:38.929 32726  3743 D CCodec  : allocate(c2.android.aac.decoder)
02-19 09:48:38.935 32726  3743 I CCodec  : Created component [c2.android.aac.decoder]
02-19 09:48:38.935 32726  3743 D CCodecConfig: read media type: audio/mp4a-latm
02-19 09:48:38.939 32726  3743 D ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.max-count.values
02-19 09:48:38.940 32726  3743 D ReflectedParamUpdater: extent() != 1 for single value type: output.subscribed-indices.values
02-19 09:48:38.940 32726  3743 D ReflectedParamUpdater: extent() != 1 for single value type: input.buffers.allocator-ids.values
02-19 09:48:38.941 32726  3743 D ReflectedParamUpdater: extent() != 1 for single value type: output.buffers.allocator-ids.values
02-19 09:48:38.941 32726  3743 D ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.allocator-ids.values
02-19 09:48:38.942 32726  3743 D ReflectedParamUpdater: extent() != 1 for single value type: output.buffers.pool-ids.values
02-19 09:48:38.944 32726  3743 D ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.pool-ids.values
02-19 09:48:38.949 32726  3743 I CCodecConfig: query failed after returning 19 values (BAD_INDEX)
02-19 09:48:38.950 32726  3743 D CCodecConfig: c2 config diff is Dict {
02-19 09:48:38.950 32726  3743 D CCodecConfig:   c2::u32 coded.aac-packaging.value = 0
02-19 09:48:38.950 32726  3743 D CCodecConfig:   c2::u32 coded.bitrate.value = 64000
02-19 09:48:38.950 32726  3743 D CCodecConfig:   c2::u32 coded.pl.level = 0
02-19 09:48:38.950 32726  3743 D CCodecConfig:   c2::u32 coded.pl.profile = 8192
02-19 09:48:38.950 32726  3743 D CCodecConfig:   c2::i32 coding.drc.album-mode.value = 0
02-19 09:48:38.950 32726  3743 D CCodecConfig:   c2::float coding.drc.attenuation-factor.value = 1
02-19 09:48:38.950 32726  3743 D CCodecConfig:   c2::float coding.drc.boost-factor.value = 1
02-19 09:48:38.950 32726  3743 D CCodecConfig:   c2::i32 coding.drc.compression-mode.value = 3
02-19 09:48:38.950 32726  3743 D CCodecConfig:   c2::i32 coding.drc.effect-type.value = 3
02-19 09:48:38.950 32726  3743 D CCodecConfig:   c2::float coding.drc.encoded-level.value = 0.25
02-19 09:48:38.950 32726  3743 D CCodecConfig:   c2::float coding.drc.reference-level.value = -16
02-19 09:48:38.950 32726  3743 D CCodecConfig:   c2::u32 input.buffers.max-size.value = 8192
02-19 09:48:38.950 32726  3743 D CCodecConfig:   c2::u32 input.delay.value = 0
02-19 09:48:38.950 32726  3743 D CCodecConfig:   string input.media-type.value = "audio/mp4a-latm"
02-19 09:48:38.950 32726  3743 D CCodecConfig:   c2::u32 output.delay.value = 2
02-19 09:48:38.950 32726  3743 D CCodecConfig:   c2::float output.drc.output-loudness.value = 0.25
02-19 09:48:38.950 32726  3743 D CCodecConfig:   string output.media-type.value = "audio/raw"
02-19 09:48:38.950 32726  3743 D CCodecConfig:   c2::u32 raw.channel-count.value = 1
02-19 09:48:38.950 32726  3743 D CCodecConfig:   c2::u32 raw.max-channel-count.value = 8
02-19 09:48:38.950 32726  3743 D CCodecConfig:   c2::u32 raw.sample-rate.value = 44100
02-19 09:48:38.950 32726  3743 D CCodecConfig: }
02-19 09:48:38.954 32726  3743 D CCodec  : [c2.android.aac.decoder] buffers are bound to CCodec for this session
02-19 09:48:38.954 32726  3743 D CCodecConfig: no c2 equivalents for flags
02-19 09:48:38.954 32726  3737 W gralloc4: Buffer descriptor with invalid usage bits 0x2000
02-19 09:48:38.956 32726  3743 D CCodecConfig: c2 config diff is   c2::u32 raw.channel-count.value = 2
02-19 09:48:38.956 32726  3743 D CCodecConfig:   c2::u32 raw.sample-rate.value = 48000
02-19 09:48:38.963 32726  3743 W Codec2Client: query -- param skipped: index = 1107298332.
02-19 09:48:38.963 32726  3743 D CCodec  : setup formats input: AMessage(what = 0x00000000) = {
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t aac-drc-album-mode = 0
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t aac-drc-boost-level = 127
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t aac-drc-cut-level = 127
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t aac-drc-effect-type = 3
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t aac-drc-heavy-compression = 3
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t aac-encoded-target-level = -1
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t aac-max-output-channel_count = 8
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t aac-target-ref-level = 64
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t channel-count = 2
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t level = 0
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t max-input-size = 8192
02-19 09:48:38.963 32726  3743 D CCodec  :   string mime = "audio/mp4a-latm"
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t profile = 2
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t sample-rate = 48000
02-19 09:48:38.963 32726  3743 D CCodec  : } and output: AMessage(what = 0x00000000) = {
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t aac-drc-album-mode = 0
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t aac-drc-boost-level = 127
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t aac-drc-cut-level = 127
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t aac-drc-effect-type = 3
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t aac-drc-heavy-compression = 3
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t aac-drc-output-loudness = -1
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t aac-encoded-target-level = -1
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t aac-max-output-channel_count = 8
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t aac-target-ref-level = 64
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t channel-count = 2
02-19 09:48:38.963 32726  3743 D CCodec  :   string mime = "audio/raw"
02-19 09:48:38.963 32726  3743 D CCodec  :   int32_t sample-rate = 48000
02-19 09:48:38.963 32726  3743 D CCodec  : }
02-19 09:48:38.965 32726  3737 W gralloc4: Buffer descriptor with invalid usage bits 0x2000
02-19 09:48:38.966 32726  3743 W Codec2Client: query -- param skipped: index = 1342179345.
02-19 09:48:38.966 32726  3743 W Codec2Client: query -- param skipped: index = 2415921170.
02-19 09:48:38.966 32726  3743 W Codec2Client: query -- param skipped: index = 1610614798.
02-19 09:48:38.968 32726  3743 E FMQ     : grantorIdx must be less than 3
02-19 09:48:38.969 32726  3743 E FMQ     : grantorIdx must be less than 3
02-19 09:48:38.970 32726  3743 D CCodecBufferChannel: [c2.android.aac.decoder#668] Created input block pool with allocatorID 16 => poolID 20 - OK (0)
02-19 09:48:38.971 32726  3081 D BufferPoolAccessor2.0: bufferpool2 0xbce2f548 : 0(0 size) total buffers - 0(0 size) used buffers - 1/7 (recycle/alloc) - 6/30 (fetch/transfer)
02-19 09:48:38.972 32726  3081 D BufferPoolAccessor2.0: Destruction - bufferpool2 0xbce2f548 cached: 0/0M, 0/0% in use; allocs: 7, 14% recycled; transfers: 30, 80% unfetched
02-19 09:48:38.972 32726  3743 I CCodecBufferChannel: [c2.android.aac.decoder#668] Created output block pool with allocatorID 16 => poolID 62 - OK
02-19 09:48:38.974 32726  3743 D CCodecBufferChannel: [c2.android.aac.decoder#668] Configured output block pool ids 62 => OK
02-19 09:48:38.980 32726  3743 E FMQ     : grantorIdx must be less than 3
02-19 09:48:38.990 32726  3081 D CCodecBuffers: [c2.android.aac.decoder#668:1D-Input.Impl[N]] codec released a buffer owned by client (index 2)
02-19 09:48:39.000 32726  3081 E FMQ     : grantorIdx must be less than 3
02-19 09:48:39.003 32726  3743 D CCodecConfig: c2 config diff is   c2::i32 coding.drc.compression-mode.value = 1
02-19 09:48:39.004 32726  3743 D CCodecBuffers: [c2.android.aac.decoder#668:Output[N]] popFromStashAndRegister: output format changed to AMessage(what = 0x00000000) = {
02-19 09:48:39.004 32726  3743 D CCodecBuffers:   int32_t aac-drc-album-mode = 0
02-19 09:48:39.004 32726  3743 D CCodecBuffers:   int32_t aac-drc-boost-level = 127
02-19 09:48:39.004 32726  3743 D CCodecBuffers:   int32_t aac-drc-cut-level = 127
02-19 09:48:39.004 32726  3743 D CCodecBuffers:   int32_t aac-drc-effect-type = 3
02-19 09:48:39.004 32726  3743 D CCodecBuffers:   int32_t aac-drc-heavy-compression = 1
02-19 09:48:39.004 32726  3743 D CCodecBuffers:   int32_t aac-drc-output-loudness = -1
02-19 09:48:39.004 32726  3743 D CCodecBuffers:   int32_t aac-encoded-target-level = -1
02-19 09:48:39.004 32726  3743 D CCodecBuffers:   int32_t aac-max-output-channel_count = 8
02-19 09:48:39.004 32726  3743 D CCodecBuffers:   int32_t aac-target-ref-level = 64
02-19 09:48:39.004 32726  3743 D CCodecBuffers:   int32_t channel-count = 2
02-19 09:48:39.004 32726  3743 D CCodecBuffers:   string mime = "audio/raw"
02-19 09:48:39.004 32726  3743 D CCodecBuffers:   int32_t sample-rate = 48000
02-19 09:48:39.004 32726  3743 D CCodecBuffers: }
02-19 09:48:39.018 32726  3737 W gralloc4: Buffer descriptor with invalid usage bits 0x2000
02-19 09:48:39.025 32726  3737 W gralloc4: Buffer descriptor with invalid usage bits 0x2000
02-19 09:48:39.034 32726  3737 W gralloc4: Buffer descriptor with invalid usage bits 0x2000
02-19 09:48:39.058 32726  3081 D CCodecBuffers: [c2.android.aac.decoder#668:1D-Input.Impl[N]] codec released a buffer owned by client (index 2)
02-19 09:48:39.075 32726  3737 W gralloc4: Buffer descriptor with invalid usage bits 0x2000
02-19 09:48:39.083 32726  3737 W gralloc4: Buffer descriptor with invalid usage bits 0x2000
02-19 09:48:39.088 32726  3737 W gralloc4: Buffer descriptor with invalid usage bits 0x2000
02-19 09:48:39.117 32726  3737 W gralloc4: Buffer descriptor with invalid usage bits 0x2000
02-19 09:48:39.128 32726  3737 W gralloc4: Buffer descriptor with invalid usage bits 0x2000
02-19 09:48:39.936 32726 32738 I om.fgl27.twitc: NativeAlloc concurrent copying GC freed 26911(1706KB) AllocSpace objects, 39(1004KB) LOS objects, 49% free, 13MB/26MB, paused 208us total 299.460ms
02-19 09:48:43.969 32726  3097 D BufferPoolAccessor2.0: bufferpool2 0xbce28948 : 6(49152 size) total buffers - 5(40960 size) used buffers - 1/7 (recycle/alloc) - 6/30 (fetch/transfer)
02-19 09:48:43.969 32726  3097 D BufferPoolAccessor2.0: evictor expired: 1, evicted: 1
02-19 09:48:44.969 32726  3097 D BufferPoolAccessor2.0: evictor expired: 1, evicted: 0
02-19 09:48:46.394 32726 32726 I ExoPlayerImpl: Release f17e0 [ExoPlayerLib/2.18.2] [YYJ, Box R 4K Plus, SEI Robotics, 30] [goog.exo.core, goog.exo.ui, goog.exo.hls, goog.exo.exoplayer, goog.exo.decoder, goog.exo.datasource, goog.exo.extractor]
02-19 09:48:46.897 32726 32726 I ExoPlayerImpl: Init 32c50f6 [ExoPlayerLib/2.18.2] [YYJ, Box R 4K Plus, SEI Robotics, 30]
02-19 09:48:46.913 32726  3755 E ExoPlayerImplInternal: Playback error
02-19 09:48:46.913 32726  3755 E ExoPlayerImplInternal:   com.google.android.exoplayer2.ExoPlaybackException: Unexpected runtime error
02-19 09:48:46.913 32726  3755 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.u0.handleMessage(ExoPlayerImplInternal.java:256)
02-19 09:48:46.913 32726  3755 E ExoPlayerImplInternal:       at android.os.Handler.dispatchMessage(Handler.java:102)
02-19 09:48:46.913 32726  3755 E ExoPlayerImplInternal:       at android.os.Looper.loop(Looper.java:223)
02-19 09:48:46.913 32726  3755 E ExoPlayerImplInternal:       at android.os.HandlerThread.run(HandlerThread.java:67)
02-19 09:48:46.913 32726  3755 E ExoPlayerImplInternal:   Caused by: java.lang.IllegalArgumentException
02-19 09:48:46.913 32726  3755 E ExoPlayerImplInternal:       at c2.a.a(Assertions.java:6)
02-19 09:48:46.913 32726  3755 E ExoPlayerImplInternal:       at k1.a.k(BaseMediaSource.java:15)
02-19 09:48:46.913 32726  3755 E ExoPlayerImplInternal:       at k1.e.H(CompositeMediaSource.java:60)
02-19 09:48:46.913 32726  3755 E ExoPlayerImplInternal:       at k1.v0.Q(WrappingMediaSource.java:5)
02-19 09:48:46.913 32726  3755 E ExoPlayerImplInternal:       at k1.o.S(MaskingMediaSource.java:38)
02-19 09:48:46.913 32726  3755 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.s1.h(MediaSourceList.java:41)
02-19 09:48:46.913 32726  3755 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.a1.e(MediaPeriodHolder.java:1)
02-19 09:48:46.913 32726  3755 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.a1.<init>(MediaPeriodHolder.java:42)
02-19 09:48:46.913 32726  3755 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.d1.g(MediaPeriodQueue.java:43)
02-19 09:48:46.913 32726  3755 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.u0.Y(ExoPlayerImplInternal.java:45)
02-19 09:48:46.913 32726  3755 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.u0.l1(ExoPlayerImplInternal.java:20)
02-19 09:48:46.913 32726  3755 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.u0.p(ExoPlayerImplInternal.java:15)
02-19 09:48:46.913 32726  3755 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.u0.handleMessage(ExoPlayerImplInternal.java:221)
02-19 09:48:46.913 32726  3755 E ExoPlayerImplInternal:       ... 3 more
02-19 09:48:46.914 32726 32726 I Choreographer: Skipped 30 frames!  The application may be doing too much work on its main thread.
02-19 09:48:46.927 32726 32726 W STTV_PlayerActivity: onPlayerError pos 0 e.errorCode 1004 e 
02-19 09:48:46.927 32726 32726 W STTV_PlayerActivity: com.google.android.exoplayer2.ExoPlaybackException: Unexpected runtime error
02-19 09:48:46.927 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.u0.handleMessage(ExoPlayerImplInternal.java:256)
02-19 09:48:46.927 32726 32726 W STTV_PlayerActivity:   at android.os.Handler.dispatchMessage(Handler.java:102)
02-19 09:48:46.927 32726 32726 W STTV_PlayerActivity:   at android.os.Looper.loop(Looper.java:223)
02-19 09:48:46.927 32726 32726 W STTV_PlayerActivity:   at android.os.HandlerThread.run(HandlerThread.java:67)
02-19 09:48:46.927 32726 32726 W STTV_PlayerActivity: Caused by: java.lang.IllegalArgumentException
02-19 09:48:46.927 32726 32726 W STTV_PlayerActivity:   at c2.a.a(Assertions.java:6)
02-19 09:48:46.927 32726 32726 W STTV_PlayerActivity:   at k1.a.k(BaseMediaSource.java:15)
02-19 09:48:46.927 32726 32726 W STTV_PlayerActivity:   at k1.e.H(CompositeMediaSource.java:60)
02-19 09:48:46.927 32726 32726 W STTV_PlayerActivity:   at k1.v0.Q(WrappingMediaSource.java:5)
02-19 09:48:46.927 32726 32726 W STTV_PlayerActivity:   at k1.o.S(MaskingMediaSource.java:38)
02-19 09:48:46.927 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.s1.h(MediaSourceList.java:41)
02-19 09:48:46.927 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.a1.e(MediaPeriodHolder.java:1)
02-19 09:48:46.927 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.a1.<init>(MediaPeriodHolder.java:42)
02-19 09:48:46.927 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.d1.g(MediaPeriodQueue.java:43)
02-19 09:48:46.927 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.u0.Y(ExoPlayerImplInternal.java:45)
02-19 09:48:46.927 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.u0.l1(ExoPlayerImplInternal.java:20)
02-19 09:48:46.927 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.u0.p(ExoPlayerImplInternal.java:15)
02-19 09:48:46.927 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.u0.handleMessage(ExoPlayerImplInternal.java:221)
02-19 09:48:46.927 32726 32726 W STTV_PlayerActivity:   ... 3 more
02-19 09:48:46.928 32726 32726 I ExoPlayerImpl: Release 32c50f6 [ExoPlayerLib/2.18.2] [YYJ, Box R 4K Plus, SEI Robotics, 30] [goog.exo.core, goog.exo.ui, goog.exo.hls, goog.exo.exoplayer, goog.exo.decoder, goog.exo.datasource, goog.exo.extractor]
02-19 09:48:46.931 32726 32726 I ExoPlayerImpl: Init 9ab200b [ExoPlayerLib/2.18.2] [YYJ, Box R 4K Plus, SEI Robotics, 30]
02-19 09:48:46.945 32726  3756 E ExoPlayerImplInternal: Playback error
02-19 09:48:46.945 32726  3756 E ExoPlayerImplInternal:   com.google.android.exoplayer2.ExoPlaybackException: Unexpected runtime error
02-19 09:48:46.945 32726  3756 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.u0.handleMessage(ExoPlayerImplInternal.java:256)
02-19 09:48:46.945 32726  3756 E ExoPlayerImplInternal:       at android.os.Handler.dispatchMessage(Handler.java:102)
02-19 09:48:46.945 32726  3756 E ExoPlayerImplInternal:       at android.os.Looper.loop(Looper.java:223)
02-19 09:48:46.945 32726  3756 E ExoPlayerImplInternal:       at android.os.HandlerThread.run(HandlerThread.java:67)
02-19 09:48:46.945 32726  3756 E ExoPlayerImplInternal:   Caused by: java.lang.IllegalArgumentException
02-19 09:48:46.945 32726  3756 E ExoPlayerImplInternal:       at c2.a.a(Assertions.java:6)
02-19 09:48:46.945 32726  3756 E ExoPlayerImplInternal:       at k1.a.k(BaseMediaSource.java:15)
02-19 09:48:46.945 32726  3756 E ExoPlayerImplInternal:       at k1.e.H(CompositeMediaSource.java:60)
02-19 09:48:46.945 32726  3756 E ExoPlayerImplInternal:       at k1.v0.Q(WrappingMediaSource.java:5)
02-19 09:48:46.945 32726  3756 E ExoPlayerImplInternal:       at k1.o.S(MaskingMediaSource.java:38)
02-19 09:48:46.945 32726  3756 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.s1.h(MediaSourceList.java:41)
02-19 09:48:46.945 32726  3756 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.a1.e(MediaPeriodHolder.java:1)
02-19 09:48:46.945 32726  3756 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.a1.<init>(MediaPeriodHolder.java:42)
02-19 09:48:46.945 32726  3756 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.d1.g(MediaPeriodQueue.java:43)
02-19 09:48:46.945 32726  3756 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.u0.Y(ExoPlayerImplInternal.java:45)
02-19 09:48:46.945 32726  3756 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.u0.l1(ExoPlayerImplInternal.java:20)
02-19 09:48:46.945 32726  3756 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.u0.p(ExoPlayerImplInternal.java:15)
02-19 09:48:46.945 32726  3756 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.u0.handleMessage(ExoPlayerImplInternal.java:221)
02-19 09:48:46.945 32726  3756 E ExoPlayerImplInternal:       ... 3 more
02-19 09:48:46.961 32726 32726 W STTV_PlayerActivity: onPlayerError pos 0 e.errorCode 1004 e 
02-19 09:48:46.961 32726 32726 W STTV_PlayerActivity: com.google.android.exoplayer2.ExoPlaybackException: Unexpected runtime error
02-19 09:48:46.961 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.u0.handleMessage(ExoPlayerImplInternal.java:256)
02-19 09:48:46.961 32726 32726 W STTV_PlayerActivity:   at android.os.Handler.dispatchMessage(Handler.java:102)
02-19 09:48:46.961 32726 32726 W STTV_PlayerActivity:   at android.os.Looper.loop(Looper.java:223)
02-19 09:48:46.961 32726 32726 W STTV_PlayerActivity:   at android.os.HandlerThread.run(HandlerThread.java:67)
02-19 09:48:46.961 32726 32726 W STTV_PlayerActivity: Caused by: java.lang.IllegalArgumentException
02-19 09:48:46.961 32726 32726 W STTV_PlayerActivity:   at c2.a.a(Assertions.java:6)
02-19 09:48:46.961 32726 32726 W STTV_PlayerActivity:   at k1.a.k(BaseMediaSource.java:15)
02-19 09:48:46.961 32726 32726 W STTV_PlayerActivity:   at k1.e.H(CompositeMediaSource.java:60)
02-19 09:48:46.961 32726 32726 W STTV_PlayerActivity:   at k1.v0.Q(WrappingMediaSource.java:5)
02-19 09:48:46.961 32726 32726 W STTV_PlayerActivity:   at k1.o.S(MaskingMediaSource.java:38)
02-19 09:48:46.961 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.s1.h(MediaSourceList.java:41)
02-19 09:48:46.961 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.a1.e(MediaPeriodHolder.java:1)
02-19 09:48:46.961 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.a1.<init>(MediaPeriodHolder.java:42)
02-19 09:48:46.961 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.d1.g(MediaPeriodQueue.java:43)
02-19 09:48:46.961 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.u0.Y(ExoPlayerImplInternal.java:45)
02-19 09:48:46.961 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.u0.l1(ExoPlayerImplInternal.java:20)
02-19 09:48:46.961 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.u0.p(ExoPlayerImplInternal.java:15)
02-19 09:48:46.961 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.u0.handleMessage(ExoPlayerImplInternal.java:221)
02-19 09:48:46.961 32726 32726 W STTV_PlayerActivity:   ... 3 more
02-19 09:48:46.961 32726 32726 I ExoPlayerImpl: Release 9ab200b [ExoPlayerLib/2.18.2] [YYJ, Box R 4K Plus, SEI Robotics, 30] [goog.exo.core, goog.exo.ui, goog.exo.hls, goog.exo.exoplayer, goog.exo.decoder, goog.exo.datasource, goog.exo.extractor]
02-19 09:48:46.964 32726 32726 I ExoPlayerImpl: Init c817df5 [ExoPlayerLib/2.18.2] [YYJ, Box R 4K Plus, SEI Robotics, 30]
02-19 09:48:46.981 32726  3757 E ExoPlayerImplInternal: Playback error
02-19 09:48:46.981 32726  3757 E ExoPlayerImplInternal:   com.google.android.exoplayer2.ExoPlaybackException: Unexpected runtime error
02-19 09:48:46.981 32726  3757 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.u0.handleMessage(ExoPlayerImplInternal.java:256)
02-19 09:48:46.981 32726  3757 E ExoPlayerImplInternal:       at android.os.Handler.dispatchMessage(Handler.java:102)
02-19 09:48:46.981 32726  3757 E ExoPlayerImplInternal:       at android.os.Looper.loop(Looper.java:223)
02-19 09:48:46.981 32726  3757 E ExoPlayerImplInternal:       at android.os.HandlerThread.run(HandlerThread.java:67)
02-19 09:48:46.981 32726  3757 E ExoPlayerImplInternal:   Caused by: java.lang.IllegalArgumentException
02-19 09:48:46.981 32726  3757 E ExoPlayerImplInternal:       at c2.a.a(Assertions.java:6)
02-19 09:48:46.981 32726  3757 E ExoPlayerImplInternal:       at k1.a.k(BaseMediaSource.java:15)
02-19 09:48:46.981 32726  3757 E ExoPlayerImplInternal:       at k1.e.H(CompositeMediaSource.java:60)
02-19 09:48:46.981 32726  3757 E ExoPlayerImplInternal:       at k1.v0.Q(WrappingMediaSource.java:5)
02-19 09:48:46.981 32726  3757 E ExoPlayerImplInternal:       at k1.o.S(MaskingMediaSource.java:38)
02-19 09:48:46.981 32726  3757 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.s1.h(MediaSourceList.java:41)
02-19 09:48:46.981 32726  3757 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.a1.e(MediaPeriodHolder.java:1)
02-19 09:48:46.981 32726  3757 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.a1.<init>(MediaPeriodHolder.java:42)
02-19 09:48:46.981 32726  3757 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.d1.g(MediaPeriodQueue.java:43)
02-19 09:48:46.981 32726  3757 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.u0.Y(ExoPlayerImplInternal.java:45)
02-19 09:48:46.981 32726  3757 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.u0.l1(ExoPlayerImplInternal.java:20)
02-19 09:48:46.981 32726  3757 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.u0.p(ExoPlayerImplInternal.java:15)
02-19 09:48:46.981 32726  3757 E ExoPlayerImplInternal:       at com.google.android.exoplayer2.u0.handleMessage(ExoPlayerImplInternal.java:221)
02-19 09:48:46.981 32726  3757 E ExoPlayerImplInternal:       ... 3 more
02-19 09:48:46.993 32726 32726 W STTV_PlayerActivity: onPlayerError pos 0 e.errorCode 1004 e 
02-19 09:48:46.993 32726 32726 W STTV_PlayerActivity: com.google.android.exoplayer2.ExoPlaybackException: Unexpected runtime error
02-19 09:48:46.993 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.u0.handleMessage(ExoPlayerImplInternal.java:256)
02-19 09:48:46.993 32726 32726 W STTV_PlayerActivity:   at android.os.Handler.dispatchMessage(Handler.java:102)
02-19 09:48:46.993 32726 32726 W STTV_PlayerActivity:   at android.os.Looper.loop(Looper.java:223)
02-19 09:48:46.993 32726 32726 W STTV_PlayerActivity:   at android.os.HandlerThread.run(HandlerThread.java:67)
02-19 09:48:46.993 32726 32726 W STTV_PlayerActivity: Caused by: java.lang.IllegalArgumentException
02-19 09:48:46.993 32726 32726 W STTV_PlayerActivity:   at c2.a.a(Assertions.java:6)
02-19 09:48:46.993 32726 32726 W STTV_PlayerActivity:   at k1.a.k(BaseMediaSource.java:15)
02-19 09:48:46.993 32726 32726 W STTV_PlayerActivity:   at k1.e.H(CompositeMediaSource.java:60)
02-19 09:48:46.993 32726 32726 W STTV_PlayerActivity:   at k1.v0.Q(WrappingMediaSource.java:5)
02-19 09:48:46.993 32726 32726 W STTV_PlayerActivity:   at k1.o.S(MaskingMediaSource.java:38)
02-19 09:48:46.993 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.s1.h(MediaSourceList.java:41)
02-19 09:48:46.993 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.a1.e(MediaPeriodHolder.java:1)
02-19 09:48:46.993 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.a1.<init>(MediaPeriodHolder.java:42)
02-19 09:48:46.993 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.d1.g(MediaPeriodQueue.java:43)
02-19 09:48:46.993 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.u0.Y(ExoPlayerImplInternal.java:45)
02-19 09:48:46.993 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.u0.l1(ExoPlayerImplInternal.java:20)
02-19 09:48:46.993 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.u0.p(ExoPlayerImplInternal.java:15)
02-19 09:48:46.993 32726 32726 W STTV_PlayerActivity:   at com.google.android.exoplayer2.u0.handleMessage(ExoPlayerImplInternal.java:221)
02-19 09:48:46.993 32726 32726 W STTV_PlayerActivity:   ... 3 more
02-19 09:48:47.023 32726 32726 I ExoPlayerImpl: Release c817df5 [ExoPlayerLib/2.18.2] [YYJ, Box R 4K Plus, SEI Robotics, 30] [goog.exo.core, goog.exo.ui, goog.exo.hls, goog.exo.exoplayer, goog.exo.decoder, goog.exo.datasource, goog.exo.extractor]
02-19 09:48:48.401 32726  3743 D CCodecBuffers: [c2.android.aac.decoder#668:1D-Output.Impl[N]] Client returned a buffer it does not own according to our record: 0
02-19 09:48:48.401 32726  3743 D CCodecBuffers: [c2.android.aac.decoder#668:1D-Output.Impl[N]] Client returned a buffer it does not own according to our record: 1
02-19 09:48:48.401 32726  3743 D CCodecBuffers: [c2.android.aac.decoder#668:1D-Output.Impl[N]] Client returned a buffer it does not own according to our record: 2
02-19 09:48:48.401 32726  3743 D CCodecBuffers: [c2.android.aac.decoder#668:1D-Output.Impl[N]] Client returned a buffer it does not own according to our record: 3
02-19 09:48:48.401 32726  3743 I CCodecConfig: query failed after returning 19 values (BAD_INDEX)
02-19 09:48:48.403 32726  3743 D CCodecConfig: c2 config diff is   c2::i32 coding.drc.compression-mode.value = 3
02-19 09:48:48.404 32726  3743 W Codec2Client: query -- param skipped: index = 1342179345.
02-19 09:48:48.404 32726  3743 W Codec2Client: query -- param skipped: index = 2415921170.
02-19 09:48:48.404 32726  3743 W Codec2Client: query -- param skipped: index = 1610614798.
02-19 09:48:48.407 32726  3736 D SurfaceUtils: connecting to surface 0xe72960b8, reason connectToSurface
02-19 09:48:48.407 32726  3736 I MediaCodec: [OMX.amlogic.avc.decoder.awesome2] setting surface generation to 33511437
02-19 09:48:48.407 32726  3736 D SurfaceUtils: disconnecting from surface 0xe72960b8, reason connectToSurface(reconnect)
02-19 09:48:48.407 32726  3736 D SurfaceUtils: connecting to surface 0xe72960b8, reason connectToSurface(reconnect)
02-19 09:48:48.408 32726  3737 D SurfaceUtils: set up nativeWindow 0xe72960b8 for 1920x1080, color 0x11, rotation 0, usage 0xc02933
02-19 09:48:48.409 32726  3736 D SurfaceUtils: disconnecting from surface 0xe7299318, reason disconnectFromSurface
02-19 09:48:48.410 32726  3743 D CCodecBufferChannel: [c2.android.aac.decoder#668] MediaCodec discarded an unknown buffer
02-19 09:48:48.410 32726  3743 I chatty  : uid=10087(com.fgl27.twitch) identical 2 lines
02-19 09:48:48.410 32726  3743 D CCodecBufferChannel: [c2.android.aac.decoder#668] MediaCodec discarded an unknown buffer
02-19 09:48:48.412 32726  3743 I hw-BpHwBinder: onLastStrongRef automatically unlinking death recipients
02-19 09:48:50.449 32726  3736 D SurfaceUtils: disconnecting from surface 0xe72960b8, reason disconnectFromSurface
02-19 09:48:53.414 32726  3097 D BufferPoolAccessor2.0: bufferpool2 0xbce28948 : 0(0 size) total buffers - 0(0 size) used buffers - 1/7 (recycle/alloc) - 6/30 (fetch/transfer)
02-19 09:48:53.414 32726  3097 D BufferPoolAccessor2.0: evictor expired: 1, evicted: 1
fgl27 commented 1 year ago

Yes this is clear a device issue, seems the device is overwhelmed and can't play.

Probably because more then one player is used, eventually the internal OS media support just crashes and lock the app from using it.

Most device have/display this error, but for most it happens only a few times a year and not constantly.