-
Notifications
You must be signed in to change notification settings - Fork 2.1k
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Saving unmanaged object throws exception #7786
Comments
You're hitting the |
@tgoyne here's the object print out;
|
Are you opening your Realm with |
@tgoyne yes, |
Okay, I think I can see why this'd be breaking then. |
How frequently does the bug occur?
All the time
Description
Recently updated Realm from v10.7.6 to v10.25.2 and code that was previously working now throws an exception;
Object has been deleted or invalidated
Specifically, the exception is raised when saving an unmanaged object.
Stacktrace & log output
Can you reproduce the bug?
Yes, always
Reproduction Steps
Pseudo code that results in the exception;
The
viewModel
call leads to an abstract class method to save the object, which is where the exception is raised;We can work around the exception with the following change to the
addOrUpdateObject
method;Version
10.25.2
What SDK flavour are you using?
MongoDB Realm (i.e. Sync, auth, functions)
Are you using encryption?
No, not using encryption
Platform OS and version(s)
iOS 15.4.1
Build environment
Xcode version: 13.3.1
Dependency manager and version: Cocoapods v1.11.2
The text was updated successfully, but these errors were encountered: