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

Load playlist using loadfile, crash error ../player/loadfile.c:1920: void play_current_file(struct MPContext *): assertion "mpctx->stop_play" failed #13778

Closed
user1121114685 opened this issue Mar 28, 2024 · 3 comments · Fixed by #14135
Labels

Comments

@user1121114685
Copy link

Important Information

Provide following Information:

  • mpv version
    [f4a7931](https://github.com/mpv-player/mpv/commit/f4a7931c534158d254a4a36f289494c1de6a16b9)
  • Linux Distribution and Version
    Android 13
  • Source of the mpv binary
    https://github.com/user1121114685/libmpv-android-video-build/releases/tag/20240327
  • If known which version of mpv introduced the problem
    no
  • Window Manager and version
    libmpv
  • GPU model, driver and version
    mtk and Qualcomm
  • Possible screenshot or video of visual glitches List play
    Load playlist using loadfile, crash error

If you're not using git master or the latest release, update.
Releases are listed here: https://github.com/mpv-player/mpv/releases

Reproduction steps

Try to reproduce your issue with --no-config first. If it isn't reproducible
with --no-config try to first find out which option or script causes your issue.

If the issue is performance-related, try to reproduce it with --no-config
--profile=fast, which is designed to work on lower-end mobile devices.
Additionally, enable hardware decoding with --hwdec=yes or the Ctrl+h shortcut.

Describe the reproduction steps as precise as possible. It's very likely that
the bug you experience wasn't reproduced by the developer because the workflow
differs from your own.

Expected behavior

Actual behavior

Log file

Make a log file
made with -v -v or --log-file=output.txt, attach it to
the issue, and replace this text with a link to it.

Without the log file, this issue will be closed for ignoring the issue template.

In the case of a crash, please provide a backtrace.

错误log.txt in line 671

Sample files

Sample files needed to reproduce this issue can be attached to the issue
(preferred), or be uploaded to https://0x0.st/ or similar sites.
(Only needed if the issue cannot be reproduced without it.)
Do not use garbage like "cloud storage", especially not Google Drive.

@bdlukaa
Copy link

bdlukaa commented Mar 28, 2024

I am experiencing the same issue: bluecherrydvr/unity#215

This specially happens when a lot of players are loaded at the same time, probably indicating a memory allocation issue. This does not happen when there are three or less players loaded. This seems to happen more frequently on streams with higher quality.

Logs
D/CCodecConfig( 5643): c2 config diff is   c2::u32 raw.crop.height = 240
D/CCodecConfig( 5643):   c2::u32 raw.crop.width = 352
D/CCodecConfig( 5643):   c2::u32 raw.pixel-format.value = 4096
D/CCodecBuffers( 5643): [c2.mtk.avc.decoder#773:Output[N]] popFromStashAndRegister: at 1930000us, output format changed to AMessage(what = 0x00000000) = {
D/CCodecBuffers( 5643):   int32_t android._color-format = 4096
D/CCodecBuffers( 5643):   int32_t android._video-scaling = 1
D/CCodecBuffers( 5643):   int32_t sar-width = 1
D/CCodecBuffers( 5643):   int32_t color-standard = 4
D/CCodecBuffers( 5643):   int32_t color-range = 2
D/CCodecBuffers( 5643):   int32_t color-transfer = 3
D/CCodecBuffers( 5643):   int32_t android._dataspace = 259
D/CCodecBuffers( 5643):   int32_t width = 352
D/CCodecBuffers( 5643):   int32_t rotation-degrees = 0
D/CCodecBuffers( 5643):   int32_t sar-height = 1
D/CCodecBuffers( 5643):   int32_t max-width = 352
D/CCodecBuffers( 5643):   int32_t max-height = 240
D/CCodecBuffers( 5643):   int32_t priority = -1
D/CCodecBuffers( 5643):   string mime = "video/raw"
D/CCodecBuffers( 5643):   Rect crop(0, 0, 351, 239)
D/CCodecBuffers( 5643):   Buffer hdr-static-info = {
D/CCodecBuffers( 5643):     00000000:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ................        
D/CCodecBuffers( 5643):     00000010:  00 00 00 00 00 00 00 00  00                       .........
D/CCodecBuffers( 5643):   }
D/CCodecBuffers( 5643):   int32_t frame-rate = 30
D/CCodecBuffers( 5643):   int32_t height = 240
D/CCodecBuffers( 5643):   int32_t color-format = 19
D/CCodecBuffers( 5643): }
D/CCodecBuffers( 5643): [c2.mtk.avc.decoder#773:Output[N]] updating image-data
D/CCodecBuffers( 5643): [c2.mtk.avc.decoder#773:Output[N]] updating stride = 352, width: 352, height: 240        
D/CCodecBuffers( 5643): [c2.mtk.avc.decoder#773:Output[N]] updating vstride = 240
I/flutter ( 5643): null.null.0
I/MediaCodec( 5643): setCodecState state(1), called in 6
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): mWNT: t=0xb40000763ee9a200 mBlastBufferQueue=0xb40000762d85ec80 fn= 11 caller= android.view.SyncRtSurfaceTransactionApplier.applyTransaction:96 android.view.SyncRtSurfaceTransactionApplier.lambda$scheduleApply$0$android-view-SyncRtSurfaceTransactionApplier:69 android.view.SyncRtSurfaceTransactionApplier$$ExternalSyntheticLambda0.onFrameDraw:4
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): mWNT: t=0xb40000763efaf500 mBlastBufferQueue=0xb40000762d85ec80 fn= 12 caller= android.view.SyncRtSurfaceTransactionApplier.applyTransaction:96 android.view.SyncRtSurfaceTransactionApplier.lambda$scheduleApply$0$android-view-SyncRtSurfaceTransactionApplier:69 android.view.SyncRtSurfaceTransactionApplier$$ExternalSyntheticLambda0.onFrameDraw:4
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): mWNT: t=0xb400007651118600 mBlastBufferQueue=0xb40000762d85ec80 fn= 13 caller= android.view.SyncRtSurfaceTransactionApplier.applyTransaction:96 android.view.SyncRtSurfaceTransactionApplier.lambda$scheduleApply$0$android-view-SyncRtSurfaceTransactionApplier:69 android.view.SyncRtSurfaceTransactionApplier$$ExternalSyntheticLambda0.onFrameDraw:4
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): mWNT: t=0xb4000075d25f2900 mBlastBufferQueue=0xb40000762d85ec80 fn= 14 caller= android.view.SyncRtSurfaceTransactionApplier.applyTransaction:96 android.view.SyncRtSurfaceTransactionApplier.lambda$scheduleApply$0$android-view-SyncRtSurfaceTransactionApplier:69 android.view.SyncRtSurfaceTransactionApplier$$ExternalSyntheticLambda0.onFrameDraw:4
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): mWNT: t=0xb4000075d25f2d00 mBlastBufferQueue=0xb40000762d85ec80 fn= 15 caller= android.view.SyncRtSurfaceTransactionApplier.applyTransaction:96 android.view.SyncRtSurfaceTransactionApplier.lambda$scheduleApply$0$android-view-SyncRtSurfaceTransactionApplier:69 android.view.SyncRtSurfaceTransactionApplier$$ExternalSyntheticLambda0.onFrameDraw:4
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): mWNT: t=0xb4000075d27f7200 mBlastBufferQueue=0xb40000762d85ec80 fn= 16 caller= android.view.SyncRtSurfaceTransactionApplier.applyTransaction:96 android.view.SyncRtSurfaceTransactionApplier.lambda$scheduleApply$0$android-view-SyncRtSurfaceTransactionApplier:69 android.view.SyncRtSurfaceTransactionApplier$$ExternalSyntheticLambda0.onFrameDraw:4
I/media_kit( 5643): VideoOutput.WaitUntilFirstFrameRenderedNotify = -5476376641738222000
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): mWNT: t=0xb40000759ccc3c00 mBlastBufferQueue=0xb40000762d85ec80 fn= 17 caller= android.view.SyncRtSurfaceTransactionApplier.applyTransaction:96 android.view.SyncRtSurfaceTransactionApplier.lambda$scheduleApply$0$android-view-SyncRtSurfaceTransactionApplier:69 android.view.SyncRtSurfaceTransactionApplier$$ExternalSyntheticLambda0.onFrameDraw:4
D/InsetsController( 5643): cancelAnimation of types: 3, animType: 0, host: com.bluecherrydvr/com.bluecherrydvr.MainActivity, from:android.view.InsetsController.notifyFinished:1375 android.view.InsetsAnimationControlImpl.applyChangeInsets:285 android.view.InsetsController.lambda$new$3$android-view-InsetsController:674
D/InsetsSourceConsumer( 5643): ensureControlPosition: Point(2274, 0) for ITYPE_NAVIGATION_BAR on com.bluecherrydvr/com.bluecherrydvr.MainActivity from android.view.InsetsSourceConsumer.notifyAnimationFinished:419
D/InsetsSourceConsumer( 5643): ensureControlPosition: Point(0, 0) for ITYPE_STATUS_BAR on com.bluecherrydvr/com.bluecherrydvr.MainActivity from android.view.InsetsSourceConsumer.notifyAnimationFinished:419
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): mWNT: t=0xb40000759ccc3d00 mBlastBufferQueue=0xb40000762d85ec80 fn= 18 caller= android.view.SyncRtSurfaceTransactionApplier.applyTransaction:96 android.view.SyncRtSurfaceTransactionApplier.lambda$scheduleApply$0$android-view-SyncRtSurfaceTransactionApplier:69 android.view.SyncRtSurfaceTransactionApplier$$ExternalSyntheticLambda0.onFrameDraw:4
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): mWNT: t=0xb40000759ccc3e00 mBlastBufferQueue=0xb40000762d85ec80 fn= 18 caller= android.view.SyncRtSurfaceTransactionApplier.applyTransaction:96 android.view.SyncRtSurfaceTransactionApplier.lambda$scheduleApply$0$android-view-SyncRtSurfaceTransactionApplier:69 android.view.SyncRtSurfaceTransactionApplier$$ExternalSyntheticLambda0.onFrameDraw:4
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): mWNT: t=0xb40000759ccc3f00 mBlastBufferQueue=0xb40000762d85ec80 fn= 18 caller= android.view.SyncRtSurfaceTransactionApplier.applyTransaction:96 android.view.SyncRtSurfaceTransactionApplier.lambda$scheduleApply$0$android-view-SyncRtSurfaceTransactionApplier:69 android.view.SyncRtSurfaceTransactionApplier$$ExternalSyntheticLambda0.onFrameDraw:4
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): MSG_WINDOW_FOCUS_CHANGED 0 0
I/flutter ( 5643): VideoOutput.WaitUntilFirstFrameRenderedNotify
I/flutter ( 5643): {handle: -5476376641738222000}
I/flutter ( 5643): -5476376641738222000
I/flutter ( 5643): in background
I/media_kit( 5643): com.alexmercerind.media_kit_video.VideoOutputManager.setSurfaceTextureSize: -5476376641738222000 352 240
I/media_kit( 5643): com.alexmercerind.media_kit_video.VideoOutputManager.create: -5476376640842237872
D/BufferQueueConsumer( 5643): [](id:160b00000006,api:0,p:-1,c:5643) connect: controlledByApp=true
I/media_kit( 5643): flutterJNIAPIAvailable = true
I/media_kit( 5643): com.alexmercerind.media_kit_video.VideoOutput: id = 4
I/flutter ( 5643): {id: 4}
I/flutter ( 5643): display width: 352
I/flutter ( 5643): media_kit: wakelock: _count = 5
I/flutter ( 5643): display height: 240
I/media_kit( 5643): com.alexmercerind.media_kit_video.VideoOutputManager.createSurface: -5476376640842237872
I/flutter ( 5643): {wid: 13258}
I/CCodec  ( 5643): state->set(ALLOCATING)
I/CCodec  ( 5643): allocate(c2.mtk.avc.decoder)
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): ViewPostIme pointer 0
I/CCodec  ( 5643): setting up 'default' as default (vendor) store
I/CCodec  ( 5643): Created component [c2.mtk.avc.decoder]
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(ALLOCATED)
D/CCodecConfig( 5643): read media type: video/avc
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.max-count.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.subscribed-indices.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: input.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.buffers.pool-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.pool-ids.values
D/ReflectedParamUpdater( 5643): ignored struct field coded.color-format.locations
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): ViewPostIme pointer 1
D/CCodecConfig( 5643): ignoring local param raw.size (0xd2001800) as it is already supported
D/CCodecConfig( 5643): ignoring local param raw.crop (0xd2001801) as it is already supported
D/CCodecConfig( 5643): ignoring local param default.color (0x5200180b) as it is already supported
D/CCodecConfig( 5643): ignoring local param raw.hdr-static-info (0xd200180a) as it is already supported
I/CCodecConfig( 5643): query failed after returning 17 values (BAD_INDEX)
D/CCodecConfig( 5643): c2 config diff is Dict {
D/CCodecConfig( 5643):   c2::i32 algo.priority.value = 1
D/CCodecConfig( 5643):   c2::float algo.rate.value = 0
D/CCodecConfig( 5643):   c2::float coded.frame-rate.value = 30
D/CCodecConfig( 5643):   c2::u32 coded.pl.level = 20495
D/CCodecConfig( 5643):   c2::u32 coded.pl.profile = 20481
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.range = 2
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 default.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 default.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 default.color.range = 0
D/CCodecConfig( 5643):   c2::u32 default.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 input.buffers.max-size.value = 2097152
D/CCodecConfig( 5643):   c2::u32 input.delay.value = 4
D/CCodecConfig( 5643):   string input.media-type.value = "video/avc"
D/CCodecConfig( 5643):   c2::u32 output.delay.value = 12
D/CCodecConfig( 5643):   string output.media-type.value = "video/raw"
D/CCodecConfig( 5643):   c2::u32 raw.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 raw.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 raw.color.range = 2
D/CCodecConfig( 5643):   c2::u32 raw.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.height = 239
D/CCodecConfig( 5643):   c2::u32 raw.crop.left = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.top = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.width = 319
D/CCodecConfig( 5643):   c2::float raw.hdr-static-info.mastering.blue.x = 0
D/CCodecConfig( 5643):   c2::float raw.hdr-s
W/ColorUtils( 5643): expected specified color aspects (2:0:0:0)
D/MediaCodec( 5643): flushMediametrics
D/CCodec  ( 5643): [c2.mtk.avc.decoder] buffers are bound to CCodec for this session
I/CCodec  ( 5643): Client requested ByteBuffer mode decoder w/o color format set: using default planar color format
I/CCodec  ( 5643): appPid(5643) width(3840) height(2160)
D/CCodecConfig( 5643): no c2 equivalents for csd-1
D/CCodecConfig( 5643): no c2 equivalents for flags
D/CCodecConfig( 5643): Bad parameter value
D/CCodecConfig( 5643): Bad parameter value
D/CCodecConfig( 5643): Bad parameter value
W/CCodec  ( 5643): failed to configure c2 params
E/MediaCodec( 5643): Codec reported err 0xffffffea/BAD_VALUE, actionCode 0, while in state 3/CONFIGURING
D/MediaCodec( 5643): flushMediametrics
E/MediaCodec( 5643): configure failed with err 0xffffffea, resetting...
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RELEASING)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] release(1)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RELEASED)
I/MediaCodec( 5643): Codec shutdown complete
I/hw-BpHwBinder( 5643): onLastStrongRef automatically unlinking death recipients
I/CCodec  ( 5643): state->set(ALLOCATING)
I/CCodec  ( 5643): allocate(c2.mtk.avc.decoder)
I/CCodec  ( 5643): setting up 'default' as default (vendor) store
I/CCodec  ( 5643): Created component [c2.mtk.avc.decoder]
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(ALLOCATED)
D/CCodecConfig( 5643): read media type: video/avc
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.max-count.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.subscribed-indices.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: input.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.buffers.pool-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.pool-ids.values
D/ReflectedParamUpdater( 5643): ignored struct field coded.color-format.locations
D/CCodecConfig( 5643): ignoring local param raw.size (0xd2001800) as it is already supported
D/CCodecConfig( 5643): ignoring local param raw.crop (0xd2001801) as it is already supported
D/CCodecConfig( 5643): ignoring local param default.color (0x5200180b) as it is already supported
D/CCodecConfig( 5643): ignoring local param raw.hdr-static-info (0xd200180a) as it is already supported
I/CCodecConfig( 5643): query failed after returning 17 values (BAD_INDEX)
D/CCodecConfig( 5643): c2 config diff is Dict {
D/CCodecConfig( 5643):   c2::i32 algo.priority.value = 1
D/CCodecConfig( 5643):   c2::float algo.rate.value = 0
D/CCodecConfig( 5643):   c2::float coded.frame-rate.value = 30
D/CCodecConfig( 5643):   c2::u32 coded.pl.level = 20495
D/CCodecConfig( 5643):   c2::u32 coded.pl.profile = 20481
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.range = 2
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 default.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 default.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 default.color.range = 0
D/CCodecConfig( 5643):   c2::u32 default.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 input.buffers.max-size.value = 2097152
D/CCodecConfig( 5643):   c2::u32 input.delay.value = 4
D/CCodecConfig( 5643):   string input.media-type.value = "video/avc"
D/CCodecConfig( 5643):   c2::u32 output.delay.value = 12
D/CCodecConfig( 5643):   string output.media-type.value = "video/raw"
D/CCodecConfig( 5643):   c2::u32 raw.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 raw.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 raw.color.range = 2
D/CCodecConfig( 5643):   c2::u32 raw.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.height = 239
D/CCodecConfig( 5643):   c2::u32 raw.crop.left = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.top = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.width = 319
D/CCodecConfig( 5643):   c2::float raw.hdr-static-info.mastering.blue.x = 0
D/CCodecConfig( 5643):   c2::float raw.hdr-s
W/ColorUtils( 5643): expected specified color aspects (2:0:0:0)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RELEASING)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] release(1)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RELEASED)
I/MediaCodec( 5643): Codec shutdown complete
I/hw-BpHwBinder( 5643): onLastStrongRef automatically unlinking death recipients
D/MediaCodec( 5643): flushMediametrics
D/MediaCodec( 5643): flushMediametrics
I/flutter ( 5643): Dismissing late video
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(FLUSHING)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(FLUSHED)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RESUMING)
I/CCodecConfig( 5643): query failed after returning 17 values (BAD_INDEX)
D/CCodecConfig( 5643): c2 config diff is   c2::u32 coded.vui.color.matrix = 3
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.primaries = 4
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.transfer = 3
D/CCodecConfig( 5643):   c2::u32 output.delay.value = 12
W/Codec2Client( 5643): query -- param skipped: index = 1342179345.
W/Codec2Client( 5643): query -- param skipped: index = 2415921170.
W/Codec2Client( 5643): query -- param skipped: index = 1610614798.
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RUNNING)
I/CCodecBufferChannel( 5643): [c2.mtk.avc.decoder#773] 8 initial input buffers available
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(FLUSHING)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(FLUSHED)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RESUMING)
I/CCodecConfig( 5643): query failed after returning 17 values (BAD_INDEX)
W/Codec2Client( 5643): query -- param skipped: index = 1342179345.
W/Codec2Client( 5643): query -- param skipped: index = 2415921170.
W/Codec2Client( 5643): query -- param skipped: index = 1610614798.
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RUNNING)
I/CCodecBufferChannel( 5643): [c2.mtk.avc.decoder#773] 8 initial input buffers available
I/flutter ( 5643): display width: 3840
I/flutter ( 5643): display height: 2160
I/media_kit( 5643): com.alexmercerind.media_kit_video.VideoOutputManager.setSurfaceTextureSize: -5476376641738220976 3840 2160
D/libMEOW ( 5643): meow new tls: 0xb40000763c65b380
D/libMEOW ( 5643): applied 2 plugins for [com.bluecherrydvr]:
D/libMEOW ( 5643):   plugin 1: [libMEOW_gift.so]:
D/libMEOW ( 5643):   plugin 2: [libMEOW_semaphore]:
D/BufferPoolAccessor2.0( 5643): bufferpool2 0xb40000763dc88428 : 0(0 size) total buffers - 0(0 size) used buffers - 0/10 (recycle/alloc) - 10/15 (fetch/transfer)
D/BufferPoolAccessor2.0( 5643): evictor expired: 1, evicted: 1
I/CCodec  ( 5643): state->set(ALLOCATING)
I/CCodec  ( 5643): allocate(c2.mtk.avc.decoder)
I/CCodec  ( 5643): setting up 'default' as default (vendor) store
I/CCodec  ( 5643): Created component [c2.mtk.avc.decoder]
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(ALLOCATED)
D/CCodecConfig( 5643): read media type: video/avc
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.max-count.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.subscribed-indices.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: input.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.buffers.pool-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.pool-ids.values
D/ReflectedParamUpdater( 5643): ignored struct field coded.color-format.locations
D/CCodecConfig( 5643): ignoring local param raw.size (0xd2001800) as it is already supported
D/CCodecConfig( 5643): ignoring local param raw.crop (0xd2001801) as it is already supported
D/CCodecConfig( 5643): ignoring local param default.color (0x5200180b) as it is already supported
D/CCodecConfig( 5643): ignoring local param raw.hdr-static-info (0xd200180a) as it is already supported
I/CCodecConfig( 5643): query failed after returning 17 values (BAD_INDEX)
D/CCodecConfig( 5643): c2 config diff is Dict {
D/CCodecConfig( 5643):   c2::i32 algo.priority.value = 1
D/CCodecConfig( 5643):   c2::float algo.rate.value = 0
D/CCodecConfig( 5643):   c2::float coded.frame-rate.value = 30
D/CCodecConfig( 5643):   c2::u32 coded.pl.level = 20495
D/CCodecConfig( 5643):   c2::u32 coded.pl.profile = 20481
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.range = 2
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 default.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 default.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 default.color.range = 0
D/CCodecConfig( 5643):   c2::u32 default.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 input.buffers.max-size.value = 2097152
D/CCodecConfig( 5643):   c2::u32 input.delay.value = 4
D/CCodecConfig( 5643):   string input.media-type.value = "video/avc"
D/CCodecConfig( 5643):   c2::u32 output.delay.value = 12
D/CCodecConfig( 5643):   string output.media-type.value = "video/raw"
D/CCodecConfig( 5643):   c2::u32 raw.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 raw.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 raw.color.range = 2
D/CCodecConfig( 5643):   c2::u32 raw.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.height = 239
D/CCodecConfig( 5643):   c2::u32 raw.crop.left = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.top = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.width = 319
D/CCodecConfig( 5643):   c2::float raw.hdr-static-info.mastering.blue.x = 0
D/CCodecConfig( 5643):   c2::float raw.hdr-s
W/ColorUtils( 5643): expected specified color aspects (2:0:0:0)
D/MediaCodec( 5643): flushMediametrics
D/CCodec  ( 5643): [c2.mtk.avc.decoder] buffers are bound to CCodec for this session
I/CCodec  ( 5643): Client requested ByteBuffer mode decoder w/o color format set: using default planar color format
I/CCodec  ( 5643): appPid(5643) width(3840) height(2160)
D/CCodecConfig( 5643): no c2 equivalents for csd-1
D/CCodecConfig( 5643): no c2 equivalents for flags
D/CCodecConfig( 5643): Bad parameter value
D/CCodecConfig( 5643): Bad parameter value
D/CCodecConfig( 5643): Bad parameter value
W/CCodec  ( 5643): failed to configure c2 params
E/MediaCodec( 5643): Codec reported err 0xffffffea/BAD_VALUE, actionCode 0, while in state 3/CONFIGURING
D/MediaCodec( 5643): flushMediametrics
E/MediaCodec( 5643): configure failed with err 0xffffffea, resetting...
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RELEASING)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] release(1)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RELEASED)
I/MediaCodec( 5643): Codec shutdown complete
I/hw-BpHwBinder( 5643): onLastStrongRef automatically unlinking death recipients
I/CCodec  ( 5643): state->set(ALLOCATING)
I/CCodec  ( 5643): allocate(c2.mtk.avc.decoder)
I/CCodec  ( 5643): setting up 'default' as default (vendor) store
I/CCodec  ( 5643): Created component [c2.mtk.avc.decoder]
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(ALLOCATED)
D/CCodecConfig( 5643): read media type: video/avc
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.max-count.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.subscribed-indices.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: input.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.buffers.pool-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.pool-ids.values
D/ReflectedParamUpdater( 5643): ignored struct field coded.color-format.locations
D/CCodecConfig( 5643): ignoring local param raw.size (0xd2001800) as it is already supported
D/CCodecConfig( 5643): ignoring local param raw.crop (0xd2001801) as it is already supported
D/CCodecConfig( 5643): ignoring local param default.color (0x5200180b) as it is already supported
D/CCodecConfig( 5643): ignoring local param raw.hdr-static-info (0xd200180a) as it is already supported
I/CCodecConfig( 5643): query failed after returning 17 values (BAD_INDEX)
D/CCodecConfig( 5643): c2 config diff is Dict {
D/CCodecConfig( 5643):   c2::i32 algo.priority.value = 1
D/CCodecConfig( 5643):   c2::float algo.rate.value = 0
D/CCodecConfig( 5643):   c2::float coded.frame-rate.value = 30
D/CCodecConfig( 5643):   c2::u32 coded.pl.level = 20495
D/CCodecConfig( 5643):   c2::u32 coded.pl.profile = 20481
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.range = 2
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 default.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 default.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 default.color.range = 0
D/CCodecConfig( 5643):   c2::u32 default.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 input.buffers.max-size.value = 2097152
D/CCodecConfig( 5643):   c2::u32 input.delay.value = 4
D/CCodecConfig( 5643):   string input.media-type.value = "video/avc"
D/CCodecConfig( 5643):   c2::u32 output.delay.value = 12
D/CCodecConfig( 5643):   string output.media-type.value = "video/raw"
D/CCodecConfig( 5643):   c2::u32 raw.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 raw.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 raw.color.range = 2
D/CCodecConfig( 5643):   c2::u32 raw.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.height = 239
D/CCodecConfig( 5643):   c2::u32 raw.crop.left = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.top = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.width = 319
D/CCodecConfig( 5643):   c2::float raw.hdr-static-info.mastering.blue.x = 0
D/CCodecConfig( 5643):   c2::float raw.hdr-s
W/ColorUtils( 5643): expected specified color aspects (2:0:0:0)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RELEASING)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] release(1)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RELEASED)
I/MediaCodec( 5643): Codec shutdown complete
I/hw-BpHwBinder( 5643): onLastStrongRef automatically unlinking death recipients
D/MediaCodec( 5643): flushMediametrics
D/MediaCodec( 5643): flushMediametrics
D/InsetsSourceConsumer( 5643): ensureControlPosition: Point(2274, 0) for ITYPE_NAVIGATION_BAR on com.bluecherrydvr/com.bluecherrydvr.MainActivity from android.view.InsetsSourceConsumer.setControl:211
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): mWNT: t=0xb40000759cf29b00 mBlastBufferQueue=0xb40000762d85ec80 fn= 19 caller= android.view.SyncRtSurfaceTransactionApplier.applyTransaction:96 android.view.SyncRtSurfaceTransactionApplier.lambda$scheduleApply$0$android-view-SyncRtSurfaceTransactionApplier:69 android.view.SyncRtSurfaceTransactionApplier$$ExternalSyntheticLambda0.onFrameDraw:4
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): MSG_WINDOW_FOCUS_CHANGED 1 0
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): mThreadedRenderer.initializeIfNeeded()#2 mSurface={isValid=true 0xb40000763e47d800}
D/InputMethodManager( 5643): startInputInner - Id : 0
I/InputMethodManager( 5643): startInputInner - mService.startInputOrWindowGainedFocus
I/flutter ( 5643): display width: 3840
I/flutter ( 5643): in foreground
I/flutter ( 5643): display height: 2160
I/flutter ( 5643): ==== VIDEO ERROR HAPPENED with rtsp://***:***@7007cams.bluecherry.app:7002/live/14
I/flutter ( 5643): ==== Could not open codec.
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): ViewPostIme pointer 0
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): ViewPostIme pointer 1
I/flutter ( 5643): ==== VIDEO ERROR HAPPENED with rtsp://***:***@7007cams.bluecherry.app:7002/live/14
I/flutter ( 5643): ==== Could not open codec.
D/BufferPoolAccessor2.0( 5643): bufferpool2 0xb40000763efb1628 : 10(20971520 size) total buffers - 8(16777216 size) used buffers - 0/10 (recycle/alloc) - 15/59 (fetch/transfer)
D/BufferPoolAccessor2.0( 5643): evictor expired: 1, evicted: 1
I/MediaCodec( 5643): setCodecState state(0), called in 6
I/flutter ( 5643): INFO: 2024-03-28 11:31:32.440460: Wrote log file to /data/user/0/com.bluecherrydvr/files/logs.txt
I/flutter ( 5643): INFO: 2024-03-28 11:31:32.459187: Wrote log file to /data/user/0/com.bluecherrydvr/files/logs.txt
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): ViewPostIme pointer 0
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): ViewPostIme pointer 1
W/OnBackInvokedCallback( 5643): OnBackInvokedCallback is not enabled for the application.
W/OnBackInvokedCallback( 5643): Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.    
I/flutter ( 5643): display width: 3840
I/media_kit( 5643): com.alexmercerind.media_kit_video.VideoOutputManager.setSurfaceTextureSize: -5476376641738220976 3840 2160
I/flutter ( 5643): display height: 2160
D/CCodecBufferChannel( 5643): [c2.mtk.avc.decoder#773] Ignoring stale input buffer done callback: last flush index = 59, frameIndex = 59
I/MediaCodec( 5643): setCodecState state(1), called in 6
I/media_kit( 5643): VideoOutput.WaitUntilFirstFrameRenderedNotify = -5476376641738220976
I/flutter ( 5643): VideoOutput.WaitUntilFirstFrameRenderedNotify
I/flutter ( 5643): {handle: -5476376641738220976}
I/flutter ( 5643): -5476376641738220976
D/BufferPoolAccessor2.0( 5643): bufferpool2 0xb40000763efad628 : 8(16777216 size) total buffers - 8(16777216 size) used buffers - 0/10 (recycle/alloc) - 13/93 (fetch/transfer)
I/flutter ( 5643): display width: 3840
I/flutter ( 5643): display height: 2160
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): ViewPostIme pointer 0
I/ViewRootImpl@bd84ca3[MainActivity]( 5643): ViewPostIme pointer 1
I/flutter ( 5643): Added Device(Bluecherry #2-nondocker, live/15, online: true, 640x480, ptz: false)
I/flutter ( 5643): Pixel ratio: 2.625
I/flutter ( 5643): Initializing rtsp://***:***@7007cams.bluecherry.app:7002/live/15
I/flutter ( 5643): Playing rtsp://***:***@7007cams.bluecherry.app:7002/live/15
I/flutter ( 5643): Device(Inside garage, live/17, online: true, 640x480, ptz: false).f78b7d7e-f7c3-11eb-848a-f22552df8169.0
I/flutter ( 5643): Device(PTZ, live/11, online: true, 640x480, ptz: true).f78b7d7e-f7c3-11eb-848a-f22552df8169.0 
I/flutter ( 5643): Device(Garage, live/5, online: true, 640x480, ptz: true).f78b7d7e-f7c3-11eb-848a-f22552df8169.0
I/flutter ( 5643): Device(Bluecherry #1-nondocker, live/14, online: true, 640x480, ptz: false).f78b7d7e-f7c3-11eb-848a-f22552df8169.0
I/flutter ( 5643): Device(Bluecherry #3-nondocker, live/16, online: true, 640x480, ptz: false).f78b7d7e-f7c3-11eb-848a-f22552df8169.0
I/flutter ( 5643): Device(Bluecherry #2-nondocker, live/15, online: true, 640x480, ptz: false).f78b7d7e-f7c3-11eb-848a-f22552df8169.0
I/media_kit( 5643): com.alexmercerind.media_kit_video.VideoOutputManager.create: -5476376640839836592
D/BufferQueueConsumer( 5643): [](id:160b00000007,api:0,p:-1,c:5643) connect: controlledByApp=true
I/media_kit( 5643): flutterJNIAPIAvailable = true
I/media_kit( 5643): com.alexmercerind.media_kit_video.VideoOutput: id = 5
I/flutter ( 5643): {id: 5}
I/flutter ( 5643): media_kit: wakelock: _count = 6
I/media_kit( 5643): com.alexmercerind.media_kit_video.VideoOutputManager.createSurface: -5476376640839836592     
I/flutter ( 5643): {wid: 13394}
I/MediaCodec( 5643): setCodecState state(0), called in 6
I/CCodec  ( 5643): state->set(ALLOCATING)
I/CCodec  ( 5643): allocate(c2.mtk.avc.decoder)
I/CCodec  ( 5643): setting up 'default' as default (vendor) store
I/CCodec  ( 5643): Created component [c2.mtk.avc.decoder]
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(ALLOCATED)
D/CCodecConfig( 5643): read media type: video/avc
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.max-count.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.subscribed-indices.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: input.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.buffers.pool-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.pool-ids.values
D/ReflectedParamUpdater( 5643): ignored struct field coded.color-format.locations
D/CCodecConfig( 5643): ignoring local param raw.size (0xd2001800) as it is already supported
D/CCodecConfig( 5643): ignoring local param raw.crop (0xd2001801) as it is already supported
D/CCodecConfig( 5643): ignoring local param default.color (0x5200180b) as it is already supported
D/CCodecConfig( 5643): ignoring local param raw.hdr-static-info (0xd200180a) as it is already supported
I/CCodecConfig( 5643): query failed after returning 17 values (BAD_INDEX)
D/CCodecConfig( 5643): c2 config diff is Dict {
D/CCodecConfig( 5643):   c2::i32 algo.priority.value = 1
D/CCodecConfig( 5643):   c2::float algo.rate.value = 0
D/CCodecConfig( 5643):   c2::float coded.frame-rate.value = 30
D/CCodecConfig( 5643):   c2::u32 coded.pl.level = 20495
D/CCodecConfig( 5643):   c2::u32 coded.pl.profile = 20481
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.range = 2
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 default.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 default.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 default.color.range = 0
D/CCodecConfig( 5643):   c2::u32 default.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 input.buffers.max-size.value = 2097152
D/CCodecConfig( 5643):   c2::u32 input.delay.value = 4
D/CCodecConfig( 5643):   string input.media-type.value = "video/avc"
D/CCodecConfig( 5643):   c2::u32 output.delay.value = 12
D/CCodecConfig( 5643):   string output.media-type.value = "video/raw"
D/CCodecConfig( 5643):   c2::u32 raw.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 raw.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 raw.color.range = 2
D/CCodecConfig( 5643):   c2::u32 raw.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.height = 239
D/CCodecConfig( 5643):   c2::u32 raw.crop.left = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.top = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.width = 319
D/CCodecConfig( 5643):   c2::float raw.hdr-static-info.mastering.blue.x = 0
D/CCodecConfig( 5643):   c2::float raw.hdr-s
W/ColorUtils( 5643): expected specified color aspects (2:0:0:0)
D/MediaCodec( 5643): flushMediametrics
D/CCodec  ( 5643): [c2.mtk.avc.decoder] buffers are bound to CCodec for this session
I/CCodec  ( 5643): Client requested ByteBuffer mode decoder w/o color format set: using default planar color format
I/CCodec  ( 5643): appPid(5643) width(3072) height(1728)
D/CCodecConfig( 5643): no c2 equivalents for csd-1
D/CCodecConfig( 5643): no c2 equivalents for flags
D/CCodecConfig( 5643): Bad parameter value
D/CCodecConfig( 5643): Bad parameter value
D/CCodecConfig( 5643): Bad parameter value
W/CCodec  ( 5643): failed to configure c2 params
E/MediaCodec( 5643): Codec reported err 0xffffffea/BAD_VALUE, actionCode 0, while in state 3/CONFIGURING
D/MediaCodec( 5643): flushMediametrics
E/MediaCodec( 5643): configure failed with err 0xffffffea, resetting...
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RELEASING)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] release(1)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RELEASED)
I/MediaCodec( 5643): Codec shutdown complete
I/hw-BpHwBinder( 5643): onLastStrongRef automatically unlinking death recipients
I/CCodec  ( 5643): state->set(ALLOCATING)
I/CCodec  ( 5643): allocate(c2.mtk.avc.decoder)
I/CCodec  ( 5643): setting up 'default' as default (vendor) store
I/CCodec  ( 5643): Created component [c2.mtk.avc.decoder]
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(ALLOCATED)
D/CCodecConfig( 5643): read media type: video/avc
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.max-count.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.subscribed-indices.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: input.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.buffers.pool-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.pool-ids.values
D/ReflectedParamUpdater( 5643): ignored struct field coded.color-format.locations
I/MediaCodec( 5643): setCodecState state(1), called in 6
D/CCodecConfig( 5643): ignoring local param raw.size (0xd2001800) as it is already supported
D/CCodecConfig( 5643): ignoring local param raw.crop (0xd2001801) as it is already supported
D/CCodecConfig( 5643): ignoring local param default.color (0x5200180b) as it is already supported
D/CCodecConfig( 5643): ignoring local param raw.hdr-static-info (0xd200180a) as it is already supported
I/CCodecConfig( 5643): query failed after returning 17 values (BAD_INDEX)
D/CCodecConfig( 5643): c2 config diff is Dict {
D/CCodecConfig( 5643):   c2::i32 algo.priority.value = 1
D/CCodecConfig( 5643):   c2::float algo.rate.value = 0
D/CCodecConfig( 5643):   c2::float coded.frame-rate.value = 30
D/CCodecConfig( 5643):   c2::u32 coded.pl.level = 20495
D/CCodecConfig( 5643):   c2::u32 coded.pl.profile = 20481
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.range = 2
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 default.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 default.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 default.color.range = 0
D/CCodecConfig( 5643):   c2::u32 default.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 input.buffers.max-size.value = 2097152
D/CCodecConfig( 5643):   c2::u32 input.delay.value = 4
D/CCodecConfig( 5643):   string input.media-type.value = "video/avc"
D/CCodecConfig( 5643):   c2::u32 output.delay.value = 12
D/CCodecConfig( 5643):   string output.media-type.value = "video/raw"
D/CCodecConfig( 5643):   c2::u32 raw.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 raw.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 raw.color.range = 2
D/CCodecConfig( 5643):   c2::u32 raw.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.height = 239
D/CCodecConfig( 5643):   c2::u32 raw.crop.left = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.top = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.width = 319
D/CCodecConfig( 5643):   c2::float raw.hdr-static-info.mastering.blue.x = 0
D/CCodecConfig( 5643):   c2::float raw.hdr-s
W/ColorUtils( 5643): expected specified color aspects (2:0:0:0)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RELEASING)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] release(1)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RELEASED)
I/hw-BpHwBinder( 5643): onLastStrongRef automatically unlinking death recipients
I/MediaCodec( 5643): Codec shutdown complete
D/MediaCodec( 5643): flushMediametrics
D/MediaCodec( 5643): flushMediametrics
I/flutter ( 5643): display width: 3072
I/media_kit( 5643): com.alexmercerind.media_kit_video.VideoOutputManager.setSurfaceTextureSize: -5476376640840272816 3072 1728
D/libMEOW ( 5643): meow new tls: 0xb40000759635cb40
D/libMEOW ( 5643): applied 2 plugins for [com.bluecherrydvr]:
D/libMEOW ( 5643):   plugin 1: [libMEOW_gift.so]:
D/libMEOW ( 5643):   plugin 2: [libMEOW_semaphore]:
I/CCodec  ( 5643): state->set(ALLOCATING)
I/CCodec  ( 5643): allocate(c2.mtk.avc.decoder)
I/CCodec  ( 5643): setting up 'default' as default (vendor) store
I/CCodec  ( 5643): Created component [c2.mtk.avc.decoder]
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(ALLOCATED)
D/CCodecConfig( 5643): read media type: video/avc
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.max-count.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.subscribed-indices.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: input.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.buffers.pool-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.pool-ids.values
D/ReflectedParamUpdater( 5643): ignored struct field coded.color-format.locations
D/CCodecConfig( 5643): ignoring local param raw.size (0xd2001800) as it is already supported
D/CCodecConfig( 5643): ignoring local param raw.crop (0xd2001801) as it is already supported
D/CCodecConfig( 5643): ignoring local param default.color (0x5200180b) as it is already supported
D/CCodecConfig( 5643): ignoring local param raw.hdr-static-info (0xd200180a) as it is already supported
I/CCodecConfig( 5643): query failed after returning 17 values (BAD_INDEX)
D/CCodecConfig( 5643): c2 config diff is Dict {
D/CCodecConfig( 5643):   c2::i32 algo.priority.value = 1
D/CCodecConfig( 5643):   c2::float algo.rate.value = 0
D/CCodecConfig( 5643):   c2::float coded.frame-rate.value = 30
D/CCodecConfig( 5643):   c2::u32 coded.pl.level = 20495
D/CCodecConfig( 5643):   c2::u32 coded.pl.profile = 20481
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.range = 2
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 default.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 default.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 default.color.range = 0
D/CCodecConfig( 5643):   c2::u32 default.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 input.buffers.max-size.value = 2097152
D/CCodecConfig( 5643):   c2::u32 input.delay.value = 4
D/CCodecConfig( 5643):   string input.media-type.value = "video/avc"
D/CCodecConfig( 5643):   c2::u32 output.delay.value = 12
D/CCodecConfig( 5643):   string output.media-type.value = "video/raw"
D/CCodecConfig( 5643):   c2::u32 raw.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 raw.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 raw.color.range = 2
D/CCodecConfig( 5643):   c2::u32 raw.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.height = 239
D/CCodecConfig( 5643):   c2::u32 raw.crop.left = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.top = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.width = 319
D/CCodecConfig( 5643):   c2::float raw.hdr-static-info.mastering.blue.x = 0
D/CCodecConfig( 5643):   c2::float raw.hdr-s
W/ColorUtils( 5643): expected specified color aspects (2:0:0:0)
D/MediaCodec( 5643): flushMediametrics
D/CCodec  ( 5643): [c2.mtk.avc.decoder] buffers are bound to CCodec for this session
I/CCodec  ( 5643): Client requested ByteBuffer mode decoder w/o color format set: using default planar color format
I/CCodec  ( 5643): appPid(5643) width(3072) height(1728)
D/CCodecConfig( 5643): no c2 equivalents for csd-1
D/CCodecConfig( 5643): no c2 equivalents for flags
D/CCodecConfig( 5643): Bad parameter value
D/CCodecConfig( 5643): Bad parameter value
D/CCodecConfig( 5643): Bad parameter value
W/CCodec  ( 5643): failed to configure c2 params
E/MediaCodec( 5643): Codec reported err 0xffffffea/BAD_VALUE, actionCode 0, while in state 3/CONFIGURING
D/MediaCodec( 5643): flushMediametrics
E/MediaCodec( 5643): configure failed with err 0xffffffea, resetting...
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RELEASING)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] release(1)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RELEASED)
I/hw-BpHwBinder( 5643): onLastStrongRef automatically unlinking death recipients
I/MediaCodec( 5643): Codec shutdown complete
I/CCodec  ( 5643): state->set(ALLOCATING)
I/CCodec  ( 5643): allocate(c2.mtk.avc.decoder)
I/CCodec  ( 5643): setting up 'default' as default (vendor) store
I/CCodec  ( 5643): Created component [c2.mtk.avc.decoder]
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(ALLOCATED)
D/CCodecConfig( 5643): read media type: video/avc
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.max-count.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.subscribed-indices.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: input.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.buffers.pool-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.pool-ids.values
D/ReflectedParamUpdater( 5643): ignored struct field coded.color-format.locations
D/CCodecConfig( 5643): ignoring local param raw.size (0xd2001800) as it is already supported
D/CCodecConfig( 5643): ignoring local param raw.crop (0xd2001801) as it is already supported
D/CCodecConfig( 5643): ignoring local param default.color (0x5200180b) as it is already supported
D/CCodecConfig( 5643): ignoring local param raw.hdr-static-info (0xd200180a) as it is already supported
I/CCodecConfig( 5643): query failed after returning 17 values (BAD_INDEX)
D/CCodecConfig( 5643): c2 config diff is Dict {
D/CCodecConfig( 5643):   c2::i32 algo.priority.value = 1
D/CCodecConfig( 5643):   c2::float algo.rate.value = 0
D/CCodecConfig( 5643):   c2::float coded.frame-rate.value = 30
D/CCodecConfig( 5643):   c2::u32 coded.pl.level = 20495
D/CCodecConfig( 5643):   c2::u32 coded.pl.profile = 20481
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.range = 2
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 default.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 default.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 default.color.range = 0
D/CCodecConfig( 5643):   c2::u32 default.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 input.buffers.max-size.value = 2097152
D/CCodecConfig( 5643):   c2::u32 input.delay.value = 4
D/CCodecConfig( 5643):   string input.media-type.value = "video/avc"
D/CCodecConfig( 5643):   c2::u32 output.delay.value = 12
D/CCodecConfig( 5643):   string output.media-type.value = "video/raw"
D/CCodecConfig( 5643):   c2::u32 raw.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 raw.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 raw.color.range = 2
D/CCodecConfig( 5643):   c2::u32 raw.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.height = 239
D/CCodecConfig( 5643):   c2::u32 raw.crop.left = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.top = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.width = 319
D/CCodecConfig( 5643):   c2::float raw.hdr-static-info.mastering.blue.x = 0
D/CCodecConfig( 5643):   c2::float raw.hdr-s
W/ColorUtils( 5643): expected specified color aspects (2:0:0:0)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RELEASING)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] release(1)
I/flutter ( 5643): display width: 3072
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RELEASED)
I/MediaCodec( 5643): Codec shutdown complete
D/MediaCodec( 5643): flushMediametrics
D/MediaCodec( 5643): flushMediametrics
I/hw-BpHwBinder( 5643): onLastStrongRef automatically unlinking death recipients
I/flutter ( 5643): display height: 1728
I/flutter ( 5643): ==== VIDEO ERROR HAPPENED with rtsp://***:***@7007cams.bluecherry.app:7002/live/15
I/flutter ( 5643): ==== Failed to recognize file format.
I/flutter ( 5643): INFO: 2024-03-28 11:31:36.921527: Wrote log file to /data/user/0/com.bluecherrydvr/files/logs.txt
I/flutter ( 5643): display width: 3072
I/flutter ( 5643): ==== VIDEO ERROR HAPPENED with rtsp://***:***@7007cams.bluecherry.app:7002/live/16   
I/flutter ( 5643): ==== Could not open codec.
I/flutter ( 5643): INFO: 2024-03-28 11:31:36.993479: Wrote log file to /data/user/0/com.bluecherrydvr/files/logs.txt
I/flutter ( 5643): ==== VIDEO ERROR HAPPENED with rtsp://***:***@7007cams.bluecherry.app:7002/live/16   
I/flutter ( 5643): ==== Could not open codec.
I/flutter ( 5643): INFO: 2024-03-28 11:31:36.999588: Wrote log file to /data/user/0/com.bluecherrydvr/files/logs.txt
D/BufferPoolAccessor2.0( 5643): bufferpool2 0xb40000763efb1628 : 8(16777216 size) total buffers - 8(16777216 size) used buffers - 0/10 (recycle/alloc) - 21/119 (fetch/transfer)
I/flutter ( 5643): Dismissing late video
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(FLUSHING)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(FLUSHED)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RESUMING)
I/CCodecConfig( 5643): query failed after returning 17 values (BAD_INDEX)
W/Codec2Client( 5643): query -- param skipped: index = 1342179345.
W/Codec2Client( 5643): query -- param skipped: index = 2415921170.
W/Codec2Client( 5643): query -- param skipped: index = 1610614798.
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RUNNING)
I/CCodecBufferChannel( 5643): [c2.mtk.avc.decoder#773] 8 initial input buffers available
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(FLUSHING)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(FLUSHED)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RESUMING)
I/CCodecConfig( 5643): query failed after returning 17 values (BAD_INDEX)
W/Codec2Client( 5643): query -- param skipped: index = 1342179345.
W/Codec2Client( 5643): query -- param skipped: index = 2415921170.
W/Codec2Client( 5643): query -- param skipped: index = 1610614798.
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RUNNING)
I/CCodecBufferChannel( 5643): [c2.mtk.avc.decoder#773] 8 initial input buffers available
I/flutter ( 5643): Dismissing late video
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(FLUSHING)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(FLUSHED)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RESUMING)
I/CCodecConfig( 5643): query failed after returning 17 values (BAD_INDEX)
W/Codec2Client( 5643): query -- param skipped: index = 1342179345.
W/Codec2Client( 5643): query -- param skipped: index = 2415921170.
W/Codec2Client( 5643): query -- param skipped: index = 1610614798.
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RUNNING)
I/CCodecBufferChannel( 5643): [c2.mtk.avc.decoder#773] 8 initial input buffers available
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(FLUSHING)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(FLUSHED)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RESUMING)
I/CCodecConfig( 5643): query failed after returning 17 values (BAD_INDEX)
W/Codec2Client( 5643): query -- param skipped: index = 1342179345.
W/Codec2Client( 5643): query -- param skipped: index = 2415921170.
W/Codec2Client( 5643): query -- param skipped: index = 1610614798.
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RUNNING)
I/CCodecBufferChannel( 5643): [c2.mtk.avc.decoder#773] 8 initial input buffers available
I/MediaCodec( 5643): setCodecState state(0), called in 6
D/BufferPoolAccessor2.0( 5643): bufferpool2 0xb40000763efad628 : 8(16777216 size) total buffers - 8(16777216 size) used buffers - 0/10 (recycle/alloc) - 13/136 (fetch/transfer)
I/flutter ( 5643): Dismissing late video
I/flutter ( 5643): Dismissing late video
I/flutter ( 5643): media_kit: wakelock: _count = 5
D/libMEOW ( 5643): meow delete tls: 0xb40000763c65b380
I/CCodec  ( 5643): state->set(ALLOCATING)
I/CCodec  ( 5643): allocate(c2.mtk.avc.decoder)
I/CCodec  ( 5643): setting up 'default' as default (vendor) store
I/CCodec  ( 5643): Created component [c2.mtk.avc.decoder]
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(ALLOCATED)
D/CCodecConfig( 5643): read media type: video/avc
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.max-count.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.subscribed-indices.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: input.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.buffers.pool-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.pool-ids.values
D/ReflectedParamUpdater( 5643): ignored struct field coded.color-format.locations
D/CCodecConfig( 5643): ignoring local param raw.size (0xd2001800) as it is already supported
D/CCodecConfig( 5643): ignoring local param raw.crop (0xd2001801) as it is already supported
D/CCodecConfig( 5643): ignoring local param default.color (0x5200180b) as it is already supported
D/CCodecConfig( 5643): ignoring local param raw.hdr-static-info (0xd200180a) as it is already supported
I/CCodecConfig( 5643): query failed after returning 17 values (BAD_INDEX)
D/CCodecConfig( 5643): c2 config diff is Dict {
D/CCodecConfig( 5643):   c2::i32 algo.priority.value = 1
D/CCodecConfig( 5643):   c2::float algo.rate.value = 0
D/CCodecConfig( 5643):   c2::float coded.frame-rate.value = 30
D/CCodecConfig( 5643):   c2::u32 coded.pl.level = 20495
D/CCodecConfig( 5643):   c2::u32 coded.pl.profile = 20481
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.range = 2
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 default.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 default.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 default.color.range = 0
D/CCodecConfig( 5643):   c2::u32 default.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 input.buffers.max-size.value = 2097152
D/CCodecConfig( 5643):   c2::u32 input.delay.value = 4
D/CCodecConfig( 5643):   string input.media-type.value = "video/avc"
D/CCodecConfig( 5643):   c2::u32 output.delay.value = 12
D/CCodecConfig( 5643):   string output.media-type.value = "video/raw"
D/CCodecConfig( 5643):   c2::u32 raw.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 raw.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 raw.color.range = 2
D/CCodecConfig( 5643):   c2::u32 raw.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.height = 239
D/CCodecConfig( 5643):   c2::u32 raw.crop.left = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.top = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.width = 319
D/CCodecConfig( 5643):   c2::float raw.hdr-static-info.mastering.blue.x = 0
D/CCodecConfig( 5643):   c2::float raw.hdr-s
W/ColorUtils( 5643): expected specified color aspects (2:0:0:0)
D/MediaCodec( 5643): flushMediametrics
D/CCodec  ( 5643): [c2.mtk.avc.decoder] buffers are bound to CCodec for this session
I/CCodec  ( 5643): Client requested ByteBuffer mode decoder w/o color format set: using default planar color format
I/CCodec  ( 5643): appPid(5643) width(3840) height(2160)
D/CCodecConfig( 5643): no c2 equivalents for csd-1
D/CCodecConfig( 5643): no c2 equivalents for flags
D/CCodecConfig( 5643): Bad parameter value
D/CCodecConfig( 5643): Bad parameter value
D/CCodecConfig( 5643): Bad parameter value
W/CCodec  ( 5643): failed to configure c2 params
E/MediaCodec( 5643): Codec reported err 0xffffffea/BAD_VALUE, actionCode 0, while in state 3/CONFIGURING
D/MediaCodec( 5643): flushMediametrics
E/MediaCodec( 5643): configure failed with err 0xffffffea, resetting...
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RELEASING)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] release(1)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RELEASED)
I/MediaCodec( 5643): Codec shutdown complete
I/hw-BpHwBinder( 5643): onLastStrongRef automatically unlinking death recipients
I/CCodec  ( 5643): state->set(ALLOCATING)
I/CCodec  ( 5643): allocate(c2.mtk.avc.decoder)
I/CCodec  ( 5643): setting up 'default' as default (vendor) store
I/CCodec  ( 5643): Created component [c2.mtk.avc.decoder]
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(ALLOCATED)
D/CCodecConfig( 5643): read media type: video/avc
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.max-count.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.subscribed-indices.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: input.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.allocator-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: output.buffers.pool-ids.values
D/ReflectedParamUpdater( 5643): extent() != 1 for single value type: algo.buffers.pool-ids.values
D/ReflectedParamUpdater( 5643): ignored struct field coded.color-format.locations
D/CCodecConfig( 5643): ignoring local param raw.size (0xd2001800) as it is already supported
D/CCodecConfig( 5643): ignoring local param raw.crop (0xd2001801) as it is already supported
D/CCodecConfig( 5643): ignoring local param default.color (0x5200180b) as it is already supported
D/CCodecConfig( 5643): ignoring local param raw.hdr-static-info (0xd200180a) as it is already supported
I/CCodecConfig( 5643): query failed after returning 17 values (BAD_INDEX)
D/CCodecConfig( 5643): c2 config diff is Dict {
D/CCodecConfig( 5643):   c2::i32 algo.priority.value = 1
D/CCodecConfig( 5643):   c2::float algo.rate.value = 0
D/CCodecConfig( 5643):   c2::float coded.frame-rate.value = 30
D/CCodecConfig( 5643):   c2::u32 coded.pl.level = 20495
D/CCodecConfig( 5643):   c2::u32 coded.pl.profile = 20481
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.range = 2
D/CCodecConfig( 5643):   c2::u32 coded.vui.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 default.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 default.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 default.color.range = 0
D/CCodecConfig( 5643):   c2::u32 default.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 input.buffers.max-size.value = 2097152
D/CCodecConfig( 5643):   c2::u32 input.delay.value = 4
D/CCodecConfig( 5643):   string input.media-type.value = "video/avc"
D/CCodecConfig( 5643):   c2::u32 output.delay.value = 12
D/CCodecConfig( 5643):   string output.media-type.value = "video/raw"
D/CCodecConfig( 5643):   c2::u32 raw.color.matrix = 0
D/CCodecConfig( 5643):   c2::u32 raw.color.primaries = 0
D/CCodecConfig( 5643):   c2::u32 raw.color.range = 2
D/CCodecConfig( 5643):   c2::u32 raw.color.transfer = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.height = 239
D/CCodecConfig( 5643):   c2::u32 raw.crop.left = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.top = 0
D/CCodecConfig( 5643):   c2::u32 raw.crop.width = 319
D/CCodecConfig( 5643):   c2::float raw.hdr-static-info.mastering.blue.x = 0
D/CCodecConfig( 5643):   c2::float raw.hdr-s
W/ColorUtils( 5643): expected specified color aspects (2:0:0:0)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RELEASING)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] release(1)
I/CCodec  ( 5643): [c2.mtk.avc.decoder] state->set(RELEASED)
I/MediaCodec( 5643): Codec shutdown complete
I/hw-BpHwBinder( 5643): onLastStrongRef automatically unlinking death recipients
D/MediaCodec( 5643): flushMediametrics
D/MediaCodec( 5643): flushMediametrics
F/libc    ( 5643): ../player/loadfile.c:1939: void play_current_file(struct MPContext *): assertion "mpctx->stop_play" failed
F/libc    ( 5643): Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 6862 (Thread-9), pid 5643 (m.bluecherrydvr)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/a32ub/a32:13/TP1A.220624.014/A325MUBU6DXB1:user/release-keys'
Revision: '4'
ABI: 'arm64'
Processor: '7'
Timestamp: 2024-03-28 11:31:40.138635292-0300
Process uptime: 95s
Cmdline: com.bluecherrydvr
pid: 5643, tid: 6862, name: Thread-9  >>> com.bluecherrydvr <<<
uid: 10420
signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
Abort message: '../player/loadfile.c:1939: void play_current_file(struct MPContext *): assertion "mpctx->stop_play" failed'
    x0  0000000000000000  x1  0000000000001ace  x2  0000000000000006  x3  000000763c0fb960
    x4  0000808080808080  x5  0000808080808080  x6  0000808080808080  x7  8080808080808080
    x8  00000000000000f0  x9  00000076ec8c5b70  x10 0000000000000001  x11 00000076ec93bab0
    x12 0101010101010101  x13 0000000066057f4b  x14 003050ba2b669662  x15 0000000000000018
    x16 00000076ec9aca48  x17 00000076ec984c10  x18 000000758629a000  x19 00000000000000ac
    x20 00000000000000b2  x21 000000000000160b  x22 0000000000001ace  x23 00000000ffffffff
    x24 0000000000000001  x25 0000000000000001  x26 b40000759027ddd0  x27 0000000000000000
    x28 b40000759065dc50  x29 000000763c0fb9e0
    lr  00000076ec92bd84  sp  000000763c0fb940  pc  00000076ec92bdb4  pst 0000000000000000
backtrace:
      #00 pc 000000000008ddb4  /apex/com.android.runtime/lib64/bionic/libc.so (abort+180) (BuildId: 4d6e56b2321dd2889f771482b268b706)
      #01 pc 000000000008e1b4  /apex/com.android.runtime/lib64/bionic/libc.so (__assert2+36) (BuildId: 4d6e56b2321dd2889f771482b268b706)
      #02 pc 000000000040770c  /data/app/~~haKsjiQxB4WR1gC6UmpSvQ==/com.bluecherrydvr-9W5in6_Su0cEsxmiL2GFbw==/lib/arm64/libmpv.so
      #03 pc 00000000004068f4  /data/app/~~haKsjiQxB4WR1gC6UmpSvQ==/com.bluecherrydvr-9W5in6_Su0cEsxmiL2GFbw==/lib/arm64/libmpv.so
      #04 pc 00000000003ece78  /data/app/~~haKsjiQxB4WR1gC6UmpSvQ==/com.bluecherrydvr-9W5in6_Su0cEsxmiL2GFbw==/lib/arm64/libmpv.so
      #05 pc 00000000000fd040  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: 4d6e56b2321dd2889f771482b268b706)
      #06 pc 000000000008f5e0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 4d6e56b2321dd2889f771482b268b706)
Lost connection to device.

@user1121114685
Copy link
Author

@bdlukaa There is a very important point here. When playing many video streams, automatic switching to the next episode will occur. If you manually switch to the next episode, this problem will not occur.

@user1121114685
Copy link
Author

@bdlukaa really solved the problem this time. You can also try this PR

Dudemanguy added a commit to Dudemanguy/mpv that referenced this issue May 13, 2024
Normally if you seek during EOF, mpv will reset the value of
mpctx->stop_play so it doesn't exit. There's at least a couple of
exceptions where this *shouldn't* happen however. If the play direction
changes right at the end of the file, we shouldn't touch the value to
avoid an erronous assertion error. Additionally, it is apparently
possible for the queue_seek call in VO reinit code to trigger the
assertion issue. This is a seek of exactly zero and logically shouldn't
be reset mpctx->stop_play anyways (i.e. AT_END_OF_FILE should stay the
same). By moving this to queue_seek itself, most of the special handling
in player/command.c can be dropped. The option still needs to be set
though. Fixes mpv-player#13778.
Dudemanguy added a commit to Dudemanguy/mpv that referenced this issue May 14, 2024
Normally if you seek during EOF, mpv will reset the value of
mpctx->stop_play so it doesn't exit. There's at least a couple of
exceptions where this *shouldn't* happen however. If the play direction
changes right at the end of the file, we shouldn't touch the value to
avoid an erronous assertion error. Additionally, it is apparently
possible for the queue_seek call in VO reinit code to trigger the
assertion issue. This is a seek of exactly zero and logically shouldn't
be reset mpctx->stop_play anyways (i.e. AT_END_OF_FILE should stay the
same). By moving this to queue_seek itself, most of the special handling
in player/command.c can be dropped. The option still needs to be set
though. Fixes mpv-player#13778.
Dudemanguy added a commit to Dudemanguy/mpv that referenced this issue May 15, 2024
In various edge cases, this causes an assertion that was added later in
8816e11 to be hit. The actual purpose
of the special case is not really clear. mp_seek already will change the
mpctx->stop_play value, so there shouldn't be any need to do it in
queue_seek. And it is known to cause problems so revert it. Also, remove
the special play direction logic that works around this behavior.
Fixes mpv-player#13778.

This reverts commit dbdc46c.
Dudemanguy added a commit that referenced this issue May 16, 2024
In various edge cases, this causes an assertion that was added later in
8816e11 to be hit. The actual purpose
of the special case is not really clear. mp_seek already will change the
mpctx->stop_play value, so there shouldn't be any need to do it in
queue_seek. And it is known to cause problems so revert it. Also, remove
the special play direction logic that works around this behavior.
Fixes #13778.

This reverts commit dbdc46c.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants