Uploaded image for project: 'Realm Cocoa SDK'
  1. Realm Cocoa SDK
  2. RCOCOA-850

Crash due to a NoSuchTable exception

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: None

      Goals

      Our app has been crashing occasionally due to the NoSuchTable exception being thrown. Unfortunately we cannot reproduce the issue. We've tried updating to the latest Realm version multiple times, but it didn't help.

      The exception backtrace on Crashlytics is as following:

      Fatal Exception: realm::NoSuchTable
      No such table exists Exception backtrace: 
      0 Realm 0x00000001022f4790 _ZN5realm11NoSuchTableC1Ev + 60 
      1 Realm 0x0000000102393a68 _ZNK5realm13ConstTableRef5checkEv + 116 
      2 Realm 0x0000000102393ad4 _ZNK5realm13ConstTableRefptEv + 20 
      3 Realm 0x0000000102300220 _ZN5realm11Transaction14import_copy_ofENS_13ConstTableRefE + 32 
      4 Realm 0x00000001021d8130 _ZN5realm5QueryC2EPKS0_PNS_11TransactionENS_13PayloadPolicyE + 312 
      5 Realm 0x00000001023005b4 _ZN5realm11Transaction14import_copy_ofERNS_5QueryENS_13PayloadPolicyE + 64
      6 Realm 0x00000001020ec7d0 _ZN5realm5_impl15ResultsNotifier12do_attach_toERNS_11TransactionE + 64 
      7 Realm 0x00000001020a5414 _ZN5realm5_impl18CollectionNotifier9attach_toENSt3__110shared_ptrINS_11TransactionEEE + 36 
      8 Realm 0x00000001020d828c _ZN5realm5_impl16RealmCoordinator19run_async_notifiersEv + 856 
      9 Realm 0x00000001020d7ed8 _ZN5realm5_impl16RealmCoordinator9on_changeEv + 24 
      10 Realm 0x00000001020a9540 _ZN5realm5_impl20ExternalCommitHelper6listenEv + 204 
      11 Realm 0x00000001020aa010 _ZNSt3__114__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEZN5realm5_impl20ExternalCommitHelperC1ERNS8_16RealmCoordinatorEE3$_0EEEEEPvSE_ + 52 
      12 libsystem_pthread.dylib 0x00000001b959d2c0 <redacted> + 128 
      13 libsystem_pthread.dylib 0x00000001b959d220 _pthread_start + 44 
      14 libsystem_pthread.dylib 0x00000001b95a0cdc thread_start + 4
      
      Crashed: Realm notification listener
      0  MyApp                        0x1008f8da4 FIRCLSProcessRecordAllThreads + 392 (FIRCLSProcess.c:392)
      1  MyApp                        0x1008f9188 FIRCLSProcessRecordAllThreads + 423 (FIRCLSProcess.c:423)
      2  MyApp                        0x1008ef980 FIRCLSHandler + 34 (FIRCLSHandler.m:34)
      3  MyApp                        0x1008eb5dc __FIRCLSExceptionRecord_block_invoke + 218 (FIRCLSException.mm:218)
      4  libdispatch.dylib              0x1b93bd7d4 _dispatch_client_callout + 16
      5  libdispatch.dylib              0x1b936bc1c _dispatch_lane_barrier_sync_invoke_and_complete + 56
      6  MyApp                        0x1008ead74 FIRCLSExceptionRecord + 225 (FIRCLSException.mm:225)
      7  MyApp                        0x1008eaa14 FIRCLSTerminateHandler() + 285 (FIRCLSException.mm:285)
      8  libc++abi.dylib                0x1b8b4c838 std::__terminate(void (*)()) + 16
      9  libc++abi.dylib                0x1b8b4c434 __cxa_rethrow + 144
      10 Realm                        0x1020aa0bc void*std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0> >(void*) + 224
      11 libsystem_pthread.dylib        0x1b959d2c0 _pthread_body + 128
      12 libsystem_pthread.dylib        0x1b959d220 _pthread_start + 44
      13 libsystem_pthread.dylib        0x1b95a0cdc thread_start + 4
      
      com.apple.main-thread
      0  libsystem_kernel.dylib         0x1b951b9d4 __ulock_wait + 8
      1  libsystem_pthread.dylib        0x1b9594ddc _pthread_join$VARIANT$mp + 440
      2  libc++.1.dylib                 0x1b8b33f90 std::__1::thread::join() + 32
      3  Realm                          0x1020a9348 realm::_impl::ExternalCommitHelper::~ExternalCommitHelper() + 52
      4  Realm                          0x1020dd1b4 std::__1::unique_ptr<realm::_impl::ExternalCommitHelper, std::__1::default_delete<realm::_impl::ExternalCommitHelper> >::reset(realm::_impl::ExternalCommitHelper*) + 28
      5  Realm                          0x1020d6dbc realm::_impl::RealmCoordinator::~RealmCoordinator() + 144
      6  Realm                          0x10209ae28 std::__1::shared_ptr<realm::_impl::CollectionNotifier>::~shared_ptr() + 64
      7  Realm                          0x1021a9d34 realm::Realm::~Realm() + 144
      8  Realm                          0x10209ae28 std::__1::shared_ptr<realm::_impl::CollectionNotifier>::~shared_ptr() + 64
      9  libobjc.A.dylib                0x1b8b567cc object_cxxDestructFromClass(objc_object*, objc_class*) + 148
      10 libobjc.A.dylib                0x1b8b666b8 objc_destructInstance + 68
      11 libobjc.A.dylib                0x1b8b66720 object_dispose + 16
      12 Realm                          0x10217ae6c -[RLMRealm dealloc] + 92
      13 libobjc.A.dylib                0x1b8b71b9c (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 672
      14 CoreFoundation                 0x1b9910d6c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20
      15 CoreFoundation                 0x1b9910670 __CFRunLoopDoBlocks + 272
      16 CoreFoundation                 0x1b990bbdc __CFRunLoopRun + 2312
      17 CoreFoundation                 0x1b990afb4 CFRunLoopRunSpecific + 436
      18 GraphicsServices               0x1bbb0c79c GSEventRunModal + 104
      19 UIKitCore                      0x1e616cc38 UIApplicationMain + 212
      20 MyApp                        0x100760814 main + 15 (AppDelegate.swift:15)
      21 libdyld.dylib                  0x1b93ce8e0 start + 4
      

      Version of Realm and Tooling

      Realm framework version: 5.3.2

      Xcode version: 11.7

      iOS version: 11.4.1, 12.4, 12.4.5, 12.4.6, 13.4.1, 13.5.1, 13.6, 13.6.1

      Dependency manager + version: CocoaPods 1.9.3

            Assignee:
            jason.flax@mongodb.com Jason Flax
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: