Skip to content

During normal use, the database is damaged and cannot be opened, resulting in the program crashing all the time #8737

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

Open
iosliuhongtao opened this issue Jan 6, 2025 · 2 comments

Comments

@iosliuhongtao
Copy link

iosliuhongtao commented Jan 6, 2025

How frequently does the bug occur?

Sometimes

Description

Is in the normal use of our app, suddenly the program crashes, open the program again can not open, view ips files and use KSCrash to grab the log view, is the database damage can not open, I also tried to take out the db, the use of local software to open, found that it is also damaged can not open. The database version information is not found in the sdk, but it is very old. It is probably integrated in 2014. If necessary, I can send the file to you here so as not to upload too large files. You can contact me personally and send the email attachment

闪退ips文件(因github无法上传ips文件,所以手动转成了txt).txt
本地KSCrash抓取崩溃日志.log

Stacktrace & log output

No response

Can you reproduce the bug?

Sometimes

Reproduction Steps

No response

Version

未找到指定版本信息

What Atlas Services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

iPhone13. iOS18.2

Build environment

Xcode version: ...
Dependency manager and version: ...

@iosliuhongtao
Copy link
Author

iosliuhongtao commented Mar 11, 2025

Updated to 10.46.0. The problem still exists, it is the same crash, the database cannot be opened when it is started。get realm DB fail, error == Error Domain=io.realm Code=2 "Unable to open a realm at path '/var/mobile/Containers[2025-03-11 07:32:14.988] [message] [wifi] [Info] get realm DB fail, error == Error Domain=io.realm Code=2 "Unable to open a realm at path '/var/mobile/Containers/Data/Application/E7B05009-318F-476F-AD8F-A092E02584A3/Documents/db/messages.realm': Unsupported Realm file format version." UserInfo={Error Code=2, NSFilePath=/var/mobile/Containers/Data/Application/E7B05009-318F-476F-AD8F-A092E02584A3/Documents/db/messages.realm, Underlying=Unsupported Realm file format version, NSLocalizedDescription=Unable to open a realm at path '/var/mobile/Containers/Data/Application/E7B05009-318F-476F-AD8F-A092E02584A3/Documents/db/messages.realm': Unsupported Realm file format version.},

@iosliuhongtao iosliuhongtao changed the title 在正常使用过程中,数据库损坏,无法打开,导致程序一直崩溃打不开 During normal use, the database is damaged and cannot be opened, resulting in the program crashing all the time Mar 11, 2025
@ppamorim
Copy link

ppamorim commented Apr 3, 2025

@iosliuhongtao We started migrating from Realm to GRDB/SQLCipher due to this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants