iOS mediaserverd进程崩溃

时间:2019-06-21 02:09:18

标签: video avfoundation

我做什么

  1. 我使用AVFoundation合并了多个视频
  2. 我使用[AVMutableCompositionTrack scaleTimeRange]更改了视频速度
  3. [layerInstruction setTransformRampFromStartTransform:startTransform toEndTransform:endTransform timeRange:transTimeRange]
  4. 在两个视频之间添加转换
  5. 依此类推

发生了什么

  1. 当我预览全部合并视频(iphone8)或使用AVAssetExportSession导出到本地(iPhoneXR)时,应用程序收到“ AVAudioSessionMediaServicesWereResetNotification”通知。
  2. 我所有的AVPlayerItem都收到AVPlayerItemStatusFailed(KVO @“状态”),过程失败!
  3. 崩溃时我无法在项目中获取位置代码
  4. 然后我在设备(mediaserverd)中找到崩溃日志:
Incident Identifier: 3423F244-30C8-4BF6-8B17-973A484A56D9
CrashReporter Key:   df68ba962d120b617cde7167c3ce094db3dcaa19
Hardware Model:      iPhone10,1
Process:             mediaserverd [26]
Path:                /usr/sbin/mediaserverd
Identifier:          mediaserverd
Version:             ???
Code Type:           ARM-64 (Native)
Role:                Unspecified
Parent Process:      launchd [1]
Coalition:           com.apple.mediaserverd [15]


Date/Time:           2019-06-10 18:23:34.8714 +0800
Launch Time:         2019-06-03 09:52:03.1229 +0800
OS Version:          iPhone OS 12.3.1 (16F203)
Baseband Version:    3.60.01
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x000000011d6d4000
VM Region Info: 0x11d6d4000 is not in any region.  Bytes after previous region: 1474561  Bytes before following region: 25378816
      REGION TYPE                      START - END             [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      MALLOC_LARGE           000000011d544000-000000011d56c000 [  160K] rw-/rwx SM=PRV  
--->  GAP OF 0x199c000 BYTES
      MALLOC_LARGE           000000011ef08000-000000011f008000 [ 1024K] rw-/rwx SM=PRV  

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [26]
Triggered by Thread:  15
.
.
.
.

Thread 15 name:  Dispatch queue: com.apple.coremedia.basicvideocompositor.layerprocessing
Thread 15 Crashed:
0   MediaToolbox                    0x0000000201e2e3c8 bvc_SimpleMixingOpaque_420v_420v_420v_arm + 312
1   MediaToolbox                    0x0000000201cfe9fc __bvc_mixBuffers_block_invoke + 732
2   libdispatch.dylib               0x00000001fcc95814 _dispatch_client_callout2 + 16
3   libdispatch.dylib               0x00000001fcc7aeb4 _dispatch_apply_serial + 116
4   libdispatch.dylib               0x00000001fcc957d4 _dispatch_client_callout + 16
5   libdispatch.dylib               0x00000001fcc76bf4 _dispatch_sync_invoke_and_complete + 56
6   libdispatch.dylib               0x00000001fcc7ad98 dispatch_apply_f$VARIANT$armv81 + 852
7   MediaToolbox                    0x0000000201cfcd58 bvc_mixBuffers + 1296
8   MediaToolbox                    0x0000000201cfc318 __basicVideoCompositor_RenderFrame_block_invoke_4 + 2300
9   libdispatch.dylib               0x00000001fcc94a38 _dispatch_call_block_and_release + 24
10  libdispatch.dylib               0x00000001fcc957d4 _dispatch_client_callout + 16
11  libdispatch.dylib               0x00000001fcc70dec _dispatch_lane_serial_drain$VARIANT$armv81 + 548
12  libdispatch.dylib               0x00000001fcc7192c _dispatch_lane_invoke$VARIANT$armv81 + 408
13  libdispatch.dylib               0x00000001fcc79e08 _dispatch_workloop_worker_thread + 584
14  libsystem_pthread.dylib         0x00000001fce75114 _pthread_wqthread + 304
15  libsystem_pthread.dylib         0x00000001fce77cd4 start_wqthread + 4

0 个答案:

没有答案