目标c dispatch_async崩溃

时间:2018-05-25 10:12:41

标签: objective-c nsnotification

代码:

- (void)stopCurrentSessionFromSuite:(NSNotification*)notification{

        isCloseCurrentSession = YES;
        dispatch_async(self.dataSendingQueue, ^{
            CARD8 messageToDisableSession = rpcHostDisableMsg;
            [readerNwriter writeExact:(char*)&messageToDisableSession ofLenght:sizeof(CARD8) secApplied:NO];
        });
        [rpcCaptureMgr stopCaptureSession];

}

崩溃:

  

启动后的时间清醒:1400秒

     

系统完整性保护:已启用

     

Crashed Thread:0 Dispatch queue:com.apple.main-thread

     

异常类型:EXC_BAD_ACCESS(SIGSEGV)异常代码:
  KERN_INVALID_ADDRESS位于0x0000000000000070例外注意:
  EXC_CORPSE_NOTIFY

     

终止信号:分段故障:11终止原因:
  命名空间SIGNAL,代码0xb终止进程:exc handler [0]

     

VM区域接近0x70:    - >       __TEXT 000000010871a000-000000010873a000 [128K] r-x / rwx SM = COW   /应用/ RemotePCSuite / * / RemotePCDesktop.app/Contents/MacOS/RemotePCDesktop

     

Thread 0 Crashed :: Dispatch queue:com.apple.main-thread 0
  libdispatch.dylib 0x00007fff72de50db   _dispatch_continuation_async + 5 1 com.prosoftnet.remotepcDesktop 0x0000000108727fd5    - [RPCDesktopAppDelegate stopCurrentSessionFromSuite:] + 104 2 com.apple.CoreFoundation 0x00007fff4b7a333c    CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12 3 com.apple.CoreFoundation 0x00007fff4b7a32cf    _CFXRegistrationPost_block_invoke + 63 4 com.apple.CoreFoundation 0x00007fff4b7ab92c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 12 5
  com.apple.CoreFoundation 0x00007fff4b78e8a3 __CFRunLoopDoBlocks   + 275 6 com.apple.CoreFoundation 0x00007fff4b78e668 __CFRunLoopRun + 3128 7 com.apple.CoreFoundation 0x00007fff4b78d797 CFRunLoopRunSpecific + 487 8 com.apple.HIToolbox     0x00007fff4aaa2866 RunCurrentEventLoopInMode + 286 9
  com.apple.HIToolbox 0x00007fff4aaa25d6   ReceiveNextEventCommon + 613 10 com.apple.HIToolbox
    0x00007fff4aaa2354 _BlockUntilNextEventMatchingListInModeWithFilter +   64 11 com.apple.AppKit 0x00007fff48d9fa23 _DPSNextEvent   + 2085 12 com.apple.AppKit 0x00007fff49534e6c - [NSApplication(NSEvent)_nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044 13 com.apple.AppKit 0x00007fff48d94831 - [NSApplication run]   + 764 14 com.apple.AppKit 0x00007fff48d639d2 NSApplicationMain + 804 15 libdyld.dylib
    0x00007fff72e0c145 start + 1

0 个答案:

没有答案