我正在开发一个macOS应用程序,我不时会收到一个奇怪的错误。我使用AVPlayer流式传输实时视频。一切正常,但经过一段时间的流媒体突然,应用程序崩溃了以下错误:
libBacktraceRecording.dylib`__gcd_queue_item_enqueue_hook_block_invoke:
0x10019fe32 <+0>: pushq %rbp
0x10019fe33 <+1>: movq %rsp, %rbp
-> 0x10019fe36 <+4>: movq 0x20(%rsi), %rax
0x10019fe3a <+8>: movq 0x20(%rdi), %rcx
0x10019fe3e <+12>: cmpq 0x8(%rcx), %rax
0x10019fe42 <+16>: sete %al
0x10019fe45 <+19>: popq %rbp
0x10019fe46 <+20>: retq
控制台日志中的消息如下所示:
2017-05-02 14:02:36.909336+0200 SampleApp[3460:236302] sendMessageWithCategory: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.rtcreportingd" UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd}
2017-05-02 14:02:36.909421+0200 SampleApp[3460:236302] initWithSessionInfo: XPC connection interrupted
2017-05-02 14:02:36.909548+0200 SampleApp[3460:236302] sendMessageWithCategory: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.rtcreportingd" UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd}
(lldb)