Matter commissioning issue with Matter support extension

My team has developed an app with a Matter commissioner feature (for own ecosystem) using the Matter framework on the MatterSupport extension.

Recently, we've noticed that commissioning Matter devices with the MatterSupport extension has become very unstable. Occasionally, the HomeUIService stops the flow after commissioning to the first fabric successfully, displaying the error: "Failed to perform Matter device setup: Error Domain=HMErrorDomain Code=2." (normally, it should send open commissioning window to the device and then add the device to the 2nd fabric). The issue is never seen before until recently few weeks and there is no code changes in the app. We are suspected that there is some data that fail to download from the icloud or apple account that cause this problem.

For evaluation, we tried removing the HomeSupport extension and run the Matter framework directly in developer mode, this issue disappears, and commissioning works without any problems.

@DTS Engineer I’ll add a detailed flowchart.

@DTS Engineer Add in the log details for HomeService.

10:51:34.065680+0800	HomeUIService	[A4B23DBC] Could not find CHIP setup payload string in response payload (null): Error Domain=HMErrorDomain Code=2 "(null)"

10:51:34.066071+0800	HomeUIService	-[HSSetupStateMachineConfiguration setPairingError:] *** Setting pairingError *** = Error Domain=HMErrorDomain Code=2 "(null)"

10:51:34.066205+0800	HomeUIService	pairStagedCHIPAccessoryToPartnerAppHome succeeded.

10:51:34.067111+0800	HomeUIService	Calculating potential skip of: Error

10:51:34.067526+0800	HomeUIService	Show step: Error

10:51:34.066587+0800	HomeUIService	HSProximityCardHostViewController 318 -[HSProximityCardHostViewController coordinator:updatedConfiguration:]: Pairing

10:51:34.067718+0800	HomeUIService	HSProxCardCoordinator tuple 0x5ca2373f0 accessory (null) nextViewController Pairing->Error

10:51:34.067900+0800	HomeUIService	Presenting error card with error Error Domain=HMErrorDomain Code=2 "(null)"

10:51:34.067085+0800	HomeUIService	Calculating potential skip of: Error

10:51:34.067501+0800	HomeUIService	Show step: Error

10:51:34.067684+0800	HomeUIService	HSProxCardCoordinator tuple 0x5ca2373f0 accessory (null) nextViewController Pairing->Error

10:51:34.068703+0800homed	Exiting state Opening Pairing Window With Passcode - Failed that hasn't been entered

10:51:34.071873+0800	HomeUIService	Presenting error screen w/ title Unable to Add Accessory, subtitle You may need to restart your accessory before you can add it to your home., pairing error Error Domain=HMErrorDomain Code=2 "(null)", underlyingError (null), errorLocalizedDescription You may need to restart your accessory before you can add it to your home.

@DTS Engineer I have uploaded the new error logs. FB21418750

Matter commissioning issue with Matter support extension
 
 
Q