-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Random crashes with encrypted realm. #7629
Comments
I found next description in the Doc, may be it's a reason:
|
Hi @TheHmmka I see you can reproduce the issue, maybe you can share a repo or a code snippet so we can reproduce it in our side. |
Nope, this is not my case. Sorry, I can't share production code. I'll try to create demo project and catch this issue. |
I've started getting these too, possibly concurrently with starting to use Realm Notifications, or starting to use async/await, all of which happened around the same time. I am not accessing the Realm from different processes in my case. |
HI @tfe would you mind sharing your stack trace and/or the code where you het the crash, with a little more info we may be able to reproduce the issue. |
@dianaafanador3 I haven't seen it do it in development... all I have is the exception report via Sentry, and it doesn't give very much (unless I'm not looking in the right place?):
However from their breadcrumbs I can see that it's likely happening during the same operation I mentioned and shared code for over in #7641. It makes sense that that operation would surface issues since it's the most extensive exercise the database receives in the lifecycle of this app. |
@TheHmmka Got this error when upgrading from realm 10.20.0 to 10.21.1 on iOS 15 both simulator and real device. Have you try going back to use 10.20.2? |
I'll try, thank you! |
We're also seeing this crash on 10.22.0. Downgrading to 10.20.2 seems to fix the issue for us - thanks @sainttail 🙏 |
We're also experiencing this sporadically after upgrading to 10.21.1 with encryption enabled. |
@bfichter @Saul-Liang can you attach any stack traces? |
This issue may be related to this realm/realm-core#5174 |
What we know so far:
My conclusion:
What to try:
PS. I did not expect such relatively major changes in a patch release of Realm-swift, especially considering that Realm core 11.8.0 contains breaking changes (according to it's own changelog). Is there any reason not to adhere to semver? |
➤ Finn Andersen commented: Fixed by realm-core 11.14 |
Now encryption works as expected. |
How frequently does the bug occur?
All the time
Description
Application constantly crashes in random transactions.
Stacktrace & log output
Can you reproduce the bug?
Yes, always
Reproduction Steps
Version
10.21.1
What SDK flavour are you using?
Local Database only
Are you using encryption?
Yes, using encryption
Platform OS and version(s)
iOS 15
Build environment
Xcode version: 13.2.1
Dependency manager and version: CocoaPods 1.11.2
The text was updated successfully, but these errors were encountered: