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

App crash for iOS 12 using 'RealmSwift', '~> 3.20.0' #8638

Open
rajaMusharaf opened this issue Jun 25, 2024 · 4 comments
Open

App crash for iOS 12 using 'RealmSwift', '~> 3.20.0' #8638

rajaMusharaf opened this issue Jun 25, 2024 · 4 comments
Labels
More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. O-Community T-Bug

Comments

@rajaMusharaf
Copy link

How frequently does the bug occur?

Always

Description

static void create_empty_group_when_missing(Group& group)
{
if (!group.m_top.is_attached())
group.create_empty_group(); // Throws
}
Screenshot 2024-06-25 at 2 51 29 PM

Stacktrace & log output

Thread 1: EXC_BAD_ACCESS (code=1, address=0x2a2d4eb968cf)

Can you reproduce the bug?

Always

Reproduction Steps

let realm = try! Realm()

Version

3.20.0

What Atlas Services are you using?

Both Atlas Device Sync and Atlas App Services

Are you using encryption?

No

Platform OS and version(s)

iOS 12.5.6

Build environment

Xcode version: 15.0
Dependency manager and version: ...

Copy link

sync-by-unito bot commented Jun 25, 2024

➤ PM Bot commented:

Jira ticket: RCOCOA-2401

@Jaycyn
Copy link

Jaycyn commented Jun 25, 2024

The bug report is a little vague as there's no Realm code involved. The crash is shown but there's no context around what that function does so that would need to be included as well. Also, based on the report, are you actually using Ream 3.20.0? Or something later? Keeping in mind that 3.20.0 will not be file compatible with later versions and you'll need to go through an upgrade/migration process to use more current versions (3.20.0 was from Oct 21 2019)

@nirinchev nirinchev added the More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. label Jun 25, 2024
@rajaMusharaf
Copy link
Author

@nirinchev here is the more information:
Screenshot 2024-06-26 at 10 50 07 AM
in above image i added break point. after pressing stepover in xcode it goes to
Screenshot 2024-06-26 at 10 51 57 AM
with the crash.

@github-actions github-actions bot removed the More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. label Jun 26, 2024
@nirinchev
Copy link
Member

This screenshot doesn't really give us new information - it's not obvious why creating an empty group would fail. That being said, as @Jaycyn pointed out, Realm Swift 3.20 is a very old version and we don't plan to investigate or backport fixes to it. Can you try to upgrade to the latest version and see if the issue still occurs?

@nirinchev nirinchev added the More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. label Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. O-Community T-Bug
Projects
None yet
Development

No branches or pull requests

3 participants