iOS: app crashes when leaving a meeting (meeting sdk)

Description
Hi! We updated the zoom ios SDK on our app to latest but we encountered an issue (which we can’t really determine what causes the crash). The app crashes after ending the video meeting session.

Error Logs

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
*** First throw call stack:
(0x1b923ed94 0x1b23683d0 0x1b93e4f94 0x1b93e1578 0x1b9249188 0x111932b68 0x111cdcf48 0x111cdd9f8 0x111be2888 0x111cdc8a4 0x111cde974 0x111cddc44 0x111cde62c 0x111be0ec0 0x111be4cbc 0x1b9300704 0x1b92be03c 0x1b92637fc 0x1b92af5c4 0x1b92b44dc 0x1f3c2f35c 0x1bb64037c 0x1bb63ffe0 0x1028172e8 0x1d8738dec)
Uncaught exception: NSInvalidArgumentException: *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil
(
    0   CoreFoundation                      0x00000001b923eda0 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 40352
    1   libobjc.A.dylib                     0x00000001b23683d0 objc_exception_throw + 60
    2   CoreFoundation                      0x00000001b93e4f94 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 1769364
    3   CoreFoundation                      0x00000001b93e1578 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 1754488
    4   CoreFoundation                      0x00000001b9249188 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 82312
    5   Flutter                             0x0000000111932b68 _ZN7flutter23IOSExternalViewEmbedder11SubmitFrameEP15GrDirectContextNSt21_LIBCPP_ABI_NAMESPACE10unique_ptrINS_12SurfaceFrameENS3_14default_deleteIS5_EEEE + 5232
    6   Flutter                             0x0000000111cdcf48 _ZN7flutter10Rasterizer19DrawToSurfaceUnsafeERNS_20FrameTimingsRecorderERNS_9LayerTreeE + 1348
    7   Flutter                             0x0000000111cdd9f8 _ZNSt21_LIBCPP_ABI_NAMESPACE10__function6__funcIZN7flutter10Rasterizer13DrawToSurfaceERNS2_20FrameTimingsRecorderERNS2_9LayerTreeEE3$_1NS_9allocatorIS8_EEFvvEEclEv + 28
    8   Flutter                             0x0000000111be2888 _ZNK3fml10SyncSwitch7ExecuteERKNS0_8HandlersE + 72
    9   Flutter                             0x0000000111cdc8a4 _ZN7flutter10Rasterizer13DrawToSurfaceERNS_20FrameTimingsRecorderERNS_9LayerTreeE + 272
    10  Flutter                             0x0000000111cde974 _ZNSt21_LIBCPP_ABI_NAMESPACE10__function6__funcIZN7flutter10Rasterizer4DrawERKNS_10shared_ptrINS2_8PipelineINS2_13LayerTreeItemEEEEENS_8functionIFbRNS2_9LayerTreeEEEEE3$_1NS_9allocatorISG_EEFvNS_10unique_ptrIS6_NS_14default_deleteIS6_EEEEEEclEOSM_ + 312
    11  Flutter                             0x0000000111cddc44 _ZN7flutter10Rasterizer4DrawERKNSt21_LIBCPP_ABI_NAMESPACE10shared_ptrINS_8PipelineINS_13LayerTreeItemEEEEENS1_8functionIFbRNS_9LayerTreeEEEE + 460
    12  Flutter                             0x0000000111cde62c _ZNSt21_LIBCPP_ABI_NAMESPACE10__function6__funcIN3fml8internal14CopyableLambdaIZN7flutter10Rasterizer4DrawERKNS_10shared_ptrINS5_8PipelineINS5_13LayerTreeItemEEEEENS_8functionIFbRNS5_9LayerTreeEEEEE3$_0EENS_9allocatorISK_EEFvvEEclEv + 148
    13  Flutter                             0x0000000111be0ec0 _ZN3fml15MessageLoopImpl10FlushTasksENS_9FlushTypeE + 568
    14  Flutter                             0x0000000111be4cbc _ZN3fml17MessageLoopDarwin11OnTimerFireEP16__CFRunLoopTimerPS0_ + 32
    15  CoreFoundation                      0x00000001b9300704 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 833284
    16  CoreFoundation                      0x00000001b92be03c 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 561212
    17  CoreFoundation                      0x00000001b92637fc 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 190460
    18  CoreFoundation                      0x00000001b92af5c4 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 501188
    19  CoreFoundation                      0x00000001b92b44dc CFRunLoopRunSpecific + 612
    20  GraphicsServices                    0x00000001f3c2f35c GSEventRunModal + 164
    21  UIKitCore                           0x00000001bb64037c B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 3789692
    22  UIKitCore                           0x00000001bb63ffe0 UIApplicationMain + 340
    23  Runner                              0x00000001028172e8 main + 64
    24  dyld                                0x00000001d8738dec 41605DC7-F412-37D1-B51B-FEE1A26701E9 + 89580
)
libc++abi: terminating due to uncaught exception of type NSException
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x00000001f7667558 libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`:
->  0x1f7667558 <+8>:  b.lo   0x1f7667578               ; <+40>
    0x1f766755c <+12>: pacibsp
    0x1f7667560 <+16>: stp    x29, x30, [sp, #-0x10]!
    0x1f7667564 <+20>: mov    x29, sp
Target 0: (Runner) stopped.

Which iOS Meeting SDK version?
iOS SDK: v5.15.5.9353

Smartphone (please complete the following information):

  • Device: iPad Pro (2nd gen)
  • OS: iOS 16.6

Additional context

  • We developed our app using Flutter.
  • We integrated the zoom ios sdk using native ios implementation in Flutter
  • Our previous sdk version is: v5.11.3.4099 (nothing wrong with this one; can join and end meeting)
  • We used custom meeting UI

Please help. Thank you!

Please disregard this topic as issue was already resolved. It was not zoom sdk related. Apologies.

Thanks so much for letting us know! If you feel the root cause could be relevant to other devs in our community, please share.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.