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

Crash on when adding new realm object at Xcode 10 Official Release #5923

Closed
thihaaung6245 opened this issue Sep 19, 2018 · 11 comments
Closed
Assignees

Comments

@thihaaung6245
Copy link

thihaaung6245 commented Sep 19, 2018

Questions: I used to save the configuration on start at Realm. It was working at Xcode 9.4.1. But, when I upgraded to Xcode 10, it crash on llvm

Bugs: After converting to Xcode 10

-->

Goals

To work perfectly with Xcode 10 which mean it was working before with Xcode 9.4.1

Expected Results

Crash
screenshot at sep 19 17-05-59
screenshot at sep 19 17-07-14

Steps to Reproduce

It just crash after the data is writing to realm database.

Version of Realm and Tooling

Realm framework version: 3.7.5

Xcode version: 10

iOS/OSX version: 12

Dependency manager + version: Cocoapods

@mkhoshpour
Copy link

same problem here. some of my models is being saved and one of them gets crashed here.

@santiguillen
Copy link

same problem here. some of my models is being saved and one of them gets crashed here.

me too, on Xcode 9 working

@ggirotto
Copy link

Same here, but only when running in Apple Watch series 4 simulator, iOS is working fine with the latest release

@tgoyne
Copy link
Member

tgoyne commented Sep 24, 2018

There's not much I can do to help you with just a screenshot of a crash.

@neoplastic
Copy link

I'm seeing the same issue but only when running my app on iOS 9.x. 10.x and above is alright.

@neoplastic
Copy link

Looks like I've found my issue:

In one of my Realm Objects I've declared a variable public var slug: String? however this is normally ignored, on iOS 9 (built with XCode 10) its not being ignored.

I've just put @objc public dynamic var slug: String? and I can create the realm object again without exceptions.

@ggirotto
Copy link

@neoplastic Exactly, my problem was solved identically with what you said, but in my case, I had a var var customGroupedBy: String? that shouldn't be read by Realm, it must just be an object property. To solve that I added this property in ignoredProperties function from Realm and this worked flawlessly

@tgoyne
Copy link
Member

tgoyne commented Sep 26, 2018

Thanks for the additional info; I can now reproduce this.

@tgoyne
Copy link
Member

tgoyne commented Sep 26, 2018

Looks like this is actually just #5781, and the fix for that (#5783) was incorrect and only worked by coincidence.

@thihaaung6245
Copy link
Author

Thanks everyone and @tgoyne . Please let me know when this fixes was live and I will close the issue. Right now setting as non-optional is the only way.

@tgoyne
Copy link
Member

tgoyne commented Dec 3, 2018

This was fixed in #5934, released in 3.11.0

@tgoyne tgoyne closed this as completed Dec 3, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 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

6 participants