-
Notifications
You must be signed in to change notification settings - Fork 163
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
Crush on Realm.delete #5942
Comments
@jedelbo I did notice that this bug has occured from at least 5.5.0. There's also this case, where the crash happens during migration. And this, during a delete. |
Unfortunately we can't see exactly which assertion inside SlabAlloc::do_free that is hit. The property we are trying to delete seems to be of Binary type. @anama777 I hope this agrees with the schema in use? Unfortunately there is not much we can do to solve this issue if we cannot get a reproduction case. If you are able to get the actual realm file that causes this behavior, then it could be helpful if we could get the file for further analysis. |
We assume this could be fixed by #5993 |
How frequently does the bug occur?
Sometimes
Description
We get a lot of crash reports from Sentry. Below I attach the stack trace itself and the code of our function in which the crash occurred. If you need any additional information about the bug, we are ready to provide it.
Our function:
open func remove(_ objects: [Object], realm: Realm? = nil) {
guard let realm = realm ?? createRealmInstance() else {
return
}
do {
try realm.write {
realm.delete(objects)
}
} catch {
print("Unexpected error: (error).")
}
}
Stacktrace & log output
Can you reproduce the bug?
Not yet
Reproduction Steps
No response
Version
10.28.7
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
TvOS 16.0
Build environment
Xcode version: ...
Dependency manager and version: ...
The text was updated successfully, but these errors were encountered: