You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use realm in a reactnative project. My users encounter the issue sometimes. They must reopen app to fix it.
I always use write function to save data. like this, the exception is catched.
I am sure that no mutiple transactions at the same time because i only use one realm instance in the JS thread.
I realize that the issue happens if the device has low available storage on Android.
Some memory issues can also lead to the issue, eg can not allocate memory on iOS.
Questions
Should i let the app crash instead of catching the exception thrown by write?
What are the reasons of memory issues from realm on iOS? That has to reopen app and fix it.
Why do we put commitTransaction outside of the try block? The cancelTransaction may not be called rightly. In the comment, commitTransaction is catched. It has some confusion. write function comment on beginTransaction
Stacktrace & log output
Can you reproduce the bug?
Sometimes
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 and Android
Build environment
Which debugger for React Native: ..
Cocoapods version
No response
The text was updated successfully, but these errors were encountered:
How frequently does the bug occur?
Sometimes
Description
I use realm in a reactnative project. My users encounter the issue sometimes. They must reopen app to fix it.
I always use
write
function to save data. like this, the exception is catched.Findings
I am sure that no mutiple transactions at the same time because i only use one realm instance in the JS thread.
I realize that the issue happens if the device has low available storage on Android.
Some memory issues can also lead to the issue, eg can not allocate memory on iOS.
Questions
write
?commitTransaction
outside of the try block? ThecancelTransaction
may not be called rightly. In the comment,commitTransaction
is catched. It has some confusion.write function
comment on beginTransaction
Stacktrace & log output
Can you reproduce the bug?
Sometimes
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 and Android
Build environment
Which debugger for React Native: ..
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: