Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-324

"Attempted to insert null into non-nullable column" when upgrading from v9 to v10

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None

      A Cocoa user is experiencing a crash when trying to migrate their Realm file from v9 to v10. The attached Realm file reproduces the issue on 5.3.3 and on Realm Studio 3.11.0. No special configuration is required.

      ```Attempted to insert null into non-nullable column
      Exception backtrace:
      0 Triage 0x0000000107275a05 _ZN5realm4util6detail26ExceptionWithBacktraceBaseC2Ev + 53
      1 Triage 0x00000001072a7cec ZN5realm4util22ExceptionWithBacktraceISt9exceptionEC2IJEEEDpOT

      • 44
        2 Triage 0x00000001072a7c92 _ZN5realm10LogicErrorC2ENS0_9ErrorKindE + 34
        3 Triage 0x00000001072a7c3b _ZN5realm10LogicErrorC1ENS0_9ErrorKindE + 27
        4 Triage 0x000000010755e0bd ZN5realm3LstINS_10StringDataEE6insertEmS1 + 109
        5 Triage 0x000000010755e4a7 ZN5realm3LstINS_10StringDataEE3addES1 + 87
        6 Triage 0x0000000107828487 ZN12_GLOBAL_N_19copy_listIN5realm10StringDataEEEvmRNS1_3ObjENS1_6ColKeyERNS1_9AllocatorE + 455
        7 Triage 0x00000001078256a9 _ZN5realm5Table15migrate_objectsENS_6ColKeyENS_4util11FunctionRefIFvvEEE + 6249
        8 Triage 0x00000001074ff760 _ZN5realm11Transaction19upgrade_file_formatEi + 2672
        9 Triage 0x00000001074e4656 _ZN5realm2DB19upgrade_file_formatEbiii + 1254
        10 Triage 0x00000001074e311e ZN5realm2DB7do_openERKNSt3_112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbbNS_9DBOptionsE + 10782
        11 Triage 0x00000001074e4ab5 _ZN5realm2DB4openERNS_11ReplicationENS_9DBOptionsE + 389
        12 Triage 0x00000001074eb38d _ZN5realm2DB6createERNS_11ReplicationENS_9DBOptionsE + 221
        13 Triage 0x00000001070026c9 _ZN5realm5_impl16RealmCoordinator7open_dbEv + 1241
        14 Triage 0x0000000107001612 ZN5realm5_impl16RealmCoordinator12do_get_realmENS_5Realm6ConfigERNSt3_110shared_ptrIS2_EENS_4util8OptionalINS_9VersionIDEEERNS8_17CheckedUniqueLockE + 82
        15 Triage 0x0000000107001493 _ZN5realm5_impl16RealmCoordinator9get_realmENS_5Realm6ConfigENS_4util8OptionalINS_9VersionIDEEE + 371
        16 Triage 0x00000001070ee144 _ZN5realm5Realm16get_shared_realmENS0_6ConfigE + 196```

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

              Created:
              Updated:
              Resolved: