Intermittent Crash with high Frequency on App After ios15 update.

My app has started experiencing intermittent crashes for ios15 devices only. From the logs, the suspected region of crash involves realm threads for write or read or update and TableView reload. But Since the issue is pretty intermittent we are not able to pinpoint the cause of the crash? Does anyone have any suggestion to pinpoint the cause of the crash or what new update in ios15 would have led to this issue.?

Below is the Crash Log. From the Crash Analytics.

Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x9904c __exceptionPreprocess
1  libobjc.A.dylib                0x15f54 objc_exception_throw
2  CoreFoundation                 0x176014 +[NSObject(NSObject) _copyDescription]
3  UIKitCore                      0xf695a0 -[UIResponder doesNotRecognizeSelector:]
4  CoreFoundation                 0x2e474 ___forwarding___
5  CoreFoundation                 0x2d5b0 _CF_forwarding_prep_0
6  UIKitCore                      0x3eee54 -[UIUndoGestureInteraction didMoveToView:]
7  UIKitCore                      0x194d8c _setInteractionView
8  UIKitCore                      0x2f91e4 -[UIView(Dragging) addInteraction:]
9  UIKitCore                      0x4a1444 -[UIEditingOverlayViewController _addInteractions]
10 UIKitCore                      0x1ad4c4 -[UIViewController _setViewAppearState:isAnimating:]
11 UIKitCore                      0x99fbec __52-[UIViewController _setViewAppearState:isAnimating:]_block_invoke_2
12 UIKitCore                      0x2cf168 __52-[UIViewController _setViewAppearState:isAnimating:]_block_invoke
13 CoreFoundation                 0xdd68 __NSARRAY_IS_CALLING_OUT_TO_A_BLOCK__
14 CoreFoundation                 0x3dfd0 -[__NSArrayI enumerateObjectsWithOptions:usingBlock:]
15 UIKitCore                      0x1ad68c -[UIViewController _setViewAppearState:isAnimating:]
16 UIKitCore                      0x299b7c -[UIViewController __viewDidAppear:]
17 UIKitCore                      0x283740 __64-[UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:]_block_invoke
18 UIKitCore                      0x445cb8 -[UIViewController _executeAfterAppearanceBlock]
19 UIKitCore                      0x32be5c -[_UIAfterCACommitBlock run]
20 UIKitCore                      0x23dfd4 -[_UIAfterCACommitQueue flush]
21 UIKitCore                      0x166a44 _runAfterCACommitDeferredBlocks
22 UIKitCore                      0x16715c _cleanUpAfterCAFlushAndRunDeferredBlocks
23 UIKitCore                      0x5432ec _UIApplicationFlushCATransaction
24 UIKitCore                      0x7dd7d8 _UIUpdateSequenceRun
25 UIKitCore                      0xe57008 schedulerStepScheduledMainSection
26 UIKitCore                      0xe565f8 runloopSourceCallback
27 CoreFoundation                 0xbb020 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
28 CoreFoundation                 0xcbce0 __CFRunLoopDoSource0
29 CoreFoundation                 0x6054 __CFRunLoopDoSources0
30 CoreFoundation                 0xb7f4 __CFRunLoopRun
31 CoreFoundation                 0x1f3b8 CFRunLoopRunSpecific
32 GraphicsServices               0x138c GSEventRunModal
33 UIKitCore                      0x5196a8 -[UIApplication _run]
34 UIKitCore                      0x2987f4 UIApplicationMain
35 IndiaMart                      0x23060 main + 32 (PreviewImagesEditProductViewController.swift:32)
36 ???                            0x102169a24 (Missing)

Here is the list of pods we are using :

#pod 'GoogleMaps'
  pod 'XCDYouTubeKit'
  #pod 'DLRadioButton', '~> 1.4.12'
  #pod 'SwipeCellKit', '~> 2.7.1'
  #pod 'PopOverMenu', '~> 2.5.5'
  #pod 'IGRPhotoTweaks', '~> 1.0.7'
  #pod 'SwiftyXMLParser', '~> 5.0.0'
  #pod 'UITextView+Placeholder', '~> 1.3.3'
  pod 'Alamofire', '~> 4.9.0'
  pod 'CocoaLumberjack/Swift', '~> 3.6.0'
  pod 'Kingfisher'
  pod 'KSToastView', '~> 0.5.7'
  pod 'SkeletonView', '~> 1.8.2'
  pod 'IQKeyboardManagerSwift', '~> 6.5.5'
  pod 'Lightbox', '~> 2.3.0'
  pod 'DatePickerDialog', '~> 3.0.0'
  pod 'Cache', '~> 5.2.0'
  pod 'RealmSwift', '~> 5.5.0'
  pod 'AlamofireObjectMapper', '~> 5.2.1'
  pod 'MBProgressHUD', '~> 1.1.0'
  pod 'KMPlaceholderTextView', '~> 1.4.0'
  
  pod 'Firebase'
  pod 'Firebase/Core'
  pod 'Firebase/Analytics'
  pod 'Firebase/Crashlytics'
  pod 'Firebase/RemoteConfig'
  #    pod 'Firebase/Performance'
  
  pod 'SwiftKeychainWrapper', '~> 3.4.0'
  
  pod 'GoogleAnalytics'
  pod 'SwiftValidator', :git => 'https://github.com/jpotts18/SwiftValidator.git', :tag => '4.2.0'
  pod 'Zip', '~> 1.1.0'
  pod 'SDWebImage', '~> 5.2.3'
  pod 'CarbonKit', '~> 2.3.1'
  
  pod 'FMDB', '~> 2.7.5'
  
  pod 'TrueSDK', '~> 0.1.4'
  pod 'Firebase/DynamicLinks'
  
  pod 'Presentr'
  pod 'FlexibleSteppedProgressBar'
  
  pod 'MaterialComponents/Tabs'
  pod 'MaterialComponents/AppBar'
  pod 'Sheeeeeeeeet', '~> 0.9.2'
  pod 'SwiftSiriWaveformView', '~> 2.4.0'
  pod 'XMPPFramework', '~> 4.0.0'
  pod 'RxSwift', '~> 5.1.1'
  pod 'RxCocoa', '~> 5.1.1'
  pod 'RxOptional', '~> 4.0.0'
  pod 'RxDataSources', '~> 4.0.1'
  pod 'Google-Mobile-Ads-SDK'
  pod 'SwiftLint'
Highlight not saved. Sign in to save
Sign up with Google
Don't have Google account?

Hi,

did you find a solution, I have the same issue.

Anyone have a solution?

I have the same Issue.

I'm just guessing it's always related to Rx, but

I don't get the same error anywhere else using Rx datasoruce.

Has anyone ever had the same problem without using RxDatasource?

Intermittent Crash with high Frequency on App After ios15 update.
 
 
Q