[ABAddressBook sharedAddressBook] throws NSInvalidArgumentException

Originator:motownavi
Number:rdar://12276058 Date Originated:11-Sep-2012 11:44 AM
Status:Open Resolved:
Product:Mac OS X Product Version:10.8.1
Classification:Crash/Hang/Data Loss Reproducible:Not Applicable
 
We track crashes for Google Chrome, and we're seeing a lot of +[ABAddressBook sharedAddressBook] throwing NSInvalidArgumentException. We've seen it from 10.6-10.8, and right now it accounts for 30% of our browser crashes. We're tracking it at http://code.google.com/p/chromium/issues/detail?id=129022 .

A sample crash:

Mac OS X ,  10.8.1 12B19
NSInvalidArgumentException: Error validating url for store

0x9601dbe4	 [CoreData]	 + 0x00105be4]	-[_NSCoreDataException initWithName:code:reason:userInfo:]
0x9601db7f	 [CoreData]	 + 0x00105b7f]	+[_NSCoreDataException exceptionWithName:code:reason:userInfo:]
0x95f23a24	 [CoreData]	 + 0x0000ba24]	-[NSSQLCore initWithPersistentStoreCoordinator:configurationName:URL:options:]
0x95f22648	 [CoreData]	 + 0x0000a648]	-[NSPersistentStoreCoordinator addPersistentStoreWithType:configuration:URL:options:error:]
0x90c884bc	 [AddressBook]	 + 0x000124bc]	-[ABPersistentStoreBuilder addSqlitePersistentStoreWithUrl:]
0x90c87e7f	 [AddressBook]	 + 0x00011e7f]	-[ABPersistentStoreBuilder addPersistentStoreAtDatabasePath:]
0x90c87d25	 [AddressBook]	 + 0x00011d25]	-[ABPersistentStoreCoordinatorFactory addStoresForAccounts:withStoreBuilder:]
0x90c8018c	 [AddressBook]	 + 0x0000a18c]	-[ABPersistentStoreCoordinatorFactory pool_makeCoordinatorForAllAvailableSources]
0x90c800ce	 [AddressBook]	 + 0x0000a0ce]	__76-[ABPersistentStoreCoordinatorFactory makeCoordinatorForAllAvailableSources]_block_invoke_0
0x90c8005f	 [AddressBook]	 + 0x0000a05f]	ABResultWithAutoreleasePool
0x90c80015	 [AddressBook]	 + 0x0000a015]	-[ABPersistentStoreCoordinatorFactory makeCoordinatorForAllAvailableSources]
0x90c7fd78	 [AddressBook]	 + 0x00009d78]	-[ABPersistentStoreCoordinatorCache nts_coordinatorForAllSources]
0x90c7fccf	 [AddressBook]	 + 0x00009ccf]	-[ABPersistentStoreCoordinatorCache coordinatorForAllSources]
0x90c7f9e9	 [AddressBook]	 + 0x000099e9]	-[ABAddressBook(ABAddressBook_CoreData_Private) nts_managedObjectContextWithStoreDescription:databasePath:loadFailure:]
0x90c7f145	 [AddressBook]	 + 0x00009145]	-[ABAddressBook(ABAddressBook_CoreData_Private) managedObjectContext]
0x90c7a689	 [AddressBook]	 + 0x00004689]	+[ABAddressBook nts_SharedAddressBook]
0x90c7a48f	 [AddressBook]	 + 0x0000448f]	+[ABAddressBook nts_CreateSharedAddressBook]
0x90c795f4	 [AddressBook]	 + 0x000035f4]	+[ABAddressBook sharedAddressBook]
0x002a2806	 [Google Chrome Framework]	 - personal_data_manager_mac.mm:71]	PersonalDataManager::LoadAuxiliaryProfiles

We block third party code from loading, so this isn't a third party code injection issue. If you google for any of these method names, you can see that crashes like this are very widespread across lots of apps.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!