The error about Assertion "failure in -[NSRemoteView informAuxServiceOfSelf]"

Hi,

I am a developer on MacOSX,I developed a Mac App, when I used it, the screen will turn red on some Mac about two hours later.And I use the xcode "Debug

view hierachy",it's showed nothing in the _NSPopoverWindow, In my App Project,I used NSPopover class to show the App window, here is the code:



self.popover = [[NSPopover alloc]init];

self.popover.behavior = NSPopoverBehaviorTransient;

self.popover.appearance = [NSAppearance appearanceNamed:NSAppearanceNameVibrantLight];

self.popover.contentViewController = mainController;



At the same time,the xcode show the error:




2017-12-21 11:35:00.962646+0800 SkyVPN[66801:27388551] * Assertion failure in -[NSRemoteView informAuxServiceOfSelf], /Library/Caches/com.apple.xbs/Sources/ViewBridge/ViewBridge-283/NSRemoteView.m:3207 2017-12-21 11:35:00.965812+0800 SkyVPN[66801:27388551] IMKInputSession presentFunctionRowItemTextInputViewWithEndpoint:completionHandler: : [self textInputContext]=0x0 NO NSRemoteViewController to client, NSError=Error Domain=com.apple.ViewBridge Code=8 "(null)" UserInfo={com.apple.ViewBridge.error.hint=__38-[NSRemoteView _advanceToConfigPhase:]_block_invoke.2466 caught NSInternalInconsistencyException '<NSRemoteView: 0x600000b25f00> failed to rendezvous via aux service' with backtrace ( 0 CoreFoundation 0x00007fff8428a2cb __exceptionPreprocess + 171 1 libobjc.A.dylib 0x00007fff990a248d objc_exception_throw + 48 2 CoreFoundation 0x00007fff8428f042 +[NSException raise:format:arguments:] + 98 3 Foundation 0x00007fff85cd7be0 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195 4 ViewBridge 0x00007fff97af7b34 -[NSRemoteView informAuxServiceOfSelf] + 345 5 ViewBridge 0x00007fff97af847e -[NSRemoteView _finishAdvanceToConfigPhaseWithContextID:andServiceViewSize:andOffset:] + 685 6 ViewBridge 0x00007fff97b0c298 _38-[NSRemoteView advanceToConfigPhase:]_block_invoke.2466 + 103 7 CoreFoundation 0x00007fff841fdb8c invoking_ + 140 8 CoreFoundation 0x00007fff841fda11 -[NSInvocation invoke] + 289 9 ViewBridge 0x00007fff97b33579 withHintInProgress + 487 10 ViewBridge 0x00007fff97b332b0 __deferNSXPCInvocationOntoMainThread_block_invoke_2 + 233 11 ViewBridge 0x00007fff97ab7459 +[NSViewServiceApplication withHostPID:invoke:] + 46 12 ViewBridge 0x00007fff97b33173 __deferNSXPCInvocationOntoMainThread_block_invoke + 179 13 ViewBridge 0x00007fff97b32d67 __deferBlockOntoMainThread_block_invoke_2 + 544 14 CoreFoundation 0x00007fff8422017c CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 12 15 CoreFoundation 0x00007fff84200f84 __CFRunLoopDoBlocks + 356 16 CoreFoundation 0x00007fff84200ac6 __CFRunLoopRun + 1878 17 CoreFoundation 0x00007fff84200114 CFRunLoopRunSpecific + 420 18 HIToolbox 0x00007fff8399d19e -[IMKInputSessionXPCInvocation invocationAwaitXPCReply] + 606 19 HIToolbox 0x00007fff839a1a7c -[IMKInputSession deactivate] + 2969 20 HIToolbox 0x00007fff839537db IMKInputSessionDeactivate + 36 21 HIToolbox 0x00007fff83952ba9 DeactivateInputMethodInstance + 100 22 HIToolbox 0x00007fff8394766d utDeactivateAllSelectedIMInDocIterator + 87 23 CoreFoundation 0x00007fff841c2e34 CFArrayApplyFunction + 68 24 HIToolbox 0x00007fff8379513b utDeactivateAllSelectedIMInDoc + 131 25 HIToolbox 0x00007fff83794ba0 MyDeactivateTSMDocument + 351 26 CoreFoundation 0x00007fff84209c54 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 20 27 CoreFoundation 0x00007fff842098df __CFRunLoopDoTimer + 1071 28 CoreFoundation 0x00007fff8420943a __CFRunLoopDoTimers + 298 29 CoreFoundation 0x00007fff84200b81 __CFRunLoopRun + 2065 30 CoreFoundation 0x00007fff84200114 CFRunLoopRunSpecific + 420 31 HIToolbox 0x00007fff83760ebc RunCurrentEventLoopInMode + 240 32 HIToolbox 0x00007fff83760cf1 ReceiveNextEventCommon + 432 33 HIToolbox 0x00007fff83760b26 _BlockUntilNextEventMatchingListInModeWithFilter + 71 34 AppKit 0x00007fff81cf9a54 _DPSNextEvent + 1120 35 AppKit 0x00007fff824757ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796 36 AppKit 0x00007fff81cee3db -[NSApplication run] + 926 37 AppKit 0x00007fff81cb8e0e NSApplicationMain + 1237 38 SkyVPN 0x000000010000b7b7 main + 135 39 libdyld.dylib 0x00007fff99988235 start + 1 ), com.apple.ViewBridge.error.description=NSViewBridgeExceptionError}, com.apple.inputmethod.EmojiFunctionRowItem





Why does this happen to some Mac, How to solve this problem?

Thanks,

lslboy

Replies

Anyone help me,Thanks

Please format your backtrace as as code (using the

<>
). Then I might have some hope of being able to read it (-:

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"