-
Notifications
You must be signed in to change notification settings - Fork 169
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
Crash - Assertion failed: new_size % (1ULL << m_page_shift) == 0 #7322
Comments
Getting the same issue |
same here. introducing a realm swift encrypted database with encrypted seed (both open via realm studio, not via app) |
Getting same issue.. |
After debugging with lot of trial and errors I found this bug started from v10.41.1 which has realm-core of 13.17.0 . |
@BlueCobold Thx for reporting this. @aaru Thx for narrowing this down. |
We changed some stuff which could be related in v13.17.1 ... which leads me to this question: @aaru Any chance you are wrong by one version and 10.41.1 (core 13.17.0) is actually OK while 10.42.0 (core 13.17.1) is the first one crashing? |
Also, if possible: could you tell me the exact size of the file at the point of failure? |
@finnschiermer I could provide you with a failing and a working version of the file - although one contains more data than the other and has a different file size. |
@BlueCobold that could also be useful - but only if you are fine with also supplying the encryption key? but in any case, I may be able to deduce something from just the sizes of the files. |
@finnschiermer Providing the key would be alright as long as it's not publicly. |
Any news to this? The problem still persists in 10.45.2. It does not occur in 10.41.1. |
I'll move this issue to the realm-core repo as the bug appears to be Core-related. |
Is there any news to this? Without this fix, all new versions of Realm are not usable for productive use as they can lead to full data loss on the user's end. |
Hey @BlueCobold would you still be willing to provide the file for us and the encryption key? If so please send them to [email protected] and reference this issue in your email. Having a repro would really help us track this down. |
@ironage I guess I can provide an example file. What do you mean by "bundled Realm"? If you mean a realm-file which is being shipped within the app with initial data, then yes, that is the case and yes, it still works with earlier versions of realm while the newer versions don't. I don't know what's the page size of the devices in question, but I do assume that different Android and iPhone devices of course do have different page sizes and up until that version, sharing the realm file worked on any device and I am very dependent on this to work as users expect backups to also work in case they need to switch to a new or different device. Incompatibility is a no-go for a database in my eyes, because of backup- and device-migration use-cases which are daily business on mobile platforms. |
@BlueCobold |
Hi, I created a repro project for this crash. The repository has several realm files for testing in |
@ironage I submitted the file in question via email. |
Thanks @BlueCobold, we've received the file and I can reproduce the assertion on open. We will investigate. |
How frequently does the bug occur?
Always
Description
I'm trying to open a realm-file I have edited with RealmStudio and/or with RealmJava and/or compacted. It leads to the crash/exception below.
The file can be properly opened in RealmJava or with RealmStudio.
The file is encrypted, but I can provide both file and password via email.
This stops me from rolling out updates to my app.
Stacktrace & log output
Can you reproduce the bug?
Always
Reproduction Steps
Whenever I try to open the file on Mac M1 using Simulator of iPhone 14 Pro running iOS 16.2 via Realm-Swift SDK
Version
10.42.x
What Atlas Services are you using?
Local Database only
Are you using encryption?
Yes
Platform OS and version(s)
iOS 16.2 and MacOS 13.4.1 (M1)
Build environment
The text was updated successfully, but these errors were encountered: