Closed Khudoyshukur closed 1 year ago
I am unable to reproduce the issue. It might have something to do with your code. Would it be possible to share a sample project that causes the issue?
On the other hand, I think that you could use:
executeTransactionAwait
instead of executeRealmTransaction
deleteAllFromRealm
instead of deleting one point at a time.@clementetb I myself also could not reproduce the crash locally. It is happening with few Samsung Android devices.
executeTransactionAwait
? Does it ensure synchonization? For example, one transaction is in progress. And the second transaction should wait.No need to ensure synchronization yourself. There can only be one active write transaction per Realm.
@clementetb Thank you. I will take your recommendations and further monitor this crash
@clementetb I am no more getting the crash reports after the changes. So I am closing the issue
PluginVersion: 10.13.0
I am getting crash here in production:
Here the code block:
ExecureRealmTransaction has a mutex. So, no other transaction disturb current transaction.
I am guessing that the crash is coming from line:32 because of ConcurrentModification. What should I use in this case? .deleteAllFromRealm() ? Or should I reverse-iterate?
Similar issue: https://github.com/realm/realm-java/issues/2660