Skip to content

io.objectbox.exception.DbException Not a database file (-30793) #944

Open
@hzhyan

Description

@hzhyan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions