Skip to content
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

Expedited update to latest realm-core #8358

Closed
dlbuckley opened this issue Sep 13, 2023 · 2 comments
Closed

Expedited update to latest realm-core #8358

dlbuckley opened this issue Sep 13, 2023 · 2 comments

Comments

@dlbuckley
Copy link

dlbuckley commented Sep 13, 2023

Problem

We have been seeing a steady rise in crashes since we upgraded to Realm 10.38.0 which we have lovingly referred to as the terminate.cpp crash internally (even though this is a catch all for a whole magnitude of issues). We originally filed a report back in April and have been trying to investigate/mitigate the crash ever since with little success. We have found it near impossible to reproduce, and when it has happened it's been in unrelated places and always happening with writes.

In some kind of unfortunate fluke with timings we saw the crashes increase by ~5x this past week after we passed some threshold with additional writes in our latest release. We then saw that a potential fix to address the core of this issue was merged by @jedelbo in realm-core only hours ago. To give some scale about how much this effects us we are now seeing 10s of thousands of crashes a day related to this issue.

We are now in a predicament where we would like to start testing this fix ASAP instead of continuing to spend our time trying to mitigate the issue (we have spent a lot over the past few months) and get the fix released to our users. We could fork ream-core and realm-swift and get the fix quicker that way but we don't want to add even more fuel to the fire if we can help it by bypassing any internal checks/QA before an 'official' release.

We are therefore requesting an expedited bug fix patch release of realm-core and swift-realm to include the fix. If this works you will make a lot of developers on our team (and our users) extremely happy.

Solution

A new release of realm which includes this fix.

Alternatives

We have considered forking to get the fix quicker, but we don't want to add fuel to the fire and make things worse. We have also tried all sorts of mitigations in and around write threading synchronisation over the past few months to no avail.

How important is this improvement for you?

Dealbreaker

Feature would mainly be used with

Local Database only

@tgoyne
Copy link
Member

tgoyne commented Sep 13, 2023

Cutting a release with a new core version the same day as the core release happens is our normal flow, and if it doesn't happen it's because we've discovered problems while integrating it.

@dlbuckley
Copy link
Author

@tgoyne apologies, I'm not intimately familiar with the release process, but it sounds as if a new relam-swift release is imminent since a realm-core release with the fix has just been released. If thats the case then that would be wonderful!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants