-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
7.0.0 seems to introduce crashes with older Realm files #6866
Comments
@tmtrademarked Can you please add any info available about the crash? Stacktrace? |
Sure thing - here's the native dump:
|
After doing some archaeology, it looks like the file that fails to upgrade was written with realm-java 3.5.0. I can't confidently assert that this file is the only file level that that is having trouble, though. |
OK. I did a bit of digging, and dropped some of our old migrations. If I migrate from a file written with realm-java 6.1.0 to a new schema with realm-java 7.0.0, the same native crash does not occur. Possibly just because the particular code that triggered this crash for us was not being invoked, or maybe a 6.1.0 file doesn't have the same behavior - hard to say with confidence. |
It looks like it is crashing when removing a column, but I'm not 100% what the root cause is. This is the unrolled stack trace:
|
I created realm/realm-core#3734 to track the issue on the core side. |
➤ Christan Melchior commented: We believe this should be fixed in 7.0.1 which was just released. Please reopen if that is not the case. |
Goal
In my application, we have a test for migrations from some very old versions of our application - ancient history, with versions of the schema from 2017. Every previous Realm update has worked flawlessly - but the upgrade from 6.1.0 to 7.0.0 seems to cause native crashes. When we run the migrations with version 7.0.0, we get a gnarly native crash.
Actual Results
Steps & Code to Reproduce
It seems like a schema from ~ 2017 causes this problem. I can provide a copy of the schema and migration code if that is helpful for debugging, but it's hard to tell exactly what is causing the problem. (It appears as if it's dying running the migration where we migrated away from the old "
RealmList<RealmString>
" paradigm to simply "RealmList<String>
")I've provided the code for this particular migration in case anything about this jumps out as known unsupported in 7.0.0 - but that again seems kind of unlikely.
Version of Realm and tooling
Realm version(s): 7.0.0
The text was updated successfully, but these errors were encountered: