iOS 13.1 crash related with AVSampleBufferDisplayLayer

* thread #258, queue = 'com.apple.coremedia.vqr.timebasesync', stop reason = EXC_BREAKPOINT (code=1, subcode=0x114d55c50)
  * frame #0: 0x0000000114d55c50 libdispatch.dylib`__DISPATCH_WAIT_FOR_QUEUE__ + 456
    frame #1: 0x0000000114d55610 libdispatch.dylib`_dispatch_sync_f_slow + 176
    frame #2: 0x00000001aaa1b820 MediaToolbox`videoQueueRemote_Invalidate + 320
    frame #3: 0x00000001aaa1b8e8 MediaToolbox`videoQueueRemote_Finalize + 32
    frame #4: 0x00000001a75f1b80 CoreMedia`FigBaseObjectFinalize + 92
    frame #5: 0x00000001a0eaf000 CoreFoundation`_CFRelease + 208
    frame #6: 0x00000001aaa1c4cc MediaToolbox`videoQueueRemote_syncServerTimebaseToMoment + 396
    frame #7: 0x00000001aa683e74 MediaToolbox`figSyncMomentSource_sendMomentInternal + 68
    frame #8: 0x0000000114d46c04 libdispatch.dylib`_dispatch_client_callout + 16
    frame #9: 0x0000000114d4db74 libdispatch.dylib`_dispatch_lane_serial_drain + 744
    frame #10: 0x0000000114d4e710 libdispatch.dylib`_dispatch_lane_invoke + 448
    frame #11: 0x0000000114d59ae4 libdispatch.dylib`_dispatch_workloop_worker_thread + 1324
    frame #12: 0x00000001a0c4cfa4 libsystem_pthread.dylib`_pthread_wqthread + 276

this happened after [AVSampleBufferDisplayLayer dealloc]. Did anyone ever suffer from this?

Accepted Reply

No. I have no alternative but to used a singleton object which holds three AVSampleBufferDisplayLayers as a pool to recycle AVSampleBufferDisplayLayer when system version not beblow 13.1, to avoid [AVSampleBufferDisplayLayers dealloc]. This action reduces this crash very much, while it still seldom happens.

Replies

We are seeing this as well. Have you been able to find any workarounds?

No. I have no alternative but to used a singleton object which holds three AVSampleBufferDisplayLayers as a pool to recycle AVSampleBufferDisplayLayer when system version not beblow 13.1, to avoid [AVSampleBufferDisplayLayers dealloc]. This action reduces this crash very much, while it still seldom happens.

It seems this crash disapeared in iOS 13.2 beta versions.