macOS Ventura "Family" app persistent store service log entries (sandbox)

I am experiencing several errors in the console related to persistent store service connection, and I would appreciate some guidance on how to resolve them. Here are the errors that I am seeing repeating in the console log of my device:


error	10:31:05.786761+0100	Family	Persistent store service connection invalidated: failed at lookup with error 159 - Sandbox restriction
error	10:31:05.786854+0100	Family	Error communicating with persistent store service proxy: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.contactsd.persistence was invalidated: failed at lookup with error 159 - Sandbox restriction." UserInfo={NSDebugDescription=The connection to service named com.apple.contactsd.persistence was invalidated: failed at lookup with error 159 - Sandbox restriction.}
error	10:31:05.786890+0100	Family	Error connecting to remote endpoint: (null)
error	10:31:05.786941+0100	Family	fault: Unable to create token NSXPCConnection.  NSXPCStoreServerEndpointFactory 0x15766b710 -newEndpoint returned nil
fault	10:31:05.787048+0100	Family	CoreData: Unable to create token NSXPCConnection.  NSXPCStoreServerEndpointFactory 0x15766b710 -newEndpoint returned nil
error	10:31:05.787663+0100	Family	error: Failed to create NSXPCConnection
error	10:31:05.787934+0100	Family	Persistent store service connection invalidated: failed at lookup with error 159 - Sandbox restriction
error	10:31:05.787983+0100	Family	Error communicating with persistent store service proxy: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.contactsd.persistence was invalidated: failed at lookup with error 159 - Sandbox restriction." UserInfo={NSDebugDescription=The connection to service named com.apple.contactsd.persistence was invalidated: failed at lookup with error 159 - Sandbox restriction.}
error	10:31:05.788217+0100	Family	Error connecting to remote endpoint: (null)
error	10:31:05.788264+0100	Family	fault: Unable to create token NSXPCConnection.  NSXPCStoreServerEndpointFactory 0x15766b710 -newEndpoint returned nil
fault	10:31:05.788681+0100	Family	CoreData: Unable to create token NSXPCConnection.  NSXPCStoreServerEndpointFactory 0x15766b710 -newEndpoint returned nil


I'm not sure what is causing these errors, but they seem to be related to a sandbox restriction. Can you please advise me on what steps I can take to resolve these issues? Any help you can provide would be greatly appreciated.


Thank you in advance for your assistance.

Mac Studio, macOS 13.2

Posted on Feb 22, 2023 2:18 AM

Reply

Similar questions

24 replies

Sep 8, 2023 10:00 AM in response to Warloxk

Looks like it is the PrefPane for Family-Sharing:


Analysis of sampling Family (pid 2374) every 1 millisecond

Process: Family [2374]

Path: /System/Library/CoreServices/Family.app/Contents/MacOS/Family

Load Address: 0x102de0000

Identifier: com.apple.Family

Version: 1.0 (1)

Build Info: Family_FamilySharingPrefPane-167011000000000~118

Code Type: ARM64E

Platform: macOS

Parent Process: ??? [1]


Date/Time: 2023-09-08 18:58:23.976 +0200

Launch Time: 2023-09-08 18:36:22.316 +0200

OS Version: macOS 13.5.2 (22G91)

Report Version: 7

Analysis Tool: /usr/bin/sample


Physical footprint: 28.0M

Physical footprint (peak): 28.3M

Idle exit: untracked

----


Call graph:

859 Thread_16090: Main Thread

+ 859 completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) (in libswift_Concurrency.dylib) + 1 [0x23575d215]

Oct 19, 2023 5:05 AM in response to JeffreyPhD

Same problem here (Ventura 13.5.2/ Mac Mini M2)...


I'm seeing strange behavior in the user interface, i.e. unable to right click, wallpaper went to default, desktop icons are hidden and are "stuck" in that mode...


Tried turning off my location sharing with family members, terminating processes in Activity Monitor, and lots of other things... restarting...


So... will upgrading to Sonoma help?

Oct 31, 2023 11:41 PM in response to Warloxk

I think I fixed it (for me at least). So I use an app called Lulu, it is basically a firewall. Looking at the following post here I saw that someone put imagent as a firewall rule to allow all connections. I did that in Lulu, and now I don't seem to be getting the errors anymore.


So basically to put /System/Library/PrivateFrameworks/IMCore.framework/imagent.app as a rule to allow all connections. Go to settings > network > firewall > options. Click the + icon in the window that pops up and I finder window should pop up. Press command + shift + g and go to this path "System/Library/PrivateFrameworks/IMCore.framework/". In there should be the imagent.app, double press it. It should now be added in the window that popped up before. And just te make sure check if imagent.app is in there and it is set to allow all connections.


I hope this was helpful.

Nov 4, 2023 9:54 AM in response to _Gu

Seemed to work for me... until I restarted sidecar (which times out after a couple of minutes, this being the reason for me to look at the console...). With ipad screen used as extended monitor via sidecar, I get ~12 faults/s with

Family (CoreData) CoreData: Unable to create token NSXPCConnection.

and a little less than 5-10 faults/second with

imagent (CoreData) CoreData: Unable to create token NSXPCConnection.

macOS Ventura "Family" app persistent store service log entries (sandbox)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.