-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[realm-core-5.23.4] Assertion failed: info.object_id_index == 0 [3, 0] #6268
Comments
me too ! Realm framework version: 3.18.0 Carthage |
me too!!
Xcode 11 macOS App |
The failing assert is attempting to validate that the column for the primary key is the first column in the table, but in this case it's actually the fourth. This means that something went wrong when we created the Realm file, and we just didn't detect it until 3.18.0. Does this happen with a fresh install of the app, or only if you have existing data? In the distant past we didn't force the PK column to be the first column in the table, so it's possible that we just need some migration logic for that. If it happens for new installs too, then there's (also?) a bug in the schema initialization. |
hi @tgoyne |
@tgoyne The failing assert does not happen with a fresh install. |
@tgoyne have same issue even with a fresh install |
I'm facing the same issue in Realm 3.19.0 SDK. I could only recreate this issue in apps with existing data. Typically after an app update. |
@tgoyne |
I've made a sync PR that should fix this. |
@tgoyne |
Goals
I just updated to XCode 11 with Realm 3.18.0. Now there happens a Assertion failure when I add an object.
Stacktrace
Code Sample
Version of Realm and Tooling
Realm framework version: 3.18.0
Xcode version: 11
iOS version: 12.4.1
Dependency manager + version: pod 1.7.4
The text was updated successfully, but these errors were encountered: