-
Type: Bug
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
How frequently does the bug occur?
Sometimes
Description
context
We found the issue in realm 10.15.0 and react-native 0.66.3 one year ago.
After we upgrade realm to 12.6.2 and react-native to 0.72.12. We still can get these exceptions from logs in production.
However, we can not repro it on our side. It's too bad.
We call the following method in a loop. I am not sure if it causes the issue.
public static saveTransaction(entity) { try { RealmManager.getRealmInstance().write(() => { RealmManager.getRealmInstance().create('Transaction', entity, UpdateMode.All); }); return true; } catch (exception) { return false; } }
errors on iOS 17.5.1
The exceptions happen frequently to the user, who is on iOS 17.5.1.
errors on other users
issue: The Realm is already in a write transaction
Also, there are a few error logs and they are all instantaneous in other Android and iOS users.
Stacktrace & log output
No response
Can you reproduce the bug?
No
Reproduction Steps
No response
Version
12.6.2
What services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
iOS 17.5.1
Build environment
Which debugger for React Native: ..
Cocoapods version
No response