Closed gvmarozzi closed 7 months ago
Hi @gvmarozzi. This can happen for a number of reasons and hard to say without some details on the actual realm usage. Realm files are mapped to memory when opened, so it is most probably due to a growing realm file. This is usually a version pinning issue where a Realm instance is not closed properly or when the realm is instantiated in a non-looper thread.
You can see more about the realm instance life cycle at https://www.mongodb.com/docs/realm/sdk/java/realm-files/open-and-close-a-realm/
Can you provide more details about you realm usage?
Closing due to missing feedback.
How frequently does the bug occur?
Sometimes
Description
I have a java in android that use io.realm:realm-gradle-plugin:10.8.0.
In few cases i am getting Out of memory.
public Pedido salvaPedido(Pedido pedido) { realm.beginTransaction(); realm.insertOrUpdate(pedido); realm.commitTransaction(); //The error happens here return pedido; }
Stacktrace & log output
Can you reproduce the bug?
Sometimes
Reproduction Steps
No response
Version
io.realm:realm-gradle-plugin:10.8.0
What Atlas App Services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
Android sdk 23
Build environment
Android Studio version: 2021.3.1 Android Build Tools version: io.realm:realm-gradle-plugin:10.8.0 Gradle version: