Author Message
????????_deprecated
Joined: Nov 15, 2017
Messages: 7
Offline
Hello, the program crashed when I called [user start] to start the registration service. The following is a crash message. Please help me to see, thank you.

2018-02-01 11:01:09.156750+0800 MACPhone[2297:66468] [General] An uncaught exception was raised
2018-02-01 11:01:09.157595+0800 MACPhone[2297:66468] [General] Invalid parameter not satisfying: lockFilePath != nil
2018-02-01 11:01:09.157742+0800 MACPhone[2297:66468] [General] (
0 CoreFoundation 0x00007fff8e1472cb __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fffa2f5e48d objc_exception_throw + 48
2 CoreFoundation 0x00007fff8e14c042 +[NSException raise:format:arguments:] + 98
3 Foundation 0x00007fff8fb94be0 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
4 AddressBook 0x00007fff8b8fea9d -[ABProcessSharedLock initWithLockFilePath:localLock:fileServices:] + 167
5 AddressBook 0x00007fff8b8fe991 +[ABProcessSharedLock recursiveSharedLockWithLockFilePath:] + 108
6 AddressBook 0x00007fff8b8fe440 +[ABAddressBook initializeFileLock] + 112
7 AddressBook 0x00007fff8b8fcf6d -[ABAddressBook nts_InitDefaultContactManager] + 157
8 AddressBook 0x00007fff8b8fce7c +[ABAddressBook nts_SharedAddressBook] + 71
9 AddressBook 0x00007fff8b8fcd5f +[ABAddressBook nts_CreateSharedAddressBook] + 48
10 AddressBook 0x00007fff8b8fcbda +[ABAddressBook sharedAddressBook] + 67
11 AvayaClientServices 0x0000000100a06e4e -[CSLocalContactMac initializeAddressBook] + 53
12 libdispatch.dylib 0x000000010410dcfe _dispatch_call_block_and_release + 12
13 libdispatch.dylib 0x000000010410478c _dispatch_client_callout + 8
14 libdispatch.dylib 0x0000000104112ac4 _dispatch_main_queue_callback_4CF + 362
15 CoreFoundation 0x00007fff8e0fcbc9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
16 CoreFoundation 0x00007fff8e0bdc0d __CFRunLoopRun + 2205
17 CoreFoundation 0x00007fff8e0bd114 CFRunLoopRunSpecific + 420
18 HIToolbox 0x00007fff8d61debc RunCurrentEventLoopInMode + 240
19 HIToolbox 0x00007fff8d61dcf1 ReceiveNextEventCommon + 432
20 HIToolbox 0x00007fff8d61db26 _BlockUntilNextEventMatchingListInModeWithFilter + 71
21 AppKit 0x00007fff8bbb4a54 _DPSNextEvent + 1120
22 AppKit 0x00007fff8c3307ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
23 AppKit 0x00007fff8bba93db -[NSApplication run] + 926
24 AppKit 0x00007fff8bb73e0e NSApplicationMain + 1237
25 MACPhone 0x0000000100016732 main + 34
26 libdyld.dylib 0x00007fffa3844235 start + 1
27 ??? 0x0000000000000003 0x0 + 3
)
2018-02-01 11:01:09.161 MACPhone[2297:66827] CContactManager::OnContactProviderGetContactsFailed():
2018-02-01 11:01:09.162 MACPhone[2297:66827] CContactService::OnContactManagerLoadingFailed(): eProviderType = LOCAL and bContactLoadingComplete = YES
2018-02-01 11:01:09.164507+0800 MACPhone[2297:66468] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: lockFilePath != nil'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff8e1472cb __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fffa2f5e48d objc_exception_throw + 48
2 CoreFoundation 0x00007fff8e14c042 +[NSException raise:format:arguments:] + 98
3 Foundation 0x00007fff8fb94be0 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
4 AddressBook 0x00007fff8b8fea9d -[ABProcessSharedLock initWithLockFilePath:localLock:fileServices:] + 167
5 AddressBook 0x00007fff8b8fe991 +[ABProcessSharedLock recursiveSharedLockWithLockFilePath:] + 108
6 AddressBook 0x00007fff8b8fe440 +[ABAddressBook initializeFileLock] + 112
7 AddressBook 0x00007fff8b8fcf6d -[ABAddressBook nts_InitDefaultContactManager] + 157
8 AddressBook 0x00007fff8b8fce7c +[ABAddressBook nts_SharedAddressBook] + 71
9 AddressBook 0x00007fff8b8fcd5f +[ABAddressBook nts_CreateSharedAddressBook] + 48
10 AddressBook 0x00007fff8b8fcbda +[ABAddressBook sharedAddressBook] + 67
11 AvayaClientServices 0x0000000100a06e4e -[CSLocalContactMac initializeAddressBook] + 53
12 libdispatch.dylib 0x000000010410dcfe _dispatch_call_block_and_release + 12
13 libdispatch.dylib 0x000000010410478c _dispatch_client_callout + 8
14 libdispatch.dylib 0x0000000104112ac4 _dispatch_main_queue_callback_4CF + 362
15 CoreFoundation 0x00007fff8e0fcbc9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
16 CoreFoundation 0x00007fff8e0bdc0d __CFRunLoopRun + 2205
17 CoreFoundation 0x00007fff8e0bd114 CFRunLoopRunSpecific + 420
18 HIToolbox 0x00007fff8d61debc RunCurrentEventLoopInMode + 240
19 HIToolbox 0x00007fff8d61dcf1 ReceiveNextEventCommon + 432
20 HIToolbox 0x00007fff8d61db26 _BlockUntilNextEventMatchingListInModeWithFilter + 71
21 AppKit 0x00007fff8bbb4a54 _DPSNextEvent + 1120
22 AppKit 0x00007fff8c3307ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
23 AppKit 0x00007fff8bba93db -[NSApplication run] + 926
24 AppKit 0x00007fff8bb73e0e NSApplicationMain + 1237
25 MACPhone 0x0000000100016732 main + 34
26 libdyld.dylib 0x00007fffa3844235 start + 1
27 ??? 0x0000000000000003 0x0 + 3
)
Pavel_K
Joined: Dec 20, 2016
Messages: 67
Offline
The crash in AvayaClientServices -[CSLocalContactMac initializeAddressBook] method. This method checks access to address book using next code:

_localAddressBook = [ABAddressBook sharedAddressBook];

if (_localAddressBook)
{
self.addressBookAccessGranted = YES;
}
else
{
LOG(DEBUG) << "Access to addressbook is not granted";
}

The MacOS method ABAddressBook should return nil if user denies access to the Address Book database. Could you please provide access and repeat testing?

Could you please also collect client logs and I will open a JIRA to track this issue.
????????_deprecated
Joined: Nov 15, 2017
Messages: 7
Offline
Thank you for your reply, I think I have already solved it. I do not know why the "App Sandbox" switch in Xcode "Capabilities" is turned on, and the application does not crash after I close it.
Go to:   
Mobile view