Build info
- Android Gradle plugin: 8.1.4
- ObjectBox version: 3.3.1
- OS: Android 14
- Device: Samsung Galaxy S23 (Disk free: approximately 136 GB)
- app's build.gradle properties: compileSdk 34 , buildToolsVersion '34.0.0' , targetSdk 34
Stacktrace from Crashlytics:
Caused by io.objectbox.exception.DbFullException: Could not put
at io.objectbox.BoxStore.nativeCreateWithFlatOptions(BoxStore.java)
at io.objectbox.BoxStore.<init>(BoxStore.java:269)
at io.objectbox.BoxStoreBuilder.build(BoxStoreBuilder.java:516)
at com.ObjectBox.computeProperMaxSizeInKByte(ObjectBox.java:84)
at com.ObjectBox.init(ObjectBox.java:59)
at com.itt.App.onCreate(App.java:23)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1316)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7848)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication()
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2486)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:9063)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:588)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
As you can see, the crash happens during application launch inside the method:
computeProperMaxSizeInKByte(Context context)
while trying to execute the following code (this is the first line of code in the above method):
BoxStore boxStore = MyObjectBox.builder().androidContext(context.getApplicationContext()).build();
I was aware of the issue: #633 that causes the crash during a transaction,
but in my case there is no transaction, just an attempt to build the BoxStore instance.
Build info
Stacktrace from Crashlytics:
As you can see, the crash happens during application launch inside the method:
computeProperMaxSizeInKByte(Context context)while trying to execute the following code (this is the first line of code in the above method):
BoxStore boxStore = MyObjectBox.builder().androidContext(context.getApplicationContext()).build();I was aware of the issue: #633 that causes the crash during a transaction,
but in my case there is no transaction, just an attempt to build the BoxStore instance.