Unrecoverable error. mmap() failed: Out of memory size


#1

Hola!

Me he encontrado con este problema, pasa cada vez que intento abrir la aplicación. Las instancias de Realm se cierran en cada hilo de la aplicación y aún así sigue pasando.

Fatal Exception: io.realm.exceptions.RealmError: Unrecoverable error. mmap() failed: Out of memory size: 671088640 offset: 0 in /home/cc/repo/realm/release/realm/realm-library/src/main/cpp/io_realm_internal_OsSharedRealm.cpp line 101
       at io.realm.internal.OsSharedRealm.nativeGetSharedRealm(OsSharedRealm.java)
       at io.realm.internal.OsSharedRealm.<init>(OsSharedRealm.java:172)
       at io.realm.internal.OsSharedRealm.getInstance(OsSharedRealm.java:219)
       at io.realm.internal.OsSharedRealm.getInstance(OsSharedRealm.java:209)
       at io.realm.BaseRealm.compactRealm(BaseRealm.java:636)
       at io.realm.Realm.compactRealm(Realm.java:1697)
       at com.taskpath.support.KSupportBuilder.startRealm(KSupportBuilder.java:154)
       at com.taskpath.support.KSupportBuilder.setActivity(KSupportBuilder.java:112)
       at com.taskpath.routes.SplashActivity.validateOnResume(SplashActivity.java:421)
       at com.taskpath.routes.SplashActivity.onStart(SplashActivity.java:84)
       at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1236)
       at android.app.Activity.performStart(Activity.java:6006)
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2342)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2442)
       at android.app.ActivityThread.access$800(ActivityThread.java:156)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1351)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:211)
       at android.app.ActivityThread.main(ActivityThread.java:5389)
       at java.lang.reflect.Method.invoke(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:372)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)

Necesito ayuda urgentemente!


#2

Can you share your version information? How large is your database size?