Some strange log entries for XPC

We're using XPC in our app and as far as I can tell its working but I'm seeing the following entries in the console that kind of bother me:


LaunchServices: received XPC_ERROR_CONNECTION_INTERRUPTED trying to map database
LaunchServices: Database mapping failed with result -10822, retrying
CFPreferences could not connect to its daemon.
  Preferences using the connection 0x0 will be volatile and will not be persisted to disk.


and also:

Sep  8 13:13:32 AlexKac com.apple.xpc.launchd[1] (com.fanaticsoftware.informant.helper[1146]): Could not resolve CFBundleIdentifier specified by service: -10814: com.fanaticsoftware.informant.helper
Sep  8 13:13:32 AlexKac com.apple.xpc.launchd[1] (com.fanaticsoftware.informant.helper): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.


Does anyone have suggestions, things to look for, etc? Or is this currently an El Capitan issue others are seeing?

One thing that could cause that is if your program has an unusually restrictive sandbox profile. Are you using a custom sandbox that might block access to system services?


If not, that's definitely worth filing a bug on. Various APIs (NSUserDefaults/CFPreferences for example) will not work in your process in this state.

I'm not using Sandbox at all at this point. We will move to Sandbox later, but before we do we want to ensure that non-sandbox works perfectly.

I see the same issue here with El Capitan.


Hundreds of log entries like this

02/10/15 08:55:12,856 mdworker[1240]: LaunchServices: received XPC_ERROR_CONNECTION_INTERRUPTED trying to map database

02/10/15 08:55:12,856 mdworker[1240]: LaunchServices: received XPC_ERROR_CONNECTION_INTERRUPTED trying to map database

02/10/15 08:55:12,856 mdworker[1240]: LaunchServices: Database mapping failed with result -10822, retrying

Likewise I am seeeing a massive number of these errors in the Console.

Seeing the same on El-Capitan and helper apps of some apps won't launch.

Please also log a bug with Apple so they look into this, it seems this is a common issue.

Has anyone posted a bug report? I'm getting the XPC_ERROR_CONNECTION_INVALID with the mdworker process while doing time machine backups (since ElCap update), too.

Some strange log entries for XPC
 
 
Q