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

Crash #3605

Closed
bmarty opened this issue Jul 1, 2021 · 2 comments · Fixed by #3622
Closed

Crash #3605

bmarty opened this issue Jul 1, 2021 · 2 comments · Fixed by #3622

Comments

@bmarty
Copy link
Member

bmarty commented Jul 1, 2021

Thread: main, Exception: java.lang.IllegalArgumentException: Configurations cannot be different if used to open the same file. The most likely cause is that equals() and hashCode() are not overridden in the migration class: org.matrix.android.sdk.internal.database.RealmSessionStoreMigration
at io.realm.RealmCache.validateConfiguration(RealmCache.java:10)
at io.realm.Realm.getInstance(Realm.java:20)
at org.matrix.android.sdk.internal.session.SessionModule_ProvidesRealmConfigurationFactory.get(SessionModule_ProvidesRealmConfigurationFactory.java:36)
at dagger.internal.DoubleCheck.get(DoubleCheck.java:5)
at org.matrix.android.sdk.internal.session.DefaultSession_Factory.get(DefaultSession_Factory.java:1)
at dagger.internal.DoubleCheck.get(DoubleCheck.java:5)
at org.matrix.android.sdk.internal.session.DaggerSessionComponent.session(DaggerSessionComponent.java:1)
at org.matrix.android.sdk.internal.session.SessionListeners.dispatch(SessionListeners.kt:2)
at org.matrix.android.sdk.internal.session.-$$Lambda$DefaultSession$9D4dsVdsKGBrgc18THUFICCTKcQ.run(lambda:5)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:239)
at android.app.ActivityThread.main(ActivityThread.java:8142)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:626)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1015)
@bmarty
Copy link
Member Author

bmarty commented Jul 1, 2021

Use object instead of class for Realm Migration. Pb with RealmCryptoStoreMigration, it's injected with an non-empty constructor.

@bmarty
Copy link
Member Author

bmarty commented Jul 5, 2021

Included in 1.1.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant