Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Hello, do I have bugs collected from an online project? #7747

Closed
LhtIverson opened this issue Dec 9, 2022 · 2 comments
Closed

[Bug]: Hello, do I have bugs collected from an online project? #7747

LhtIverson opened this issue Dec 9, 2022 · 2 comments
Labels
More-information-needed More information needed from the reporter. The issue will autoclose if no more information is given. O-Community Waiting-For-Reporter Waiting for more information from the reporter before we can proceed

Comments

@LhtIverson
Copy link

What happened?

io.realm.exceptions.RealmFileException: Opening Realm files of format version 0 is not supported by this version of Realm (Database has an unsupported version and cannot be upgraded

Repro steps

An error is reported when opening the program initialization configuration
Could you tell me when this error occurred? The database version upgrade is not involved in the use

Version

Android sdk7.0.0版本

What SDK flavour are you using?

Local Database only

What type of application is this?

Other

Client OS and version

Android系统8.0

Code snippets

/**
* 自定义Realm配置
*
* @return
*/
public void setRealmConfig(String dbName) {
MyLog.i(TAG, "RealmUtils.dbName=" + dbName);
RealmConfiguration config = new RealmConfiguration.Builder()
.name(dbName + ".realm")
.encryptionKey(Utils.getRealmKey(REALMKEY)) //设置密钥
.schemaVersion(dbVersion) //版本号 0
.migration(new MyRealmMigration()) //数据库迁移/
// .deleteRealmIfMigrationNeeded()//声明版本冲突时自动删除原数据库,开发时候打开
.build();
Realm.setDefaultConfiguration(config);
MyLog.i(TAG, "config=" + config.getRealmFileName());
realm = Realm.getInstance(config);
}

Stacktrace of the exception/crash you're getting

No response

Relevant log output

No response

@bmunkholm bmunkholm transferred this issue from realm/realm-dotnet Dec 12, 2022
@edualonso
Copy link
Contributor

Hi @LhtIverson
Judging by the code that creates your configuration object I can see you are using encryption. In Realm v7.0.0 we were using Core v6.0.4. There were some bugs related to encryption in that version, more specifically yours - see https://github.com/realm/realm-core/blob/master/CHANGELOG.md#fixed-106. My recommendation is that you upgrade to a newer Realm version and try again as that bug will likely have been fixed.

@edualonso edualonso added the Waiting-For-Reporter Waiting for more information from the reporter before we can proceed label Dec 19, 2022
@sync-by-unito sync-by-unito bot added the More-information-needed More information needed from the reporter. The issue will autoclose if no more information is given. label Jan 3, 2023
@github-actions
Copy link

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
More-information-needed More information needed from the reporter. The issue will autoclose if no more information is given. O-Community Waiting-For-Reporter Waiting for more information from the reporter before we can proceed
Projects
None yet
Development

No branches or pull requests

3 participants