Open
Description
Describe the bug
io.objectbox.exception.DbException
Not a database file (-30793)
Basic info (please complete the following information):
- ObjectBox version : [2.8.1]
- Reproducibility: [occasionally without visible pattern]
- Device: [series]
- OS: [series]
Expected behavior
A clear and concise description of what you expected to happen.
Code
boxStore = MyObjectBox.builder().androidContext(context.applicationContext).build()
Logs, stack traces
io.objectbox.exception.DbException: Not a database file (-30793)
--
java.lang.RuntimeException:Unable to create application com.qq.ac.android.ComicApplication: io.objectbox.exception.DbException: Not a database file (-30793) (error code -30793)
android.app.ActivityThread.handleBindApplication(ActivityThread.java:5770)
......
Caused by:
io.objectbox.exception.DbException:Not a database file (-30793)
io.objectbox.BoxStore.nativeCreateWithFlatOptions(Native Method)
io.objectbox.BoxStore.<init>(SourceFile:17)
f.b.d.b(SourceFile:5)
Additional context
Initialization of the database is in the main thread, the main process. It was initialized only once.