We are getting around 300 crashes per day while the application is in the background coming from [FBSSceneSnapshotRequestHandle performRequestForScene:]
. This is a metal based game. Is there some way I can tell iOS to not try to take a snapshot of the game while in the background? Full callstack below.
Thanks,
0 libsystem_kernel.dylib +0x18130 _semaphore_wait_trap
1 libdispatch.dylib +0x279c __dispatch_sema4_wait$VARIANT$mp
2 libdispatch.dylib +0x321c __dispatch_semaphore_wait_slow
3 FrontBoardServices +0x3d6c8 -[FBSSceneSnapshotRequestHandle performRequestForScene:]
4 FrontBoardServices +0x438c8 -[FBSSceneSnapshotAction snapshotRequest:performWithContext:]
5 FrontBoardServices +0x158c -[FBSSceneSnapshotRequest performSnapshotWithContext:]
6 UIKitCore +0x8c9338 ___65-[UIApplication _performSnapshotsWithAction:forScene:completion:]_block_invoke_2
7 FrontBoardServices +0x43764 -[FBSSceneSnapshotAction _executeNextRequest]
8 FrontBoardServices +0x43354 -[FBSSceneSnapshotAction executeRequestsWithHandler:completionHandler:expirationHandler:]
9 UIKitCore +0x8c921c ___65-[UIApplication _performSnapshotsWithAction:forScene:completion:]_block_invoke
10 UIKitCore +0x8c8844 -[UIApplication _beginSnapshotSessionForScene:withSnapshotBlock:]
11 UIKitCore +0x8c8f70 -[UIApplication _performSnapshotsWithAction:forScene:completion:]
12 UIKitCore +0x8c8e3c -[UIApplication _handleSnapshotAction:forScene:completion:]
13 UIKitCore +0x8c4720 ___71-[UIApplication _handleSnapshotAction:forScene:deactivationCompletion:]_block_invoke
14 UIKitCore +0x8c453c -[UIApplication _handleSnapshotAction:forScene:deactivationCompletion:]
15 UIKitCore +0x17ff54 ___98-[__UICanvasLifecycleMonitor_Compatability deactivateEventsOnly:withContext:forceExit:completion:]_block_invoke.261
16 UIKitCore +0x8c80a8 __runAfterCACommitDeferredBlocks
17 UIKitCore +0x8b6bf8 __cleanUpAfterCAFlushAndRunDeferredBlocks
18 UIKitCore +0x8e3a68 __afterCACommitHandler
19 CoreFoundation +0xaa4f8 ___CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
20 CoreFoundation +0xa5220 ___CFRunLoopDoObservers
21 CoreFoundation +0xa579c ___CFRunLoopRun
22 CoreFoundation +0xa4fb0 _CFRunLoopRunSpecific
23 GraphicsServices +0xa798 _GSEventRunModal
24 UIKitCore +0x8bcc34 _UIApplicationMain
25 Wizard-of-Oz +0x1045054 main (main.mm:38:18)
26 libdyld.dylib +0x18dc _start