-
Notifications
You must be signed in to change notification settings - Fork 165
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
Compacting encrypted Realms fail on some devices #763
Comments
@tgoyne: I just briefly went through SharedGroup::Compact, but didn't immediately spot the problem. Can you see any "misuse" or pieces missing in that method with regard to encryption ? |
Calling |
No, any device suffering from the problem fixed in #805 could not even open a Realm file. |
The SharedGroup must be in the attached state (or open) when compact() is called. Has this error ever been seen outside of our java testcase? |
I'm going to make compact() assert if called in unattached state. |
@finnschiermer Please remember that the Java binding is built with assertions disabled (it was decided a long time ago). If you think we should enable these assertions, please discuss with @timanglade and @bmunkholm. |
hrmkay - exceptions then :-) |
Or a return value ( |
connects to pr #832 |
turns out, I was wrong about how the binding calls compact, so the hunt continues |
We need on-device debugging before we can make real progress. |
You have it. It is called println ;), but yes the debugging capabilities on a device are horrendously bad :( |
just fyi we are stalling this until we have arranged for better debugging (which is almost there), so I'm unassigning myself. |
@fsa: Is this possible now? |
Ping @finnschiermer |
@kneth: can this be reproduced with a newer Core? I'm asking because I think it might actually have been fixed without us noticing. |
@finnschiermer It looks like compacting a populated and encrypted Realm leave it corrupted (core version 0.93.0). I'll have to investigate a bit more to draw any conclusions. |
Please see #1201. |
Now fixed by #1201 |
Version 0.89.0 of core fixes bugs in
SharedGroup::compact()
but we see that it fails on some Android devices (on when compacting encrypted Realms). I have been able to single step so I can see that it isSharedGroup::compact()
that crashes the app. This is not a duplicate of #757 as we see the crash on an Android 4.0.4 devices (the device used by Jenkins).See realm/realm-java#955
@tgoyne @finnschiermer @cmelchior
The text was updated successfully, but these errors were encountered: