-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Illegal Argument Exception encountered when compressing a Realm file created by version 0.83.0 #1581
Comments
Hello @creativepsyco I can reproduce this probem too. We are investigating this. |
👍 Sounds good. |
@creativepsyco When you don't call |
Yes everything is fine if I don't call |
0.83.1 was released today with a fix for this. |
👍 Verified and it works. |
Hi, I'm running into this problem with 0.86.0. Old Realm was dropped and new one was created on this version.
|
The |
We had a previous version of Realm installed, and decided it would be easier to drop the old Realm and create a new one. This is what we do immediately prior to attempting to compact Realm.
I'm not really sure how I can help elaborate on the setup, what exactly are you looking for? |
The error happens when you call |
Oh, immediately below the block above with this:
|
@erichkleung I have tried to reproduce your case without luck. Please take a look at #1958 and tell me if my test differs from your code. |
@kneth |
Hi @LiuDeng. This issue is unrelated to any file size increase. Please create a new issue with all relevant information instead. |
@cmelchior i mean if i do not use compactRealm the realm size increase fast |
Hello, @LiuDeng. Could you create another issue for your problem? It would be helpful to handle your problem. |
Hello, Caused by: java.lang.IllegalArgumentException: Illegal Argument: Invalid format of Realm file. I am using Realm 0.85. Can you please help me with this. Thanks. |
@puneetagarwal Many things can cause this exception. For example, if you have an encrypted Realm file, and open it with the wrong key. Can you share your configuration? |
Hi Kneth, `private void configureRealm() {
I just added |
If you can reproduce it on your local devices, it might be useful to log the key to see if you get the exact key every time. |
I tried to reproduce this issue at our end and it's not crashing but it crashes in the play store version only on some devices. Is this possible that if I use Also, if I add Hope to hear from you soon. Thanks. |
Hi peeps,
I am currently running into an
IllegalArgumentException
indicating that the format of the Realm file is invalid when I am trying to callRealm.compactRealm(realmConfiguration...)
before I use the realm file.I have a sample project to demonstrate the crash here: https://github.com/creativepsyco/sample-realm-crash/
Essentially I am trying to compact the realm file before it is ever used in the app.
Steps to reproduce:
0.82.2
build.gradle
edit the version to0.83.0
Is the
SharedGroupManager.compact()
implementation compatible with the new format of the Realm File? Right now it seems to be unusable with any Realm created byv0.83
orv0.82.2
Regards
Mohit
The text was updated successfully, but these errors were encountered: