question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Caused by: io.objectbox.exception.DbException: Could not open env for DB (-30793) (error code -30793)

See original GitHub issue
BoxStoreBuilder builder = MyObjectBox.builder();
        Factory<InputStream> is = new Factory<InputStream>() {
            @Override
            public InputStream provide() throws Exception {
                Log.e("db", "inputStream");
                InputStream is = context.getResources().getAssets().open(DB_NAME);
                return is;
            }
        };
        boxStore = builder.name(DB_NAME).initialDbFile(is).androidContext(context).build();

DB_NAME="data.db"

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
greenrobotcommented, Apr 11, 2018

You can read only database files created by ObjectBox. I do not think that Navicat can read ObjectBox DBs yet, so I would guess you are trying to feed ObjectBox with an alien DB.

Having 230,000 objects is not a challenge. It rather depends on how complex the query is.

0reactions
greenrobotcommented, Apr 17, 2018

No, SQLite DBs cannot be read. We might provide a tool that helps migrating at some point.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ObjectBox Java
Fix error handling if ObjectBox can't create a Java entity (the proper exception is now thrown). Support setting an alias after combining conditions...
Read more >
Troubleshooting - ObjectBox Docs
Solutions for common issues with ObjectBox db for Java, Kotlin and Android. ... DbSchemaException: incoming ID does not match existing UID.
Read more >
ObjectBox Docs (Java, Kotlin, Dart) - ObjectBox Docs
This release includes breaking changes to generated code. If you encounter build errors, make sure to clean and build your project (e.g. Build...
Read more >
DbMaxReadersExceededExcepti...
RuntimeException. io.objectbox.exception.DbException. io.objectbox.exception.DbMaxReadersExceededException. All Implemented Interfaces: java.io.Serializable ...
Read more >
ObjectBox Queries
With ObjectBox DB you use the QueryBuilder class to specify criteria and create Query objects. The Query class will actually run the query...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found