iOS 16 Crash (EXC_BAD_ACCESS (KERN_INVALID_ADDRESS))

I have a project with 2-5k daily online users, but have only 5 users that have this crashes. They all have iOS 16 installed

Attached logs from FireBase

First Log:

Crashed: com.apple.main-thread

0 libobjc.A.dylib 0x1c20 objc_msgSend + 32

1 UIKitCore 0x9bd754 -[UIView _backing_traitCollectionDidChange:] + 64

2 UIKitCore 0x169754 -[UIView _traitCollectionDidChangeInternal:] + 628

3 UIKitCore 0x1692b4 -[UIView _wrappedProcessTraitCollectionDidChange:forceNotification:] + 156

4 UIKitCore 0x169424 -[UIView _wrappedProcessTraitCollectionDidChange:forceNotification:] + 524

5 UIKitCore 0x927e8 -[UIView(AdditionalLayoutSupport) _withUnsatisfiableConstraintsLoggingSuspendedIfEngineDelegateExists:] + 96

6 UIKitCore 0x90cac -[UIView _processDidChangeRecursivelyFromOldTraits:toCurrentTraits:forceNotification:] + 212

7 UIKitCore 0x43d0 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1732

8 QuartzCore 0x97fc CA::Layer::layout_if_needed(CA::Transaction*) + 500

9 QuartzCore 0x1ceb0 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 148

10 QuartzCore 0x2e234 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 444

11 QuartzCore 0x63630 CA::Transaction::commit() + 652

12 UIKitCore 0x3c49c4 -[_UISceneLifecycleMultiplexer collectBackingStores] + 28

13 UIKitCore 0x3c4988 __35-[UIWindowScene _prepareForSuspend]_block_invoke + 40

14 UIKitCore 0x3026dc -[_UIContextBinder purgeContextsWithPurgeAction:afterPurgeAction:] + 388

15 UIKitCore 0x21053c -[UIWindowScene _prepareForSuspend] + 80

16 UIKitCore 0x20ebb8 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 752

17 UIKitCore 0x20e810 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 244

18 UIKitCore 0x20e650 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 336

19 FrontBoardServices 0x366c -[FBSScene updater:didUpdateSettings:withDiff:transitionContext:completion:] + 420

20 FrontBoardServices 0x34a8 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke_2 + 144

21 FrontBoardServices 0x6c24 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 168

22 FrontBoardServices 0x6b40 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke + 340

23 libdispatch.dylib 0x3f88 _dispatch_client_callout + 20

24 libdispatch.dylib 0x7a08 _dispatch_block_invoke_direct + 264

25 FrontBoardServices 0x10d40 FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 52

26 FrontBoardServices 0x108dc -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220

27 FrontBoardServices 0x13184 -[FBSSerialQueue _performNextFromRunLoopSource] + 28

28 CoreFoundation 0xd5f24 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28

29 CoreFoundation 0xe22fc __CFRunLoopDoSource0 + 176

30 CoreFoundation 0x661c0 __CFRunLoopDoSources0 + 244

31 CoreFoundation 0x7bb7c __CFRunLoopRun + 836

32 CoreFoundation 0x80eb0 CFRunLoopRunSpecific + 612

33 GraphicsServices 0x1368 GSEventRunModal + 164

34 UIKitCore 0x3a1668 -[UIApplication _run] + 888

35 UIKitCore 0x3a12cc UIApplicationMain + 340

36 Vostok 0x1e36ec main + 10 (main.swift:10)

37 ??? 0x1ac74c960 (Missing)

All this crashed happened on background

Can't reproduce on own iPhone, because haven't 16 iOS

iOS 16 Crash (EXC_BAD_ACCESS (KERN_INVALID_ADDRESS))
 
 
Q