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

Error in reading schema after upgrade

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

      I have a problem when I upgrade the Realm version to 5.3.5 from 3.21.0.
      A crash I encountered, the log is below .

      Is an issue or need to do something for migration (3 to 5)?

      /Users/BennettYuan/Library/Caches/org.carthage.CarthageKit/DerivedData/11.6_11E708/realm-cocoa/v5.3.5/Build/Intermediates.noindex/ArchiveIntermediates/Realm/BuildProductsPath/Release-iphoneos/include/realm/table.hpp:1192: [realm-core-6.0.19] Assertion failed: spec_ndx < get_column_count() [18446744073709551615, 2]
      0   Realm                               0x000000010cb7b2b0 _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 28
      1   Realm                               0x000000010cb7b554 _ZN5realm4util9terminateEPKcS2_lOSt16initializer_listINS0_9PrintableEE + 328
      2   Realm                               0x000000010c85e850 _ZZN5realm4util11FunctionRefIFvPNS_13BPlusTreeNodeEmEEC1IRZNS_9BPlusTreeIfE3setEmfEUlS3_mE_EEOT_ENUlPvS3_mE_8__invokeESD_S3_m + 0
      3   Realm                               0x000000010c86bd90 _ZNK5realm5Table15get_column_nameENS_6ColKeyE + 248
      4   Realm                               0x000000010c86bb50 _ZN5realm11ObjectStore26get_primary_key_for_objectERKNS_5GroupENS_10StringDataE + 96
      5   Realm                               0x000000010c866b5c _ZN5realm12ObjectSchemaC2ERKNS_5GroupENS_10StringDataENS_8TableKeyE + 1312
      6   Realm                               0x000000010c86dc70 _ZN5realm11ObjectStore17schema_from_groupERKNS_5GroupE + 272
      7   Realm                               0x000000010c952af8 _ZN5realm5Realm13update_schemaENS_6SchemaEyNSt3__18functionIFvNS2_10shared_ptrIS0_EES5_RS1_EEENS3_IFvS5_EEEb + 1204
      8   Realm                               0x000000010c921304 +[RLMRealm realmWithConfiguration:queue:error:] + 1984
      9   RealmSwift                          0x000000010f88069c $s10RealmSwift0A0V13configuration5queueA2C13ConfigurationV_So012OS_dispatch_D0CSgtKcfC + 88
      10  ZUSAPI                              0x00000001113fd648 $s10RealmSwift0A0V6ZUSAPIE7defaultACvgZ + 156
      11  ZUSAPI                              0x00000001113cdbd4 $s6ZUSAPI3APIV14cachedVehiclesSayAA10RLMVehicleCGyFZ + 16
      12  ZUS_DEV                             0x00000001033a8000 $s7ZUS_DEV6GarageC13loadFromCache33_015969306022DDFCFB0E2CA895A22B42LLyyF + 68
      13  ZUS_DEV                             0x00000001033a7fa0 $s7ZUS_DEV6GarageC13loadFromCacheyyFZ + 84
      14  ZUS_DEV                             0x00000001033a41a8 $s7ZUS_DEV6GarageC6launchyyFZ + 68
      15  ZUS_DEV                             0x0000000102eee128 $s7ZUS_DEV11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0k6LaunchJ3KeyaypGSgtF + 2212
      16  ZUS_DEV                             0x0000000102eee850 $s7ZUS_DEV11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0k6LaunchJ3KeyaypGSgtFTo + 232
      17  UIKitCore                           0x00000001ab3cbddc 5AD0DCE8-0414-3CF9-97A5-13CED9C31CF7 + 10898908
      18  UIKitCore                           0x00000001ab3cdbbc 5AD0DCE8-0414-3CF9-97A5-13CED9C31CF7 + 10906556
      19  UIKitCore                           0x00000001ab3d3588 5AD0DCE8-0414-3CF9-97A5-13CED9C31CF7 + 10929544
      20  UIKitCore                           0x00000001aab43d60 5AD0DCE8-0414-3CF9-97A5-13CED9C31CF7 + 1953120
      21  UIKitCore                           0x00000001ab00f588 _UIScenePerformActionsWithLifecycleActionMask + 112
      22  UIKitCore                           0x00000001aab44894 5AD0DCE8-0414-3CF9-97A5-13CED9C31CF7 + 1955988
      23  UIKitCore                           0x00000001aab442c0 5AD0DCE8-0414-3CF9-97A5-13CED9C31CF7 + 1954496
      24  UIKitCore                           0x00000001aab446b0 5AD0DCE8-0414-3CF9-97A5-13CED9C31CF7 + 1955504
      25  UIKitCore                           0x00000001aab43f38 5AD0DCE8-0414-3CF9-97A5-13CED9C31CF7 + 1953592
      26  UIKitCore                           0x00000001aab48654 5AD0DCE8-0414-3CF9-97A5-13CED9C31CF7 + 1971796
      27  UIKitCore                           0x00000001aaf2df8c 5AD0DCE8-0414-3CF9-97A5-13CED9C31CF7 + 6057868
      28  UIKitCore                           0x00000001ab02922c _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 260
      29  UIKitCore                           0x00000001aab48390 5AD0DCE8-0414-3CF9-97A5-13CED9C31CF7 + 1971088
      30  UIKitCore                           0x00000001ab029114 _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext + 108
      31  UIKitCore                           0x00000001aab481e8 5AD0DCE8-0414-3CF9-97A5-13CED9C31CF7 + 1970664
      32  UIKitCore                           0x00000001aa9ae918 5AD0DCE8-0414-3CF9-97A5-13CED9C31CF7 + 293144
      33  UIKitCore                           0x00000001aa9ad418 5AD0DCE8-0414-3CF9-97A5-13CED9C31CF7 + 287768
      34  UIKitCore                           0x00000001aa9ae648 5AD0DCE8-0414-3CF9-97A5-13CED9C31CF7 + 292424
      35  UIKitCore                           0x00000001ab3d1828 5AD0DCE8-0414-3CF9-97A5-13CED9C31CF7 + 10922024
      36  UIKitCore                           0x00000001aaf54780 5AD0DCE8-0414-3CF9-97A5-13CED9C31CF7 + 6215552
      37  FrontBoardServices                  0x00000001ac4f0084 B1591D9C-D7E5-336A-A279-8C1857EA65AD + 53380
      38  FrontBoardServices                  0x00000001ac516610 B1591D9C-D7E5-336A-A279-8C1857EA65AD + 210448
      39  FrontBoardServices                  0x00000001ac4faf40 B1591D9C-D7E5-336A-A279-8C1857EA65AD + 98112
      40  FrontBoardServices                  0x00000001ac5162a4 B1591D9C-D7E5-336A-A279-8C1857EA65AD + 209572
      41  libdispatch.dylib                   0x00000001119634d8 _dispatch_client_callout + 20
      42  libdispatch.dylib                   0x0000000111966c88 _dispatch_block_invoke_direct + 364
      43  FrontBoardServices                  0x00000001ac53c6c8 B1591D9C-D7E5-336A-A279-8C1857EA65AD + 366280
      44  FrontBoardServices                  0x00000001ac53c374 B1591D9C-D7E5-336A-A279-8C1857EA65AD + 365428
      45  FrontBoardServices                  0x00000001ac53c8e0 B1591D9C-D7E5-336A-A279-8C1857EA65AD + 366816
      46  CoreFoundation                      0x00000001a7228d14 7769FFAC-4FCD-332D-A4BE-DA2F0E2FFEA5 + 707860
      47  CoreFoundation                      0x00000001a7228c68 7769FFAC-4FCD-332D-A4BE-DA2F0E2FFEA5 + 707688
      48  CoreFoundation                      0x00000001a72283c4 7769FFAC-4FCD-332D-A4BE-DA2F0E2FFEA5 + 705476
      49  CoreFoundation                      0x00000001a72231fc 7769FFAC-4FCD-332D-A4BE-DA2F0E2FFEA5 + 684540
      50  CoreFoundation                      0x00000001a7222bc8 CFRunLoopRunSpecific + 480
      51  GraphicsServices                    0x00000001b16045cc GSEventRunModal + 164
      52  UIKitCore                           0x00000001ab3d5744 UIApplicationMain + 1936
      53  ZUS_DEV                             0x0000000102bf94bc main + 80
      54  libdyld.dylib                       0x00000001a709f384 9DB07277-A537-351D-AB86-5408CB5F12C3 + 4996!!! IMPORTANT: Please send this log and info about Realm SDK version and other relevant reproduction info to help@realm.io.
      

      Version of Realm and Tooling

      Realm framework version: v5.3.5
      Xcode version: 11.6
      iOS/OSX version: 13.6.1/10.15.6
      Dependency manager + version: Carthage 0.35.0

            Assignee:
            jorgen.edelbo@mongodb.com Jørgen Edelbo
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: