-
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
Encryption still crashes on ARM devices #2537
Comments
I see that |
no, I believe it doesn't . And same app doesn't crash without encryption. |
The test app is the exact same test app which lead us to the last encryption bug fix (slightly different parameters). There are two writer threads and one read threads. The string lengths are max 13 characters, and the writer threads are continuously updating values. |
@bios-seiji You might wish to follow this issue. |
I have made a core level test that is modelled after the sample java application (with 2 reader threads and 2 writer threads). It only finds crashes when run on an actual android device (I am testing with a LG G5). For another data point, an example crash that I am seeing is below (spec accessor is reporting a wrong column type).
|
@ironage Great news that you can reproduce it. Since Realm Java doesn't have assertions enables, it is likely you will see a different error. |
I can now reproduce the crash in Visual Studio at #2433 - it happens in the LangBindHelper_HandoverBetweenThreads unit test, which was one of those that crashed immediately before our fix. It now crashes too, just after a long while (1 minute or so). |
However I'm going on vacation, so I don't think I'll be able to fix it |
Hmm this causes a lot of strange crashes on Java side if Realm is encrypted though. |
@KynoYang sees this crash as well. |
Any update on this issue? im dealing with the same problem |
@rickbijkerk We have a few minor fixes but they don't constitute a complete fix. |
Thanks for the fast reply. if i can help solving this issue dont hesitate to ask. I can 100% reproduce the issue on my phone and it works without problems on my emulator. I can share some code, but i cant share the entire project due to legal restrictions. |
yes waiting also for some progress as we are also dealing with this one. We cannot reproduce but problem kicks in "randomly" |
I'm also experiencing this crash, is there any known workaround? |
I have encountered this problem, there are ways to solve it? |
any progress on this issue, please? 😢 |
@l1git @nielssimonides @GershonLin @KynoYang Thank you for stating your interest. Unfortunately we don't have a final fix yet, but we understand the importance of this and are actively working on it. We'll be sure to update you when we have a release for you to try! |
Thanks you, @ironage |
I have also encountered the same problem, hope to solve as soon as possible |
Is there any update for this issue @ironage? we badly need this issue solved. Getting a lot of crashes. |
@l1git @nielssimonides @GershonLin @KynoYang @lucasleongit
At least the UTF-16 related crashes disappeared completely for us (we had a lot of these) and we are not seeing these Now obviously it's probably better to wait for the official fix since this is just painful to look at but we were somewhat desperate to fix the problem immediately. Right now I'm too afraid to remove this "fix" to 100% confirm this actually had any effect because it might have been something else. |
@lucasleongit unfortunately no update yet, we are still actively working on finding a fix. We'll be sure to let you know when we find a solution. |
@ironage, thanks for your potential fix - I want to try this asap. hope new java SDK is released soon. |
@lucasleongit The fix passed my internal tests and I think it will work for you too. We will make a release shortly and notify you when it is ready to try out. Thanks for your patience! |
@ironage : Awesome, Thanks a lot! |
@lucasleongit Realm Java 3.2.1 was released with the fix for this @ironage I believe this issue can be closed now? |
Reported by realm/realm-java#4343
There is a testing project in the java issue which can easily reproduce the crash. It is using realm-java 3.0.0/realm-core 2.3.2 .
From our testing:
x86
)armeabi-v7a
)arm64-v8a
)The original crash log shows some string corruption, but since it would only crash if the string conversion fails but not other value types, so it might not only happen to string_array.
By disable asm for openssl with
no-asm
and enable core assertions, it crashes with:parsed stack:
The text was updated successfully, but these errors were encountered: