Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
leemaguire opened this issue Aug 4, 2020 · 2 comments · Fixed by #3854
Closed
Assignees

Comments

@leemaguire
Copy link
Contributor

leemaguire commented Aug 4, 2020

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.

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```
@leemaguire
Copy link
Contributor Author

v4.4.1.zip

@RealmBot
Copy link
Collaborator

➤ Jørgen Edelbo commented:

Root cause for ths has been found and fix is under way.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants