photoanalysisd crashes on AddressBook-v22.abcddb - multiple failures every day
Hello,
Since a couple of weeks the background photoanalysisd service crashes at random moments. This will invoke the crash reporter multiple times per day, which is, to put it mildly, rather annoying. Is there an easy fix/patch or a way to pause/stall the service until a later moment?
The crash log reads: "The file “AddressBook-v22.abcddb” couldn’t be opened."
I have looked this up and tried several tips, all to no avail. I tried setting permissions, removing the abcddb file, I ran disk repair, flushed caches etc. Ran in safe mode, ran with limited services, disabled AV apps etc.
It seems that photoanalysisd is stuck in a loop, never ending its task and eating up CPU, often above 100%.
Report details:
dyld3 mode
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unhandled error (NSCocoaErrorDomain, 256) occurred during faulting and was thrown: Error Domain=NSCocoaErrorDomain Code=256 "The file “AddressBook-v22.abcddb” couldn’t be opened." UserInfo={NSFilePath=/Users/***/Library/Application Support/AddressBook/Sources/27212366-F476-4A8E-B415-014C438E772B/AddressBook-v22.abcddb, NSSQLiteErrorDomain=14}'
terminating with uncaught exception of type _NSCoreDataException
abort() called
System details:
MacBook Pro 11.3 (Retina, 15-inch, Mid 2014)
2,5 GHz Quad-Core Intel Core i7 / 16GB DDR3 1600
NVIDIA GeForce GT750M 2GB
macOS Catalina v10.15.4 (19E287)
The only other processes that seem to eat up similarly high CPU amounts are background services possibly related to indexing and synchronization of files. Not sure if this is related or logical to include in this post, but it seems for a reason that EtreCheck puts these alongside photoanalysisd as CPU hungry.
amfid
(/usr/libexec/amfid)
suggestd
(/System/Library/PrivateFrameworks/CoreSuggestions.framework/Versions/A/Support/suggestd)
backupd
(/System/Library/CoreServices/backupd.bundle/Contents/Resources/backupd)
All other processes that I see in Activity Monitor seem to give logical values that are easily understood for the tasks they have to handle.
In my efforts at trouble shooting, I have limited the iCloud sync to not include any files on/in desktop/documents. Photos is not syncing to iCloud. To rule out any interference with Timemachine, I have disabled old backup locations and started using a new external drive. I have temporarily stopped syncing my mobile photos to the Photos app.
Is there anything that could explain this?
Are there any tools, tips or tricks that can solve this?
Thanks in advance for your help.
MacBook Pro Retina