FamilyControlsAgent crashing in 15.5 and above

I started seeing failures authenticating to FamilyControls on a test device and I think I've tracked it down to the underlying FamilyControlsAgent process crashing:

Terminating app due to uncaught exception 'CKException', reason: 'recordName (AAAAAAAAAAAAAAAADH0toCzCpPWEtIr89SNmamgacnXdKjEEhIjr/hu5Hm1Rdg85TfYRKG6o9DcxOOuAXBsJp+1+Fcd/8vYor2SXoOuRNN06PQNsv3sVy9ifrjzFU1l29ZrB68jM5P1Z9JhvvQhB57htPPSwKew8ZjYZKI2a6EUnc9f7TpevWkuvNPtJUUOY6H/Zmh66KXgCySiMv5c32kItb5/CB+hWPOb9u44NxGultUqMhzciWjNfitDXo28sxD4ktFf2Afd0+xO2GCkYlSyP8uxV/SHC/tc2o91EV2z+z9fq) is too long'

I can't imagine what I might have fed it from my to cause it to generate such a name, and 15.4 seems to be working just fine with the same code.

Any ideas?

I've witnessed the same issue right now with a user who is unable to uninstall the app due to this issue ...

Feedback Assistant ID: FB10567269

I have the same problem, with some twists.

Sorry, not an answer, just a me too

In my app, this has always happened, regardless of iOS version. I didn't start testing install/delete until later in my development but it has definitely happened in iOS 15.4. Not only does it not allow the app to be un-installed, it will also often cause the authorization process to fail in an odd way. Like the parent auth shield comes up, I supply the info, then the center.requestAuthorization closure completes with success. However, any call to any Family Controls or Device Activity function will result in "This app has not been approved for Family Controls" or similar error.

It will successfully install on a device that has been reset (Erase all content and settings), and the app will work as expected... until I try to delete the app, which fails.

I have built a separate minimal test app with the 3 extensions and one schedule and one monitored activity... It works perfectly, I can install it and delete it as often as I like.

So there is something amiss in my app, and I see the error that the OP mentions all the time in the device logs and the console logs.

Anybody have any idea what "recordName" this error refers to? This wouldn't have anything to do with the length of the bundle ids?

I have created several FBs for this issue and Apple's responses didn't lead anywhere.

I'm almost certain that recordName refers to a CKRecord object that has a CKRecord.ID field, within which is the recordName.

I haven't managed to work out what could be generating such a name. It doesn't match any obvious (to me) encoding scheme, and it would be really weird to try to encode real data in the name field.

I can say with less confidence (but still some) that it doesn't happen on all devices. I have devices in the wild that have never seen an issue, and I have one device that sees it very reliably.

FamilyControlsAgent crashing in 15.5 and above
 
 
Q