Above Xcode16 operation project, in the project use AVPictureInPictureController opportunities (PIP) function open system blackout

I found that when the development tool above Xcode16 ran my app, I opened the suspended inscription function, and then opened the system camera, the content in the suspended window would not be displayed, and the suspended window would have a black screen. However, this phenomenon does not appear on Xcode15.4 development tools, it is the same code, I do not know why

Hello @joykls, thank you for your post. Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. I'd greatly appreciate it if you could open a bug report, include a sysdiagnose, and post the FB number here once you do. Bug Reporting: How and Why? has tips on creating your bug report.

Glad to receive your reply, The following is my simulated error scenario. Before opening the suspension window and moving back to the background, and then opening the system camera, I found a black screen in the suspension window. After exiting the system camera, the suspension window returned to normal, I provide the log for your review!thank you. System log: 默认 11:23:06.969957+0800 Camera Call status: Inactive Recording PIDs (teleprompter) (initial query)

默认 11:23:07.364913+0800 runningboardd Attempting to rename power assertion 35415 for target app<com.meipaifeng.app(5A5C10F8-1846-46E9-AE25-AD2B9262A460)> to app<com.meipaifeng.app(5A5C10F8-1846-46E9-AE25-AD2B9262A460)>;33-28493-426222:interruption began assertion;33-71428-426141:audiomxd(71428).2025.03.26_11:20:14:2014.MediaExperience.79508."com.meipaifeng.app"."sid:0x11704244, teleprompter(79508), 'prim'"."PlayAndRecord".isPlayingProcessAssertion

默认 11:23:07.477669+0800 CommCenter App state[teleprompter (79508)] is moving from kInForegroundRestricted to kInBackgroundRestricted

默认 11:23:07.564157+0800 audiomxd -CMSessionMgr- cmsmGetAudioConfigurationsControlSessions: Arbitrating session={clientName:'sid:0x11704244, teleprompter(79508), 'prim'', preferredHardwareFormat:'LPCM', preferredNumberOfOutputChannels:0, preferredOutputSampleRate:44100.000000} with session={clientName:'sid:0x11704249, Camera(79524), 'prim'', preferredHardwareFormat:'LPCM', preferredNumberOfOutputChannels:0, preferredOutputSampleRate:44100.000000}

默认 11:23:07.564214+0800 audiomxd -CMSessionMgr- cmsmGetAudioConfigurationsControlSessions: Session 'sid:0x11704244, teleprompter(79508), 'prim'' controls AudioFormat because it controls routing

默认 11:23:07.564277+0800 audiomxd -CMSessionMgr- cmsmGetAudioConfigurationsControlSessions: Arbitrating session={clientName:'sid:0x11704244, teleprompter(79508), 'prim'', preferredIOBufferFrames:0, preferredIOBufferDuration:0.020000, preferredOutputSampleRate:44100.000000} with session={clientName:'sid:0x11704249, Camera(79524), 'prim'', preferredIOBufferFrames:0, preferredIOBufferDuration:0.023000, preferredOutputSampleRate:44100.000000}

默认 11:23:07.564327+0800 audiomxd -CMSessionMgr- cmsmGetAudioConfigurationsControlSessions: Session 'sid:0x11704244, teleprompter(79508), 'prim'' controls SampleRate and BufferSize because it controls routing

默认 11:23:07.564378+0800 audiomxd -CMSessionMgr- cmsmGetAudioConfigurationsControlSessions: playingAudioFormatAndOutputSampleRateControlSession=sid:0x11704244, teleprompter(79508), 'prim' activeAudioFormatAndOutputSampleRateControlSession=(null) activeAndDoesntActuallyPlayAudioFormatAndOutputSampleRateControlSession=(null) inputSampleRateAndBufferSizeControlSession=sid:0x11704244, teleprompter(79508), 'prim'

默认 11:23:07.564584+0800 audiomxd -CMSessionMgr- cmsSetDeviceSampleRateAndBufferSize: Client sid:0x11704244, teleprompter(79508), 'prim' setting sampleRate = 44100.000, bufferFrames = 0, bufferDuration = 0.020, scope = output device FormatID = mcpl for VirtualAudioDevice_Default

默认 11:23:10.433943+0800 runningboardd Attempting to rename power assertion 35415 for target app<com.meipaifeng.app(5A5C10F8-1846-46E9-AE25-AD2B9262A460)> to app<com.meipaifeng.app(5A5C10F8-1846-46E9-AE25-AD2B9262A460)>33-71428-426141:audiomxd(71428).2025.03.26_11:20:14:2014.MediaExperience.79508."com.meipaifeng.app"."sid:0x11704244, teleprompter(79508), 'prim'"."PlayAndRecord".isPlayingProcessAssertion

错误 11:23:14.111439+0800 kernel Sandbox: audiomxd(71428) deny(1) file-read-metadata /private/var/containers/Bundle/Application/EB405BE0-986F-4779-83EC-8797A9ECD802/teleprompter.app/teleprompter

默认 11:23:14.111784+0800 audiomxd -MX_SystemStatus- MX_SystemStatus_PublishRecordingClientsInfo: Creating ST attribution info object with ActiveEntity com.meipaifeng.app executablepath: /private/var/containers/Bundle/Application/EB405BE0-986F-4779-83EC-8797A9ECD802/teleprompter.app/teleprompter

默认 11:23:14.141025+0800 audiomxd -CMSessionMgr- cmsmGetAudioConfigurationsControlSessions: playingAudioFormatAndOutputSampleRateControlSession=sid:0x11704244, teleprompter(79508), 'prim' activeAudioFormatAndOutputSampleRateControlSession=(null) activeAndDoesntActuallyPlayAudioFormatAndOutputSampleRateControlSession=(null) inputSampleRateAndBufferSizeControlSession=sid:0x11704244, teleprompter(79508), 'prim'

默认 11:23:14.142250+0800 audiomxd -CMSessionMgr- cmsSetDeviceSampleRateAndBufferSize: Client sid:0x11704244, teleprompter(79508), 'prim' setting sampleRate = 44100.000, bufferFrames = 0, bufferDuration = 0.020, scope = output device FormatID = mcpl for VirtualAudioDevice_Default

默认 11:23:14.165247+0800 audiomxd -MX_SystemStatus- MX_SystemStatus_PublishRecordingClientsInfo_block_invoke: Publishing recording clients info to SystemStatus. RecordingClients = {( <STMediaStatusDomainMicrophoneRecordingAttribution: 0xd4b2a23a0> { activityAttribution = <STActivityAttribution: 0xd4b2a31c0> { attributedEntity = <STAttributedEntity: 0xd44b000c0> { executableIdentity = <STExecutableIdentity: 0xd44b020c0> { executablePath = /private/var/containers/Bundle/Application/EB405BE0-986F-4779-83EC-8797A9ECD802/teleprompter.app/teleprompter; isSystemExecutable = NO; }; websiteNonNil = NO; systemService = NO; }; UUID = 1E306CDA-50B0-4EC0-8F62-0CB2A3280292; }; maximumHistoryAccessed = 0.000000; } )} ; MutedRecordingClients = {( )}

默认 11:23:16.212018+0800 CommCenter App state[teleprompter (79508)] is moving from kInBackgroundRestricted to kInForegroundRestricted

默认 11:23:18.070054+0800 audiomxd -CMSessionMgr- CMSessionMgrHandleApplicationStateChange:16940 Client com.meipaifeng.app with session sid:0x11704243, teleprompter(79508), 'auxi' [0xd47607800] with pid '79508' is now ForegroundRunning. Background entitlement: YES ActiveLongFormVideoSession: NO IsLongFormVideoApp NO

错误 11:23:19.377026+0800 kernel Sandbox: teleprompter(79508) deny(1) mach-lookup com.apple.mobile.keybagd.UserManager.xpc

错误 11:23:19.381237+0800 kernel Sandbox: teleprompter(79508) deny(1) mach-lookup com.apple.mobile.usermanagerd.xpc

Hello @joykls, did you get a chance to submit a bug report via Feedback Assistant? When you do, please post here the FB number for my reference.

Do you have a solution to this problem? My issue also occurs with the object-C version, but it does not occur when packaging in Xcode16 or earlier versions

I have also encountered the same problem. I would like to ask if it has been resolved?

@Engineer This problem still exists. Can we move forward to solve it?

Above Xcode16 operation project, in the project use AVPictureInPictureController opportunities (PIP) function open system blackout
 
 
Q